This commit is contained in:
parent
93bcc887b9
commit
691deb7765
2 changed files with 98 additions and 96 deletions
|
|
@ -3,14 +3,15 @@ when:
|
|||
- event: manual
|
||||
|
||||
steps:
|
||||
# - name: test
|
||||
# image: docker.io/node:hydrogen-slim
|
||||
# commands:
|
||||
# - npm ci
|
||||
# - npm run test:unit
|
||||
- name: deploy
|
||||
image: kroniak/ssh-client
|
||||
- name: test
|
||||
image: docker.io/node:hydrogen-slim
|
||||
volumes:
|
||||
- /etc/ssh:/etc/ssh
|
||||
commands:
|
||||
- npm ci
|
||||
- npm run test:unit
|
||||
- npm run deploy
|
||||
- name: deploy
|
||||
image: kroniak/ssh-client
|
||||
commands:
|
||||
- ssh root@autobaan touch deploy
|
||||
|
|
|
|||
179
package.json
179
package.json
|
|
@ -1,91 +1,92 @@
|
|||
{
|
||||
"name": "autobaan",
|
||||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"author": "",
|
||||
"private": true,
|
||||
"license": "UNLICENSED",
|
||||
"scripts": {
|
||||
"build": "nest build",
|
||||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
||||
"prestart": "npm run migrations",
|
||||
"start": "nest start",
|
||||
"prestart:dev": "npm run migrations",
|
||||
"start:dev": "nest start --watch",
|
||||
"start:debug": "nest start --debug --watch",
|
||||
"start:prod": "node dist/main",
|
||||
"repl": "npm run start -- --entryFile repl",
|
||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||
"test:e2e": "jest --config ./test/jest-e2e.json",
|
||||
"test:unit": "jest --config ./test/jest-unit.json",
|
||||
"migrations:generate": "npx typeorm-ts-node-commonjs migration:generate -d data-source.ts database/migrations/$npm_config_name",
|
||||
"migrations": "npx typeorm-ts-node-commonjs migration:run -d data-source.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/bull": "^0.6.3",
|
||||
"@nestjs/cli": "^9.0.0",
|
||||
"@nestjs/common": "^9.0.0",
|
||||
"@nestjs/config": "^2.3.4",
|
||||
"@nestjs/core": "^9.0.0",
|
||||
"@nestjs/platform-express": "^9.0.0",
|
||||
"@nestjs/schedule": "^2.2.2",
|
||||
"@nestjs/typeorm": "^9.0.1",
|
||||
"axios": "^1.5.0",
|
||||
"bull": "^4.10.4",
|
||||
"class-transformer": "^0.5.1",
|
||||
"class-validator": "^0.14.0",
|
||||
"dayjs": "^1.11.7",
|
||||
"imap": "^0.8.19",
|
||||
"mailparser-mit": "^1.0.0",
|
||||
"puppeteer": "^20.4.0",
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"rxjs": "^7.2.0",
|
||||
"sqlite3": "^5.1.6",
|
||||
"typeorm": "^0.3.17"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nestjs/schematics": "^9.0.0",
|
||||
"@nestjs/testing": "^9.0.0",
|
||||
"@types/cron": "^2.0.1",
|
||||
"@types/express": "^4.17.13",
|
||||
"@types/imap": "^0.8.37",
|
||||
"@types/jest": "29.5.1",
|
||||
"@types/mailparser-mit": "^1.0.1",
|
||||
"@types/node": "18.16.12",
|
||||
"@types/puppeteer": "^7.0.4",
|
||||
"@types/supertest": "^2.0.11",
|
||||
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
||||
"@typescript-eslint/parser": "^5.0.0",
|
||||
"eslint": "^8.0.1",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-simple-import-sort": "^10.0.0",
|
||||
"jest": "29.5.0",
|
||||
"pm2": "^6.0.5",
|
||||
"prettier": "^2.3.2",
|
||||
"source-map-support": "^0.5.20",
|
||||
"supertest": "^6.1.3",
|
||||
"ts-jest": "29.1.0",
|
||||
"ts-loader": "^9.2.3",
|
||||
"ts-node": "^10.0.0",
|
||||
"tsconfig-paths": "4.2.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"jest": {
|
||||
"moduleFileExtensions": [
|
||||
"js",
|
||||
"json",
|
||||
"ts"
|
||||
],
|
||||
"rootDir": "test",
|
||||
"testRegex": ".*\\.spec\\.ts$",
|
||||
"transform": {
|
||||
"^.+\\.(t|j)s$": "ts-jest"
|
||||
},
|
||||
"collectCoverageFrom": [
|
||||
"**/*.(t|j)s"
|
||||
],
|
||||
"coverageDirectory": "../coverage",
|
||||
"testEnvironment": "node"
|
||||
}
|
||||
"name": "autobaan",
|
||||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"author": "",
|
||||
"private": true,
|
||||
"license": "UNLICENSED",
|
||||
"scripts": {
|
||||
"build": "nest build",
|
||||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
||||
"prestart": "npm run migrations",
|
||||
"start": "nest start",
|
||||
"prestart:dev": "npm run migrations",
|
||||
"start:dev": "nest start --watch",
|
||||
"start:debug": "nest start --debug --watch",
|
||||
"start:prod": "node dist/main",
|
||||
"repl": "npm run start -- --entryFile repl",
|
||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||
"test:e2e": "jest --config ./test/jest-e2e.json",
|
||||
"test:unit": "jest --config ./test/jest-unit.json",
|
||||
"migrations:generate": "npx typeorm-ts-node-commonjs migration:generate -d data-source.ts database/migrations/$npm_config_name",
|
||||
"migrations": "npx typeorm-ts-node-commonjs migration:run -d data-source.ts",
|
||||
"deploy": "pm2 deploy production"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/bull": "^0.6.3",
|
||||
"@nestjs/cli": "^9.0.0",
|
||||
"@nestjs/common": "^9.0.0",
|
||||
"@nestjs/config": "^2.3.4",
|
||||
"@nestjs/core": "^9.0.0",
|
||||
"@nestjs/platform-express": "^9.0.0",
|
||||
"@nestjs/schedule": "^2.2.2",
|
||||
"@nestjs/typeorm": "^9.0.1",
|
||||
"axios": "^1.5.0",
|
||||
"bull": "^4.10.4",
|
||||
"class-transformer": "^0.5.1",
|
||||
"class-validator": "^0.14.0",
|
||||
"dayjs": "^1.11.7",
|
||||
"imap": "^0.8.19",
|
||||
"mailparser-mit": "^1.0.0",
|
||||
"puppeteer": "^20.4.0",
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"rxjs": "^7.2.0",
|
||||
"sqlite3": "^5.1.6",
|
||||
"typeorm": "^0.3.17"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nestjs/schematics": "^9.0.0",
|
||||
"@nestjs/testing": "^9.0.0",
|
||||
"@types/cron": "^2.0.1",
|
||||
"@types/express": "^4.17.13",
|
||||
"@types/imap": "^0.8.37",
|
||||
"@types/jest": "29.5.1",
|
||||
"@types/mailparser-mit": "^1.0.1",
|
||||
"@types/node": "18.16.12",
|
||||
"@types/puppeteer": "^7.0.4",
|
||||
"@types/supertest": "^2.0.11",
|
||||
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
||||
"@typescript-eslint/parser": "^5.0.0",
|
||||
"eslint": "^8.0.1",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-simple-import-sort": "^10.0.0",
|
||||
"jest": "29.5.0",
|
||||
"pm2": "^6.0.5",
|
||||
"prettier": "^2.3.2",
|
||||
"source-map-support": "^0.5.20",
|
||||
"supertest": "^6.1.3",
|
||||
"ts-jest": "29.1.0",
|
||||
"ts-loader": "^9.2.3",
|
||||
"ts-node": "^10.0.0",
|
||||
"tsconfig-paths": "4.2.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"jest": {
|
||||
"moduleFileExtensions": [
|
||||
"js",
|
||||
"json",
|
||||
"ts"
|
||||
],
|
||||
"rootDir": "test",
|
||||
"testRegex": ".*\\.spec\\.ts$",
|
||||
"transform": {
|
||||
"^.+\\.(t|j)s$": "ts-jest"
|
||||
},
|
||||
"collectCoverageFrom": [
|
||||
"**/*.(t|j)s"
|
||||
],
|
||||
"coverageDirectory": "../coverage",
|
||||
"testEnvironment": "node"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue