|
6 | 6 | "repository": "https://github.com/angular/angular-seed",
|
7 | 7 | "license": "MIT",
|
8 | 8 | "devDependencies": {
|
9 |
| - "bower": "^1.7.7", |
10 |
| - "http-server": "^0.9.0", |
| 9 | + "angular-mocks": "^1.5.8", |
11 | 10 | "jasmine-core": "^2.4.1",
|
12 | 11 | "karma": "^0.13.22",
|
13 | 12 | "karma-chrome-launcher": "^0.2.3",
|
14 | 13 | "karma-firefox-launcher": "^0.1.7",
|
15 | 14 | "karma-jasmine": "^0.3.8",
|
16 | 15 | "karma-junit-reporter": "^0.4.1",
|
| 16 | + "local-web-server": "^1.2.6", |
17 | 17 | "protractor": "^4.0.9"
|
18 | 18 | },
|
19 | 19 | "scripts": {
|
20 |
| - "postinstall": "bower install", |
21 |
| - |
22 | 20 | "prestart": "npm install",
|
23 |
| - "start": "http-server -a localhost -p 8000 -c-1 ./app", |
24 |
| - |
| 21 | + "start": "ws", |
25 | 22 | "pretest": "npm install",
|
26 | 23 | "test": "karma start karma.conf.js",
|
27 | 24 | "test-single-run": "karma start karma.conf.js --single-run",
|
28 |
| - |
29 | 25 | "preupdate-webdriver": "npm install",
|
30 | 26 | "update-webdriver": "webdriver-manager update",
|
31 |
| - |
32 | 27 | "preprotractor": "npm run update-webdriver",
|
33 | 28 | "protractor": "protractor e2e-tests/protractor.conf.js",
|
34 |
| - |
35 |
| - "update-index-async": "node -e \"var fs=require('fs'),indexFile='app/index-async.html',loaderFile='app/bower_components/angular-loader/angular-loader.min.js',loaderText=fs.readFileSync(loaderFile,'utf-8').split(/sourceMappingURL=angular-loader.min.js.map/).join('sourceMappingURL=bower_components/angular-loader/angular-loader.min.js.map'),indexText=fs.readFileSync(indexFile,'utf-8').split(/\\/\\/@@NG_LOADER_START@@[\\s\\S]*\\/\\/@@NG_LOADER_END@@/).join('//@@NG_LOADER_START@@\\n'+loaderText+' //@@NG_LOADER_END@@');fs.writeFileSync(indexFile,indexText);\"" |
| 29 | + "update-index-async": "node -e \"var fs=require('fs'),indexFile='app/index-async.html',loaderFile='app/lib/angular-loader/angular-loader.min.js',loaderText=fs.readFileSync(loaderFile,'utf-8').split(/sourceMappingURL=angular-loader.min.js.map/).join('sourceMappingURL=lib/angular-loader/angular-loader.min.js.map'),indexText=fs.readFileSync(indexFile,'utf-8').split(/\\/\\/@@NG_LOADER_START@@[\\s\\S]*\\/\\/@@NG_LOADER_END@@/).join('//@@NG_LOADER_START@@\\n'+loaderText+' //@@NG_LOADER_END@@');fs.writeFileSync(indexFile,indexText);\"" |
| 30 | + }, |
| 31 | + "dependencies": { |
| 32 | + "angular": "^1.5.8", |
| 33 | + "angular-loader": "^1.5.8", |
| 34 | + "angular-route": "^1.5.8", |
| 35 | + "html5-boilerplate": "0.0.1" |
| 36 | + }, |
| 37 | + "local-web-server": { |
| 38 | + "port": 8000, |
| 39 | + "rewrite": [ |
| 40 | + { "from": "/lib/*", "to": "./node_modules/$1" }, |
| 41 | + { "from": "/*", "to": "./app/$1" } |
| 42 | + ] |
36 | 43 | }
|
37 | 44 | }
|
0 commit comments