Skip to content

Commit

Permalink
chore(build): reorganize for single project/repo (not mono-repo for m…
Browse files Browse the repository at this point in the history
…ultiple projects)
  • Loading branch information
christopherthielen committed Oct 22, 2016
1 parent 147a80f commit 941d520
Show file tree
Hide file tree
Showing 52 changed files with 129 additions and 1,761 deletions.
23 changes: 15 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "ui-router",
"description": "State-based routing for Javascript",
"name": "angular-ui-router",
"description": "State-based routing for AngularJS 1.x",
"version": "1.0.0-beta.4",
"scripts": {
"test": "npm run test:integrate",
"build": "node ./scripts/package.js ng1 && node ./scripts/package.js ng2",
"clean": "shx rm -rf lib lib-esm _doc release",
"build": "tsc && tsc -p tsconfig.esm.json",
"package": "npm run clean && npm run build && webpack",
"watch": "node_modules/watch/cli.js 'npm run test' src test",
"test:ng1": "karma start config/karma.ng15.js",
"debug:ng1": "karma start config/karma.ng15.js --singleRun=false --browsers=Chrome --autoWatch=true --autoWatchInterval=1",
"watch:ng1": "node_modules/watch/cli.js 'npm run test:ng1' src test",
"test:ng12": "karma start config/karma.ng12.js",
"test:ng13": "karma start config/karma.ng13.js",
"test:ng14": "karma start config/karma.ng14.js",
"test:ng15": "karma start config/karma.ng15.js",
"test:ng2": "karma start config/karma.ng2.js",
"test:integrate": "tsc && npm run test:ng12 && npm run test:ng13 && npm run test:ng14 && npm run test:ng15",
"docs": "./scripts/docs.sh"
"debug": "karma start config/karma.ng15.js --singleRun=false --browsers=Chrome --autoWatch=true --autoWatchInterval=1",
"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"
},
"homepage": "https://ui-router.github.io",
"contributors": [
Expand Down Expand Up @@ -54,8 +54,14 @@
"node": ">4"
},
"license": "MIT",
"main": "lib/ng1.js",
"jsnext:main": "lib-esm/ng1.js",
"typings": "lib/ng1.d.ts",
"dependencies": {
"ui-router-core": "latest"
"ui-router-core": "=1.0.0"
},
"peerDependencies": {
"angularjs": ">=1.2 <2.0"
},
"devDependencies": {
"@types/angular": "^1.5.14",
Expand All @@ -80,6 +86,7 @@
"lodash": "^4.5.1",
"remap-istanbul": "^0.6.3",
"shelljs": "^0.7.0",
"shx": "^0.1.4",
"systemjs": "^0.18.4",
"tslint": "=2.5.0",
"typedoc": "~0.5.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"module": "es6",
"target": "es5",
"lib": [ "es6", "dom" ],
"allowSyntheticDefaultImports": true,
"rootDir": "src",
"outDir": "lib-esm",
"declaration": true,
"sourceMap": true
},
"files": [
"src/ng1.ts", "src/ng1/legacy/stateEvents.ts"
]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lib": [ "es6", "dom" ],
"allowSyntheticDefaultImports": true,
"rootDir": "src",
"outDir": "build/es5",
"outDir": "lib",
"declaration": true,
"sourceMap": true
},
Expand Down
42 changes: 42 additions & 0 deletions tsconfig.typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"target": "es5",
"allowSyntheticDefaultImports": true,
"outDir": "build/es5",
"declaration": false,
"sourceMap": false
},
"files": [
"../ui-router-core/src/index.ts",
"../ui-router-core/src/interface.ts",
"../ui-router-core/src/globals.ts",
"../ui-router-core/src/router.ts",
"../ui-router-core/src/common/glob.ts",
"../ui-router-core/src/common/trace.ts",
"../ui-router-core/src/params/module.ts",
"../ui-router-core/src/params/interface.ts",
"../ui-router-core/src/resolve/interface.ts",
"../ui-router-core/src/resolve/resolvable.ts",
"../ui-router-core/src/state/interface.ts",
"../ui-router-core/src/state/module.ts",
"../ui-router-core/src/state/stateObject.ts",
"../ui-router-core/src/state/stateRegistry.ts",
"../ui-router-core/src/state/stateService.ts",
"../ui-router-core/src/state/targetState.ts",
"../ui-router-core/src/transition/module.ts",
"../ui-router-core/src/transition/interface.ts",
"../ui-router-core/src/transition/transition.ts",
"../ui-router-core/src/transition/transitionService.ts",
"../ui-router-core/src/url/module.ts",
"../ui-router-core/src/url/urlMatcher.ts",
"../ui-router-core/src/url/urlMatcherFactory.ts",
"../ui-router-core/src/url/urlRouter.ts",
"../ui-router-core/src/view/module.ts",
"../ui-router-core/src/view/view.ts",
"src/ng1.ts",
"node_modules/typescript/lib/lib.es6.d.ts"
]
}
Loading

0 comments on commit 941d520

Please sign in to comment.