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