|
7 | 7 | "repository": "Profiscience/ko-component-router", |
8 | 8 | "main": "dist/ko-component-router.js", |
9 | 9 | "scripts": { |
10 | | - "build": "concurrently --kill-others -p name --names \"DIST,LIB\" -c blue,cyan \"npm run build:dist\" \"npm run build:lib\"", |
| 10 | + "build": "concurrently --kill-others -p name --names \"DIST,LIB\" -c blue,cyan,magenta \"npm run build:dist\" \"npm run build:lib\" \"npm run build:example\"", |
11 | 11 | "build:dist": "webpack", |
12 | 12 | "build:lib": "babel src -d lib", |
13 | | - "watch": "concurrently --kill-others -p name --names \"DIST,LIB\" -c blue,cyan \"npm run watch:dist\" \"npm run watch:lib\"", |
| 13 | + "build:example": "webpack -p --config webpack.config.example.js", |
| 14 | + "watch": "concurrently --kill-others -p name --names \"DIST,LIB\" -c blue,cyan,magenta \"npm run watch:dist\" \"npm run watch:lib\" \"npm run watch:example\"", |
14 | 15 | "watch:dist": "webpack --watch", |
15 | 16 | "watch:lib": "babel src -wd lib", |
| 17 | + "watch:example": "webpack --watch --config webpack.config.example.js", |
| 18 | + "serve:example": "webpack-dev-server --config webpack.config.example.js", |
16 | 19 | "lint": "eslint --max-warnings=0 *.js", |
17 | 20 | "format": "eslint --fix --max-warnings=0 *.js", |
18 | 21 | "stage": "git add dist example/dist lib", |
19 | | - "test": "karma start", |
20 | | - "test:watch": "karma start karma.watch.js", |
21 | | - "example:build": "webpack -p --config webpack.config.example.js", |
22 | | - "example:watch": "webpack --watch --config webpack.config.example.js", |
23 | | - "example:serve": "webpack-dev-server --config webpack.config.example.js" |
| 22 | + "test": "npm run lint; karma start", |
| 23 | + "test:watch": "karma start karma.watch.js" |
24 | 24 | }, |
25 | | - "precommit": [ |
26 | | - [ |
27 | | - "lint", |
28 | | - "test" |
29 | | - ], |
30 | | - [ |
31 | | - "build", |
32 | | - "example:build" |
33 | | - ], |
34 | | - "stage" |
35 | | - ], |
36 | 25 | "keywords": [ |
37 | 26 | "knockoutjs", |
38 | 27 | "knockout", |
|
78 | 67 | "karma-webpack": "^1.7.0", |
79 | 68 | "knockout": "^3.3.0", |
80 | 69 | "ko-component-tester": "^3.1.0", |
81 | | - "pre-commit": "caseyWebb/pre-commit", |
82 | 70 | "prismjs": "^1.3.0", |
83 | 71 | "raf": "^3.2.0", |
84 | 72 | "style-loader": "^0.13.0", |
|
0 commit comments