Skip to content

Commit cef0aad

Browse files
committed
Added UMD bundle
1 parent 163ac19 commit cef0aad

File tree

4 files changed

+32
-14
lines changed

4 files changed

+32
-14
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
<a name="2.8.1"></a>
2+
# 2.8.1 (2017-02-09)
3+
* Added UMD bundle
4+
15
<a name="2.8.0"></a>
2-
# 2.8.0 (2017-01-03)
6+
# 2.8.0 (2017-02-03)
37
* Fixing AOT
48
* Fixing Core-JS
59
* Fixing drag on firefox

example/cli/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@
1313
},
1414
"private": true,
1515
"dependencies": {
16-
"@angular/common": "^2.3.1",
17-
"@angular/compiler": "^2.3.1",
18-
"@angular/core": "^2.3.1",
19-
"@angular/forms": "^2.3.1",
20-
"@angular/http": "^2.3.1",
21-
"@angular/platform-browser": "^2.3.1",
22-
"@angular/platform-browser-dynamic": "^2.3.1",
16+
"@angular/common": "^2.4.6",
17+
"@angular/compiler": "^2.4.6",
18+
"@angular/core": "^2.4.6",
19+
"@angular/forms": "^2.4.6",
20+
"@angular/http": "^2.4.6",
21+
"@angular/platform-browser": "^2.4.6",
22+
"@angular/platform-browser-dynamic": "^2.4.6",
2323
"@angular/router": "^3.3.1",
24-
"angular2-tree-component": "2.7.0",
24+
"angular2-tree-component": "^2.8.0",
2525
"core-js": "^2.4.1",
2626
"rxjs": "^5.0.1",
2727
"ts-helpers": "^1.1.1",
2828
"zone.js": "^0.7.2"
2929
},
3030
"devDependencies": {
31-
"@angular/compiler-cli": "^2.3.1",
31+
"@angular/compiler-cli": "^2.4.6",
3232
"@types/jasmine": "2.5.38",
3333
"@types/node": "^6.0.42",
3434
"angular-cli": "1.0.0-beta.24",

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"name": "angular2-tree-component",
3-
"version": "2.8.0",
3+
"version": "2.8.1",
44
"description": "A simple yet powerful tree component for Angular2",
55
"author": "Adam Klein <adam@500tech.com>",
66
"homepage": "https://github.com/500tech/angular2-tree-component",
77
"license": "MIT",
8-
"main": "dist/angular2-tree-component.js",
8+
"main": "dist/angular2-tree-component.umd.js",
9+
"jsnext:main": "dist/angular2-tree-component.js",
10+
"module": "dist/angular2-tree-component.js",
911
"types": "dist/angular2-tree-component.d.ts",
1012
"keywords": [
1113
"angular2",
@@ -20,7 +22,8 @@
2022
"clean": "rimraf node_modules && npm run clean:typescript && npm cache clean",
2123
"clean:typescript": "rimraf dist",
2224
"lint": "tslint lib/**/*.ts",
23-
"build": "npm run lint && npm run clean:typescript && ngc",
25+
"rollup": "rollup -c rollup.config.js dist/angular2-tree-component.js > dist/angular2-tree-component.umd.js",
26+
"build": "npm run lint && npm run clean:typescript && ngc && npm run rollup",
2427
"example:cli": "npm run build && cp -rf dist example/cli/node_modules/angular2-tree-component/ && cd example/cli && ng serve",
2528
"example:cli:build": "cd example/cli && ng build --aot"
2629
},
@@ -36,7 +39,9 @@
3639
"@angular/common": "^2.0.0"
3740
},
3841
"dependencies": {
39-
"lodash": "^4.6.1"
42+
"lodash": "^4.6.1",
43+
"mobx": "3.1.0",
44+
"ng2-mobx": "1.2.2"
4045
},
4146
"devDependencies": {
4247
"@angular/common": "^2.3.0",
@@ -56,6 +61,7 @@
5661
"core-js": "^2.4.0",
5762
"lodash": "^4.6.1",
5863
"rimraf": "^2.5.1",
64+
"rollup": "0.41.4",
5965
"rxjs": "^5.0.0",
6066
"tslint": "4.4.2",
6167
"typedoc": "^0.3.12",

rollup.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
format: 'umd',
3+
moduleName: 'angular2-tree-component',
4+
external: [
5+
'@angular/core',
6+
'@angular/common'
7+
]
8+
};

0 commit comments

Comments
 (0)