Skip to content

Commit 22554af

Browse files
test(ng1): Simplify karma test configuration
1 parent 9f25097 commit 22554af

File tree

5 files changed

+22
-75
lines changed

5 files changed

+22
-75
lines changed

.npmignore

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
# Any hidden files
22
**/.*
33

4-
# Build related stuff
5-
/build
6-
/config
7-
/lib
8-
/ngdoc_assets
9-
/sample
10-
/test
11-
/bower_components
12-
/node_modules
13-
Gruntfile.js
4+
config
5+
test
6+
node_modules
7+
scripts
8+
src
9+
10+
tslint.json
11+
tsconfig.json
12+
tsconfig.**.json
13+
webpack.config.js
1414
files.js
1515

16-
# Package managers
17-
bower.json
18-
component.json
16+
*.iml
17+
*.ipr
18+
*.iws
19+
idea-out

files.js

-54
This file was deleted.
File renamed without changes.
File renamed without changes.

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
"description": "State-based routing for AngularJS 1.x",
44
"version": "1.0.0-beta.4",
55
"scripts": {
6-
"test": "npm run test:integrate",
76
"clean": "shx rm -rf lib lib-esm _doc release",
87
"build": "tsc && tsc -p tsconfig.esm.json",
98
"package": "npm run clean && npm run build && webpack",
109
"watch": "node_modules/watch/cli.js 'npm run test' src test",
11-
"test:ng1": "karma start config/karma.ng15.js",
12-
"test:ng12": "karma start config/karma.ng12.js",
13-
"test:ng13": "karma start config/karma.ng13.js",
14-
"test:ng14": "karma start config/karma.ng14.js",
15-
"test:ng15": "karma start config/karma.ng15.js",
10+
"test": "npm run test:integrate",
11+
"test:ng12": "karma start --ngversion 1.2.28",
12+
"test:ng13": "karma start --ngversion 1.3.16",
13+
"test:ng14": "karma start --ngversion 1.4.9",
14+
"test:ng15": "karma start --ngversion 1.5.0",
1615
"test:integrate": "tsc && npm run test:ng12 && npm run test:ng13 && npm run test:ng14 && npm run test:ng15",
17-
"debug": "karma start config/karma.ng15.js --singleRun=false --browsers=Chrome --autoWatch=true --autoWatchInterval=1",
18-
"docs": "typedoc --tsconfig tsconfig.typedoc.json --readme README.md --name 'angular-ui-router' --theme node_modules/ui-router-typedoc-themes/bin/default --out _doc --external-aliases internalapi,external --navigation-label-globals angular-ui-router"
16+
"debug": "karma start --singleRun=false --browsers=Chrome --autoWatch=true --autoWatchInterval=1",
17+
"docs": "typedoc --tsconfig tsconfig.typedoc.json --readme README.md --name 'angular-ui-router' --theme node_modules/ui-router-typedoc-themes/bin/default --out _doc --external-aliases internalapi,external --navigation-label-globals angular-ui-router",
18+
"prepublish": "npm run package"
1919
},
2020
"homepage": "https://ui-router.github.io",
2121
"contributors": [

0 commit comments

Comments
 (0)