Skip to content

Commit

Permalink
chore: improve development
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonictw committed Mar 15, 2023
1 parent a668d0d commit bbca94c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@ RUN . /etc/os-release \

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>"



2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ services:
# (Adding the "ports" property to this file will not forward from a Codespace.)

volumes:
mongodb-data:
mongodb-data:
4 changes: 4 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

exec < /dev/tty && npx cz --hook || true
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
"new-secret": "node new_secret.js",
"dev": "nodemon app.js",
"start": "node app.js",
"lint": "npm run lint:es",
"lint": "npx lint-staged",
"lint:es": "eslint \"*.js\" \"src/**/*.js\"",
"lint:es:fix": "eslint \"*.js\" \"src/**/*.js\" --fix",
"test": "mocha test --exit --recursive --timeout 5000",
"cover": "nyc mocha test --recursive --timeout 5000 --exit",
"prepare": "husky install"
"prepare": "husky install",
"commit": "cz"
},
"lint-staged": {
"*.js": "eslint"
Expand All @@ -36,6 +37,7 @@
"devDependencies": {
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.17.0",
"eslint-config-google": "^0.14.0",
"husky": "^8.0.1",
Expand All @@ -45,5 +47,10 @@
"nodemon": "^2.0.13",
"nyc": "^15.1.0",
"supertest": "^6.2.3"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit bbca94c

Please sign in to comment.