Skip to content

Commit

Permalink
chore(build): re-create typings after install
Browse files Browse the repository at this point in the history
Also:

1. add clean npm script commands
1. stop tracking typings directory
  • Loading branch information
GiuseppePiscopo committed Sep 16, 2016
1 parent 56d040b commit cddcfe1
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 1,194 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ npm-debug.log
coverage
lib
build
typings
src/*.js
src/*.map
src/*.d.ts
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"description": "An Angular 2 Toaster Notification library based on AngularJS-Toaster",
"main": "angular2-toaster.ts",
"scripts": {
"postinstall": "typings install",
"clean": "rimraf ./lib",
"watch": "tsc -p src -w",
"start": "npm run test && http-server -c-1 -o -p 8875 .",
"build": "node_modules/.bin/ngc -p src && cpx src/toaster.css lib",
Expand Down Expand Up @@ -55,8 +57,10 @@
"karma-jasmine": "1.0.2",
"reflect-metadata": "0.1.8",
"remap-istanbul": "^0.6.4",
"rimraf": "^2.5.2",
"systemjs": "^0.19.38",
"typescript": "2.0.2",
"typings": "^1.3.3",
"zone.js": "0.6.21"
}
}
21 changes: 9 additions & 12 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@
"outDir": "../lib",
"stripInternal": true
},
"files": [
"bodyOutputType.ts",
"toast.ts",
"toaster-config.ts",
"toast.component.ts",
"toaster-container.component.ts",
"toaster-container.component.spec.ts",
"toaster.service.ts",
"toaster.module.ts",
"../node_modules/typescript/lib/lib.es6.d.ts",
"../typings/jasmine/jasmine.d.ts"
]
"include": [
"../src/**/*.ts",
"../typings/index.d.ts"
],
"exclude": [
"../lib",
"../node_modules",
"../src/node_modules"
]
}
15 changes: 0 additions & 15 deletions tsd.json

This file was deleted.

9 changes: 9 additions & 0 deletions typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160914114559",
"node": "registry:dt/node#6.0.0+20160915134512"
},
"globalDevDependencies": {
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255"
}
}
Loading

0 comments on commit cddcfe1

Please sign in to comment.