Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

cd ./apps/backend && yarn run lint-staged
12 changes: 11 additions & 1 deletion apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json --runInBand"
"test:e2e": "jest --config ./test/jest-e2e.json --runInBand",
"lint-staged": "lint-staged",
"nibble": "eslint-nibble --ext .ts src/"
},
"dependencies": {
"@nestjs/common": "8.0.0",
Expand Down Expand Up @@ -52,8 +54,10 @@
"@typescript-eslint/parser": "5.0.0",
"eslint": "8.0.1",
"eslint-config-prettier": "8.3.0",
"eslint-nibble": "8.1.0",
"eslint-plugin-prettier": "4.0.0",
"jest": "27.2.5",
"lint-staged": "13.0.3",
"prettier": "2.3.2",
"source-map-support": "0.5.20",
"supertest": "6.3.1",
Expand All @@ -79,5 +83,11 @@
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"lint-staged": {
"*.{tsx,ts}": [
"prettier --write",
"eslint --fix"
]
}
}
1 change: 0 additions & 1 deletion apps/backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ async function bootstrap() {
await app.listen(process.env.APP_PORT || 3000);
}
bootstrap();

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,21 @@
"watch": "run-p 'watch:backend'",
"start:backend:local": "yarn workspace @payment/backend start:local",
"start:local": "run-p 'start:backend:local'",
"test": "echo 'Running tests' && wsrun --parallel --exclude-missing test"
"test": "echo 'Running tests' && wsrun --parallel --exclude-missing test",
"nibble": "cd ./apps/backend && yarn run nibble",
"postinstall": "husky install",
"prepack": "pinst --disable",
"postpack": "pinst --enable"
},
"devDependencies": {
"@tsconfig/node14": "1.0.1",
"@typescript-eslint/eslint-plugin": "5.0.0",
"@typescript-eslint/parser": "5.0.0",
"eslint-config-prettier": "8.3.0",
"husky": "7.0.4",
"husky": "8.0.0",
"nodemon": "2.0.15",
"npm-run-all": "4.1.5",
"pinst": "3.0.0",
"prettier": "2.4.1",
"pretty-quick": "3.1.2",
"start-server-and-test": "1.14.0",
Expand Down
Loading