|
4 | 4 | "description": "React component to create interactive D3 tree hierarchies",
|
5 | 5 | "main": "lib/react-d3-tree.min.js",
|
6 | 6 | "scripts": {
|
7 |
| - "clean": "rimraf lib/*", |
8 |
| - "build": "npm run clean && webpack --progress --colors --env build", |
9 |
| - "dev": "npm run clean && webpack --progress --colors --watch --env dev", |
| 7 | + "clean:lib": "rimraf lib/*", |
| 8 | + "build": "yarn clean:lib && webpack --progress --colors --env build", |
| 9 | + "dev": "yarn clean:lib && webpack --progress --colors --watch --env dev", |
10 | 10 | "lint": "eslint .",
|
11 |
| - "test": "npm run lint && jest --coverage --verbose", |
| 11 | + "test": "yarn lint && jest --coverage --verbose", |
12 | 12 | "test:clean": "rimraf ./coverage",
|
13 | 13 | "test:watch": "jest --watchAll",
|
14 | 14 | "coveralls": "cat ./coverage/lcov.info | coveralls",
|
15 | 15 | "show:cov": "open coverage/lcov-report/index.html",
|
16 | 16 | "docs:react": "react-docgen src -e src/**/*.test.js$|scripts/buildDocs.sh",
|
17 |
| - "docs": "npm run docs:react && npm run docs:util", |
| 17 | + "docs": "yarn docs:react && yarn docs:util", |
18 | 18 | "docs:util": "jsdoc2md src/util/index.js > docs/util/util.md",
|
19 | 19 | "docs:clean": "rimraf docs/components/* && rimraf docs/util/*",
|
20 |
| - "release": "npm run test && npm run build && npm run docs && git commit -a && np", |
| 20 | + "release": "yarn test && yarn build && yarn docs && git commit -a && np", |
21 | 21 | "preanalyze": "rimraf stats.json",
|
22 | 22 | "analyze": "webpack --config webpack.config.js --env build --profile --json > stats.json && echo '==> http://webpack.github.io/analyse/'"
|
23 | 23 | },
|
|
0 commit comments