Skip to content

Commit 50fe6a4

Browse files
authored
Keep calm and commit (#37)
1 parent a0ac0a3 commit 50fe6a4

File tree

3 files changed

+562
-1
lines changed

3 files changed

+562
-1
lines changed

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm test

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@
1313
"build:docs": "rm -rf assets && webpack --mode production --config ./docs/webpack.config.js",
1414
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:types && npm run build:gulp",
1515
"clean": "rimraf dist",
16+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
1617
"dev": "webpack serve --mode development --port 3100 --host 0.0.0.0 --progress --config ./docs/webpack.config.js",
1718
"format": "prettier --write \"{src,test}/**/*.{tsx,ts,js}\"",
1819
"format:check": "prettier --list-different \"{src,test}/**/*.{tsx,ts,js}\"",
1920
"lint": "eslint src/**/*.{ts,tsx}",
2021
"publish:docs": "node docs/gh-pages.js",
2122
"prepublishOnly": "npm run build",
2223
"test:watch": "jest --watch ",
23-
"test": "npm run format:check && npm run lint && jest"
24+
"test": "npm run format:check && npm run lint && jest",
25+
"prepare": "husky install"
2426
},
2527
"repository": {
2628
"type": "git",
@@ -74,6 +76,7 @@
7476
"@typescript-eslint/parser": "^5.30.5",
7577
"autoprefixer": "^10.4.7",
7678
"babel-loader": "^8.1.0",
79+
"conventional-changelog-cli": "^2.2.2",
7780
"css-loader": "^6.7.1",
7881
"cssnano": "^5.1.12",
7982
"eslint": "^7.25.0",
@@ -89,6 +92,7 @@
8992
"gulp-rename": "^2.0.0",
9093
"gulp-sourcemaps": "^3.0.0",
9194
"html-webpack-plugin": "^5.5.0",
95+
"husky": "^8.0.1",
9296
"jest": "^28.1.2",
9397
"jest-environment-jsdom": "^28.1.2",
9498
"less": "^4.1.3",

0 commit comments

Comments
 (0)