|
19 | 19 | },
|
20 | 20 | "homepage": "https://github.com/svga/SVGAPlayer-Web-Lite/#readme",
|
21 | 21 | "scripts": {
|
| 22 | + "format:check": "eslint", |
22 | 23 | "test": "cross-env NODE_ENV=test rollup -c -w",
|
23 | 24 | "clean": "rimraf dist",
|
24 | 25 | "build:umd": "cross-env FORMAT=umd rollup -c",
|
|
36 | 37 | "devDependencies": {
|
37 | 38 | "@babel/core": "^7.5.5",
|
38 | 39 | "@babel/preset-env": "^7.5.5",
|
| 40 | + "@commitlint/cli": "^13.1.0", |
| 41 | + "@commitlint/config-conventional": "^13.1.0", |
39 | 42 | "@rollup/plugin-babel": "^5.3.0",
|
40 | 43 | "@rollup/plugin-commonjs": "^19.0.0",
|
41 | 44 | "@rollup/plugin-node-resolve": "^13.0.0",
|
|
49 | 52 | "eslint-plugin-promise": "^4.2.1",
|
50 | 53 | "fs-extra": "^10.0.0",
|
51 | 54 | "glob": "^7.1.7",
|
| 55 | + "lint-staged": "^11.1.1", |
52 | 56 | "npm-run-all": "^4.1.5",
|
53 | 57 | "protobufjs": "git+https://github.com/lijialiang/protobuf.js.git",
|
54 | 58 | "rimraf": "^3.0.2",
|
|
61 | 65 | "rollup-plugin-typescript2": "^0.30.0",
|
62 | 66 | "tslib": "^2.3.0",
|
63 | 67 | "typescript": "^4.3.5",
|
| 68 | + "yorkie": "^2.0.0", |
64 | 69 | "zlibjs": "git+https://github.com/lijialiang/zlib.js.git#esm"
|
| 70 | + }, |
| 71 | + "lint-staged": { |
| 72 | + "./src/**/*.{js,ts}": [ |
| 73 | + "npm run format:check" |
| 74 | + ] |
| 75 | + }, |
| 76 | + "commitlint": { |
| 77 | + "extends": [ |
| 78 | + "@commitlint/config-conventional" |
| 79 | + ] |
| 80 | + }, |
| 81 | + "gitHooks": { |
| 82 | + "pre-commit": "lint-staged", |
| 83 | + "commit-msg": "commitlint -e $GIT_PARAMS" |
65 | 84 | }
|
66 | 85 | }
|
0 commit comments