Skip to content

Commit 4fef496

Browse files
committed
feat(package): updated to typescript 2
1 parent c1b3b5d commit 4fef496

4 files changed

Lines changed: 40 additions & 25 deletions

File tree

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
"version": "1.0.3",
44
"description": "angular2 file upload directives",
55
"scripts": {
6-
"flow.install:typings": "./node_modules/.bin/typings install",
7-
"flow.compile": "npm run flow.install:typings && npm run flow.compile:common && npm run flow.compile:system",
6+
"flow.compile": "npm run flow.compile:common && npm run flow.compile:system",
87
"flow.compile:common": "./node_modules/.bin/tsc -p tsconfig.publish.json",
98
"flow.compile:system": "./.config/bundle-system.js",
109
"flow.copy:src": "./node_modules/.bin/cpy ng2-file-upload.ts \"components/*.ts\" ts --parents",
11-
"flow.clean": "./node_modules/.bin/del bundles coverage demo-build typings \"components/**/*.+(js|d.ts|js.map)\" dist \"ng2-file-upload.+(js|d.ts|js.map)\"",
10+
"flow.clean": "./node_modules/.bin/del bundles coverage demo-build \"components/**/*.+(js|d.ts|js.map)\" dist \"ng2-file-upload.+(js|d.ts|js.map)\"",
1211
"flow.deploy:gh-pages": "npm run flow.build:prod && ./node_modules/.bin/gh-pages -d demo-build",
1312
"flow.eslint": "./node_modules/.bin/eslint --ignore-path .gitignore --ext js --fix . .config",
1413
"flow.tslint": "./node_modules/.bin/gulp lint",
@@ -63,6 +62,9 @@
6362
"@angular/forms": "2.0.0",
6463
"@angular/platform-browser": "2.0.0",
6564
"@angular/platform-browser-dynamic": "2.0.0",
65+
"@types/jasmine": "2.2.34",
66+
"@types/node": "6.0.39",
67+
"@types/webpack": "1.12.34",
6668
"async": "2.0.1",
6769
"bootstrap": "3.3.7",
6870
"codecov": "1.0.1",
@@ -81,8 +83,8 @@
8183
"gulp-tslint": "6.1.1",
8284
"lite-server": "2.2.2",
8385
"marked": "0.3.6",
84-
"ng2-bootstrap": "1.1.3",
85-
"ng2-webpack-config": "0.0.4",
86+
"ng2-bootstrap": "1.1.5",
87+
"ng2-webpack-config": "0.0.5",
8688
"pre-commit": "1.1.3",
8789
"prismjs": "1.5.1",
8890
"prismjs-loader": "0.0.3",
@@ -91,9 +93,8 @@
9193
"rxjs": "5.0.0-beta.12",
9294
"systemjs-builder": "0.15.31",
9395
"tslint-config-valorsoft": "1.1.1",
94-
"typescript": "1.8.10",
95-
"typings": "1.3.3",
96-
"zone.js": "0.6.23"
96+
"typescript": "2.0.2",
97+
"zone.js": "0.6.25"
9798
},
9899
"contributors": [
99100
{

tsconfig.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,26 @@
1010
"listFiles": false,
1111
"noLib": false,
1212
"noImplicitAny": true,
13-
"suppressImplicitAnyIndexErrors": true
13+
"suppressImplicitAnyIndexErrors": true,
14+
"skipLibCheck": true,
15+
"stripInternal": true,
16+
"lib": [
17+
"dom",
18+
"es6"
19+
],
20+
"types": [
21+
"jasmine",
22+
"node",
23+
"webpack"
24+
]
1425
},
1526
"exclude": [
16-
"node_modules"
27+
"node_modules",
28+
"bundles",
29+
"dist"
1730
],
1831
"files": [
1932
"./ng2-file-upload.ts",
20-
"./demo/custom-typings.d.ts",
21-
"./typings/index.d.ts"
33+
"./demo/custom-typings.d.ts"
2234
]
2335
}

tsconfig.publish.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,25 @@
88
"sourceMap": false,
99
"noEmitHelpers": false,
1010
"noImplicitAny": true,
11-
"declaration": true
11+
"declaration": true,
12+
"skipLibCheck": true,
13+
"stripInternal": true,
14+
"lib": [
15+
"dom",
16+
"es6"
17+
],
18+
"types": [
19+
"jasmine",
20+
"node",
21+
"webpack"
22+
]
1223
},
1324
"exclude": [
14-
"node_modules"
25+
"node_modules",
26+
"bundles",
27+
"dist"
1528
],
1629
"files": [
17-
"./typings/index.d.ts",
1830
"./demo/custom-typings.d.ts",
1931
"./ng2-file-upload.ts"
2032
]

typings.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)