Skip to content

Commit

Permalink
fix: 🐛 update sls lib, husky and readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yeukfei02 committed Sep 13, 2022
1 parent f7a048d commit 2761d6a
Show file tree
Hide file tree
Showing 5 changed files with 793 additions and 717 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- run: yarn

- name: serverless deploy
uses: serverless/github-action@master
uses: serverless/github-action@v3
with:
args: deploy
env:
Expand Down
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"

yarn run lint && yarn run format
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ $ yarn run deploy
// open serverless dashboard
$ yarn run dashboard

// use eslint and prettier to format code
// lint code
$ yarn run lint

// format code
$ yarn run format

// run test case
$ yarn run test

Expand Down
20 changes: 8 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@types/lodash": "^4.14.162",
"@types/moment-timezone": "^0.5.30",
"@types/node": "^14.11.8",
"@types/serverless": "^3.0.1",
"@types/serverless": "^3.12.8",
"@typescript-eslint/eslint-plugin": "^4.4.1",
"@typescript-eslint/parser": "^4.4.1",
"aws-lambda": "^1.0.6",
Expand All @@ -32,14 +32,14 @@
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-prettier": "^3.1.4",
"git-cz": "^4.8.0",
"husky": "^4.3.0",
"husky": "^8.0.0",
"jest": "^26.5.3",
"lambda-tester": "^4.0.1",
"prettier": "^2.1.2",
"serverless": "^3.7.4",
"serverless": "^3.22.0",
"serverless-layers": "^2.5.1",
"serverless-offline": "^8.5.0",
"serverless-plugin-typescript": "^2.1.1",
"serverless-offline": "^10.0.2",
"serverless-plugin-typescript": "^2.1.2",
"standard-version": "^9.3.2",
"ts-jest": "^26.4.1",
"ts-node": "^9.0.0",
Expand All @@ -52,14 +52,10 @@
"dashboard": "serverless dashboard",
"remove": "serverless remove",
"lint": "eslint '*/**/*.{ts,tsx}' --quiet --fix",
"format": "prettier --write '*/**/*.{ts,tsx}'",
"test": "jest --detectOpenHandles",
"commit": "git-cz",
"release": "standard-version"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint",
"pre-push": "yarn lint"
}
"release": "standard-version",
"prepare": "husky install"
}
}
Loading

0 comments on commit 2761d6a

Please sign in to comment.