|
32 | 32 | ], |
33 | 33 | "scripts": { |
34 | 34 | "clean": "rimraf coverage", |
| 35 | + "cm": "git-cz", |
35 | 36 | "format": "prettier --write \"**/*.{js,json,md,yml}\"", |
36 | 37 | "lint": "eslint .", |
37 | | - "prepublishOnly": "npm run lint && npm run test", |
| 38 | + "prepublishOnly": "npm run validate", |
38 | 39 | "test": "cross-env NODE_ENV=test jest", |
39 | | - "test:coverage": "npm run test -- --coverage", |
40 | | - "test:watch": "npm run test -- --watch" |
| 40 | + "validate": "npm-run-all --parallel lint test" |
| 41 | + }, |
| 42 | + "config": { |
| 43 | + "commitizen": { |
| 44 | + "path": "./node_modules/cz-conventional-changelog" |
| 45 | + } |
| 46 | + }, |
| 47 | + "private": false, |
| 48 | + "publishConfig": { |
| 49 | + "access": "public" |
41 | 50 | }, |
42 | 51 | "dependencies": {}, |
43 | 52 | "devDependencies": { |
44 | 53 | "@babel/core": "7.3.4", |
| 54 | + "@commitlint/cli": "7.5.2", |
| 55 | + "@commitlint/config-conventional": "7.5.0", |
45 | 56 | "@wkovacs64/eslint-config-react": "2.1.0", |
46 | 57 | "babel-jest": "24.5.0", |
47 | 58 | "codecov": "3.2.0", |
| 59 | + "commitizen": "3.0.7", |
48 | 60 | "cross-env": "5.2.0", |
| 61 | + "cz-conventional-changelog": "2.1.0", |
49 | 62 | "doctoc": "1.4.0", |
50 | 63 | "eslint": "5.15.1", |
51 | 64 | "eslint-plugin-import": "2.16.0", |
|
58 | 71 | "jest-watch-typeahead": "0.2.1", |
59 | 72 | "lint-staged": "8.1.5", |
60 | 73 | "metro-react-native-babel-preset": "0.53.0", |
| 74 | + "npm-run-all": "4.1.5", |
61 | 75 | "prettier": "1.16.4", |
62 | 76 | "prop-types": "15.7.2", |
63 | 77 | "react": "16.8.4", |
64 | 78 | "react-dom": "16.8.4", |
65 | 79 | "react-native": "0.59.0", |
66 | 80 | "react-native-testing-library": "1.6.0", |
67 | 81 | "react-test-renderer": "16.8.4", |
68 | | - "rimraf": "2.6.3" |
| 82 | + "rimraf": "2.6.3", |
| 83 | + "semantic-release": "15.13.3" |
69 | 84 | }, |
70 | 85 | "peerDependencies": { |
71 | 86 | "prop-types": ">=15", |
|
0 commit comments