Skip to content

Commit a01b952

Browse files
chore(*): create packaging scripts for ng1/ng2/core/ng1-bower
chore(*): bump package.json chore(*): remove bower from travis
1 parent 70bc938 commit a01b952

36 files changed

+2092
-36
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# master only
22
build
3+
build_packages
34
site
45

56
# common

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ before_script:
77
- sh -e /etc/init.d/xvfb start
88
- npm install -g karma
99
- npm install -g grunt-cli
10-
- npm install -g bower
11-
- bower install
1210
- ./nodeserver.sh > /dev/null &
1311

1412
script:

CHANGELOG.md

Lines changed: 1552 additions & 0 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"name": "angular-ui-router",
3-
"description": "State-based routing for AngularJS",
4-
"version": "1.0.0alpha0",
5-
"homepage": "http://angular-ui.github.com/",
2+
"name": "ui-router",
3+
"description": "State-based routing for Javascript",
4+
"version": "1.0.0-alpha.1",
5+
"scripts": {},
6+
"homepage": "http://angular-ui.github.com/ui-router",
67
"contributors": [
78
{
89
"name": "Nate Abele",
@@ -13,11 +14,6 @@
1314
"name": "Chris Thielen",
1415
"web": "https://github.com/christopherthielen"
1516
},
16-
{
17-
"name": "Chris Thielen",
18-
"email": "[email protected]",
19-
"web": "https://github.com/christopherthielen"
20-
},
2117
{
2218
"name": "Tim Kindberg",
2319
"web": "https://github.com/timkindberg"
@@ -40,19 +36,15 @@
4036
"bugs": {
4137
"url": "https://github.com/angular-ui/ui-router/issues"
4238
},
43-
"license": "MIT",
44-
"licenses": [
45-
{
46-
"type": "MIT",
47-
"url": "https://github.com/angular-ui/ui-router/blob/master/LICENSE"
48-
}
49-
],
50-
"dependencies": {
51-
"angular": "^1.2"
39+
"engines": {
40+
"node": ">4"
5241
},
42+
"license": "MIT",
5343
"devDependencies": {
5444
"angular2": "^2.0.0-beta.1",
5545
"babel-core": "^5.8.14",
46+
"conventional-changelog": "^1.1.0",
47+
"conventional-changelog-cli": "^1.1.1",
5648
"es6-module-loader": "^0.17.3",
5749
"es6-promise": "^3.0.2",
5850
"es6-shim": "^0.33.13",
@@ -77,17 +69,19 @@
7769
"karma-script-launcher": "~0.1.0",
7870
"karma-systemjs": "^0.7.2",
7971
"load-grunt-tasks": "~0.4.0",
72+
"lodash": "^4.5.1",
8073
"phantomjs-polyfill": "0.0.1",
8174
"reflect-metadata": "=0.1.2",
8275
"rxjs": "^5.0.0-beta.0",
83-
"shelljs": "~0.2.6",
76+
"shelljs": "~0.6.0",
8477
"systemjs": "^0.18.4",
78+
"ts-loader": "^0.8.1",
8579
"tslint": "=2.5.0",
8680
"typedoc": "git://github.com/christopherthielen/typedoc.git#v0.3-uirouter",
87-
"typescript": "=1.7.3",
81+
"typescript": "~1.8.0",
8882
"webpack": "1.x",
8983
"webpack-dev-server": "1.x",
84+
"yargs": "^4.2.0",
9085
"zone.js": "^0.5.10"
91-
},
92-
"main": "release/angular-ui-router.js"
86+
}
9387
}

packages/core/.npmignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/tsconfig.json
2+
**/webpack.config.js
3+
**/node_modules
4+
**/ng1*
5+
**/ng2*
6+
typings
7+
.*

packages/core/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "ui-router-core",
3+
"description": "Framework-agnostic state based routing for Javascript",
4+
"main": "core.js",
5+
"typings": "core.d.ts"
6+
}

packages/core/sources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"dirs": { "src": "_src" },
3+
"excludes": [ "ng1", "ng1.ts", "ng2", "ng2.ts"]
4+
}

packages/core/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"compilerOptions": { "rootDir": ".", "outDir": ".." },
3+
"files": [ "core.ts" ]
4+
}

packages/core/webpack.config.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// <package>/../../src/ is copied to <package>/src
2+
// This config is then copied to <package>/src/webpack.config.js
3+
4+
var webpack = require('webpack');
5+
module.exports = {
6+
entry: {
7+
"ui-router-core": "./core.ts",
8+
"ui-router-core.min": "./core.ts"
9+
},
10+
11+
output: {
12+
path: __dirname + "/../_bundles",
13+
filename: "[name].js",
14+
libraryTarget: "umd",
15+
library: "ui-router-core",
16+
umdNamedDefine: true
17+
},
18+
19+
devtool: 'source-map',
20+
21+
resolve: {
22+
modulesDirectories: ['../../../node_modules'],
23+
extensions: ['', '.js', '.ts']
24+
},
25+
26+
plugins: [
27+
new webpack.optimize.UglifyJsPlugin({
28+
include: /\.min\.js$/, minimize: true
29+
})
30+
],
31+
32+
module: {
33+
loaders: [
34+
{ test: /\.ts$/, loader: "ts-loader" }
35+
]
36+
}
37+
};

bower.json renamed to packages/ng1-bower/bower.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
},
99
"ignore": [
1010
"**/.*",
11-
"node_modules",
11+
"**/tsconfig.json",
12+
"**/webpack.config.js",
13+
"**/node_modules",
14+
"**/ng2*",
15+
"**/typings",
16+
"commonjs",
1217
"bower_components",
1318
"component.json",
1419
"package.json",
@@ -22,3 +27,4 @@
2227
"files.js"
2328
]
2429
}
30+

0 commit comments

Comments
 (0)