Skip to content

Commit

Permalink
Added husky pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeckenham committed Nov 7, 2024
1 parent ea7a59b commit bc2d613
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn format
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@
"winBuild:pro": "copy _raw\\manifest\\manifest.pro.json _raw\\manifest.json && npm run prepare:pro && npm run winClean && webpack --progress --env config=pro",
"build:pro": "cp _raw/manifest/manifest.pro.json _raw/manifest.json && npm run prepare:pro && npm run clean && webpack --progress --env config=pro",
"build:test": "cp _raw/manifest/manifest.dev.json _raw/manifest.json && npm run clean && webpack --progress --env config=none",
"lint:fix": "eslint --fix --ext .js,.jsx,.ts,.tsx ./src",
"lint:fix": "eslint --fix .",
"lint": "eslint .",
"format:fix": "prettier --write .",
"format": "prettier .",
"icon": "npx iconfont-h5",
"test": "jest",
"pub": "node build/release.js"
"pub": "node build/release.js",
"prepare": "husky",
"postinstall": "husky"
},
"dependencies": {
"@coinbase/cbpay-js": "^1.1.0",
Expand Down Expand Up @@ -163,10 +168,12 @@
"fs-extra": "^10.0.0",
"html-webpack-plugin": "^5.3.1",
"https-browserify": "^1.0.0",
"husky": "^9.1.6",
"i18next": "^20.3.2",
"jest": "^27.4.7",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"pinst": "^3.0.0",
"postcss": "^8.2.8",
"postcss-custom-properties": "^11.0.0",
"postcss-import": "^14.0.0",
Expand Down

0 comments on commit bc2d613

Please sign in to comment.