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

Commit 08226c2

Browse files
chore(package): add extra scripts to make life even smoother
1 parent d38e348 commit 08226c2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,26 @@
77
"license": "MIT",
88
"devDependencies": {
99
"karma": "~0.10",
10-
"protractor": "~0.17.0",
10+
"protractor": "~0.20.1",
1111
"http-server": "^0.6.1",
1212
"bower": "^1.3.1",
1313
"shelljs": "^0.2.6"
1414
},
1515
"scripts": {
1616
"postinstall": "bower install",
1717

18+
"prestart": "npm install",
1819
"start": "http-server -p 8000",
20+
21+
"pretest": "npm install",
1922
"test": "karma start test/karma.conf.js",
23+
"test-single-run": "karma start test/karma.conf.js --single-run",
2024

25+
"preupdate-webdriver": "npm install",
2126
"update-webdriver": "webdriver-manager update",
27+
28+
"preprotractor": "npm run update-webdriver",
2229
"protractor": "protractor test/protractor-conf.js",
23-
"test-single-run": "karma start test/karma.conf.js --single-run",
2430

2531
"update-index-async": "node -e \"require('shelljs/global'); sed('-i', /\\/\\/@@NG_LOADER_START@@[\\s\\S]*\\/\\/@@NG_LOADER_END@@/, '//@@NG_LOADER_START@@\\n' + cat('bower_components/angular-loader/angular-loader.min.js') + '\\n//@@NG_LOADER_END@@', 'app/index-async.html');\""
2632
}

0 commit comments

Comments
 (0)