|
27 | 27 | "engines": { |
28 | 28 | "node": ">=4" |
29 | 29 | }, |
| 30 | + "release": { |
| 31 | + "verifyConditions": [ |
| 32 | + "@semantic-release/changelog", |
| 33 | + "@semantic-release/npm", |
| 34 | + "@semantic-release/git", |
| 35 | + "@semantic-release/github" |
| 36 | + ], |
| 37 | + "publish": [ |
| 38 | + "@semantic-release/changelog", |
| 39 | + { |
| 40 | + "path": "@semantic-release/npm", |
| 41 | + "npmPublish": true, |
| 42 | + "tarballDir": "dist" |
| 43 | + }, |
| 44 | + { |
| 45 | + "path": "@semantic-release/git", |
| 46 | + "assets": [ |
| 47 | + "package.json", |
| 48 | + "dist/**/*.{js|css}" |
| 49 | + ], |
| 50 | + "message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" |
| 51 | + }, |
| 52 | + { |
| 53 | + "path": "@semantic-release/github", |
| 54 | + "assets": "dist/*.tgz" |
| 55 | + } |
| 56 | + ] |
| 57 | + }, |
| 58 | + "husky": { |
| 59 | + "hooks": { |
| 60 | + "pre-push": "npm test", |
| 61 | + "commit-msg": "commitlint -e $GIT_PARAMS" |
| 62 | + } |
| 63 | + }, |
| 64 | + "commitlint": { |
| 65 | + "extends": [ |
| 66 | + "@commitlint/config-conventional" |
| 67 | + ] |
| 68 | + }, |
30 | 69 | "devDependencies": { |
31 | | - "jest": "^16.0.2" |
| 70 | + "@commitlint/config-conventional": "^6.1.0", |
| 71 | + "@semantic-release/changelog": "^1.0.0", |
| 72 | + "@semantic-release/git": "^3.0.0", |
| 73 | + "@semantic-release/npm": "^3.0.0", |
| 74 | + "commitlint": "^6.1.0", |
| 75 | + "cz-conventional-changelog": "^2.1.0", |
| 76 | + "husky": "^0.15.0-rc.4", |
| 77 | + "jest": "^16.0.2", |
| 78 | + "semantic-release": "^13.1.3" |
32 | 79 | }, |
33 | 80 | "scripts": { |
34 | | - "test": "jest" |
| 81 | + "test": "jest", |
| 82 | + "cz": "git-cz", |
| 83 | + "release": "semantic-release", |
| 84 | + "release-local": "semantic-release --no-ci --dry-run" |
35 | 85 | }, |
36 | 86 | "dependencies": { |
37 | 87 | "binary-case": "^1.0.0" |
| 88 | + }, |
| 89 | + "config": { |
| 90 | + "commitizen": { |
| 91 | + "path": "./node_modules/cz-conventional-changelog" |
| 92 | + } |
38 | 93 | } |
39 | 94 | } |
0 commit comments