Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit cfe5b4e

Browse files
chore(package.json): use cpx to copy deps
1 parent c6dac7d commit cfe5b4e

File tree

2 files changed

+5
-46
lines changed

2 files changed

+5
-46
lines changed

package.json

+5-11
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,36 @@
99
"angular": "^1.5.9",
1010
"angular-loader": "^1.5.9",
1111
"angular-route": "^1.5.9",
12-
"html5-boilerplate": "0.0.1",
13-
"shelljs": "^0.7.5"
12+
"html5-boilerplate": "0.0.1"
1413
},
1514
"devDependencies": {
1615
"angular-mocks": "^1.5.9",
1716
"bower": "^1.7.7",
17+
"cpx": "^1.5.0",
1818
"http-server": "^0.9.0",
1919
"jasmine-core": "^2.4.1",
2020
"karma": "^0.13.22",
2121
"karma-chrome-launcher": "^0.2.3",
2222
"karma-firefox-launcher": "^0.1.7",
2323
"karma-jasmine": "^0.3.8",
2424
"karma-junit-reporter": "^0.4.1",
25-
"protractor": "^4.0.9"
25+
"protractor": "^4.0.9",
26+
"shelljs": "^0.7.5"
2627
},
2728
"scripts": {
2829
"postinstall": "npm run copy-libs",
29-
3030
"update-deps": "npm update",
3131
"postupdate-deps": "npm run copy-libs",
32-
33-
"copy-libs": "node scripts/copy-libs.js",
34-
32+
"copy-libs": "cpx \"node_modules/{angular,angular-*,html5-boilerplate}/**/*\" app/lib -C",
3533
"prestart": "npm install",
3634
"start": "http-server -a localhost -p 8000 -c-1 ./app",
3735
"pretest": "npm install",
38-
3936
"test": "karma start karma.conf.js",
4037
"test-single-run": "karma start karma.conf.js --single-run",
41-
4238
"preupdate-webdriver": "npm install",
4339
"update-webdriver": "webdriver-manager update",
44-
4540
"preprotractor": "npm run update-webdriver",
4641
"protractor": "protractor e2e-tests/protractor.conf.js",
47-
4842
"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);\""
4943
}
5044
}

scripts/copy-libs.js

-35
This file was deleted.

0 commit comments

Comments
 (0)