|
8 | 8 | "lint": "tslint --config tslint.js --project tsconfig.json", |
9 | 9 | "build": "tsc", |
10 | 10 | "watch": "tsc -w", |
11 | | - "prepublishOnly": "npm run build" |
| 11 | + "prepublishOnly": "npm run build", |
| 12 | + "cz": "git-cz" |
12 | 13 | }, |
13 | 14 | "repository": { |
14 | 15 | "type": "git", |
|
38 | 39 | "typescript": "3.0.1" |
39 | 40 | }, |
40 | 41 | "devDependencies": { |
| 42 | + "@semantic-release/changelog": "^3.0.0", |
| 43 | + "@semantic-release/git": "^7.0.4", |
| 44 | + "@semantic-release/github": "^5.0.6", |
| 45 | + "@semantic-release/npm": "^5.0.4", |
41 | 46 | "@types/node": "^8.10.34", |
42 | 47 | "@types/webpack": "^4.4.14", |
43 | 48 | "@types/webpack-dev-server": "^3.1.1", |
| 49 | + "commitizen": "^3.0.2", |
| 50 | + "cz-conventional-changelog": "^2.1.0", |
44 | 51 | "lint-staged": "^7.2.0", |
45 | 52 | "rimraf": "^2.6.2", |
| 53 | + "semantic-release": "^15.9.17", |
46 | 54 | "tslint": "^5.9.1", |
47 | 55 | "tslint-ionic-rules": "0.0.19" |
48 | 56 | }, |
|
55 | 63 | "ignore": [ |
56 | 64 | "**/__tests__/*.{ts,tsx}" |
57 | 65 | ] |
| 66 | + }, |
| 67 | + "release": { |
| 68 | + "branch": "stable", |
| 69 | + "verifyConditions": [ |
| 70 | + "@semantic-release/changelog", |
| 71 | + "@semantic-release/npm", |
| 72 | + "@semantic-release/github", |
| 73 | + "@semantic-release/git" |
| 74 | + ], |
| 75 | + "prepare": [ |
| 76 | + "@semantic-release/changelog", |
| 77 | + "@semantic-release/npm", |
| 78 | + "@semantic-release/git" |
| 79 | + ], |
| 80 | + "publish": [ |
| 81 | + "@semantic-release/github", |
| 82 | + "@semantic-release/npm" |
| 83 | + ], |
| 84 | + "success": [ |
| 85 | + "@semantic-release/github" |
| 86 | + ], |
| 87 | + "fail": [ |
| 88 | + "@semantic-release/github" |
| 89 | + ] |
| 90 | + }, |
| 91 | + "config": { |
| 92 | + "commitizen": { |
| 93 | + "path": "./node_modules/cz-conventional-changelog" |
| 94 | + } |
58 | 95 | } |
59 | 96 | } |
0 commit comments