Skip to content

Commit 941d520

Browse files
chore(build): reorganize for single project/repo (not mono-repo for multiple projects)
1 parent 147a80f commit 941d520

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+129
-1761
lines changed

package.json

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"name": "ui-router",
3-
"description": "State-based routing for Javascript",
2+
"name": "angular-ui-router",
3+
"description": "State-based routing for AngularJS 1.x",
44
"version": "1.0.0-beta.4",
55
"scripts": {
66
"test": "npm run test:integrate",
7-
"build": "node ./scripts/package.js ng1 && node ./scripts/package.js ng2",
7+
"clean": "shx rm -rf lib lib-esm _doc release",
8+
"build": "tsc && tsc -p tsconfig.esm.json",
9+
"package": "npm run clean && npm run build && webpack",
810
"watch": "node_modules/watch/cli.js 'npm run test' src test",
911
"test:ng1": "karma start config/karma.ng15.js",
10-
"debug:ng1": "karma start config/karma.ng15.js --singleRun=false --browsers=Chrome --autoWatch=true --autoWatchInterval=1",
11-
"watch:ng1": "node_modules/watch/cli.js 'npm run test:ng1' src test",
1212
"test:ng12": "karma start config/karma.ng12.js",
1313
"test:ng13": "karma start config/karma.ng13.js",
1414
"test:ng14": "karma start config/karma.ng14.js",
1515
"test:ng15": "karma start config/karma.ng15.js",
16-
"test:ng2": "karma start config/karma.ng2.js",
1716
"test:integrate": "tsc && npm run test:ng12 && npm run test:ng13 && npm run test:ng14 && npm run test:ng15",
18-
"docs": "./scripts/docs.sh"
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"
1919
},
2020
"homepage": "https://ui-router.github.io",
2121
"contributors": [
@@ -54,8 +54,14 @@
5454
"node": ">4"
5555
},
5656
"license": "MIT",
57+
"main": "lib/ng1.js",
58+
"jsnext:main": "lib-esm/ng1.js",
59+
"typings": "lib/ng1.d.ts",
5760
"dependencies": {
58-
"ui-router-core": "latest"
61+
"ui-router-core": "=1.0.0"
62+
},
63+
"peerDependencies": {
64+
"angularjs": ">=1.2 <2.0"
5965
},
6066
"devDependencies": {
6167
"@types/angular": "^1.5.14",
@@ -80,6 +86,7 @@
8086
"lodash": "^4.5.1",
8187
"remap-istanbul": "^0.6.3",
8288
"shelljs": "^0.7.0",
89+
"shx": "^0.1.4",
8390
"systemjs": "^0.18.4",
8491
"tslint": "=2.5.0",
8592
"typedoc": "~0.5.0",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tsconfig.esm.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"compilerOptions": {
3+
"emitDecoratorMetadata": true,
4+
"experimentalDecorators": true,
5+
"moduleResolution": "node",
6+
"module": "es6",
7+
"target": "es5",
8+
"lib": [ "es6", "dom" ],
9+
"allowSyntheticDefaultImports": true,
10+
"rootDir": "src",
11+
"outDir": "lib-esm",
12+
"declaration": true,
13+
"sourceMap": true
14+
},
15+
"files": [
16+
"src/ng1.ts", "src/ng1/legacy/stateEvents.ts"
17+
]
18+
}

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"lib": [ "es6", "dom" ],
99
"allowSyntheticDefaultImports": true,
1010
"rootDir": "src",
11-
"outDir": "build/es5",
11+
"outDir": "lib",
1212
"declaration": true,
1313
"sourceMap": true
1414
},

tsconfig.typedoc.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"compilerOptions": {
3+
"emitDecoratorMetadata": true,
4+
"experimentalDecorators": true,
5+
"module": "commonjs",
6+
"target": "es5",
7+
"allowSyntheticDefaultImports": true,
8+
"outDir": "build/es5",
9+
"declaration": false,
10+
"sourceMap": false
11+
},
12+
"files": [
13+
"../ui-router-core/src/index.ts",
14+
"../ui-router-core/src/interface.ts",
15+
"../ui-router-core/src/globals.ts",
16+
"../ui-router-core/src/router.ts",
17+
"../ui-router-core/src/common/glob.ts",
18+
"../ui-router-core/src/common/trace.ts",
19+
"../ui-router-core/src/params/module.ts",
20+
"../ui-router-core/src/params/interface.ts",
21+
"../ui-router-core/src/resolve/interface.ts",
22+
"../ui-router-core/src/resolve/resolvable.ts",
23+
"../ui-router-core/src/state/interface.ts",
24+
"../ui-router-core/src/state/module.ts",
25+
"../ui-router-core/src/state/stateObject.ts",
26+
"../ui-router-core/src/state/stateRegistry.ts",
27+
"../ui-router-core/src/state/stateService.ts",
28+
"../ui-router-core/src/state/targetState.ts",
29+
"../ui-router-core/src/transition/module.ts",
30+
"../ui-router-core/src/transition/interface.ts",
31+
"../ui-router-core/src/transition/transition.ts",
32+
"../ui-router-core/src/transition/transitionService.ts",
33+
"../ui-router-core/src/url/module.ts",
34+
"../ui-router-core/src/url/urlMatcher.ts",
35+
"../ui-router-core/src/url/urlMatcherFactory.ts",
36+
"../ui-router-core/src/url/urlRouter.ts",
37+
"../ui-router-core/src/view/module.ts",
38+
"../ui-router-core/src/view/view.ts",
39+
"src/ng1.ts",
40+
"node_modules/typescript/lib/lib.es6.d.ts"
41+
]
42+
}

0 commit comments

Comments
 (0)