Skip to content

Commit

Permalink
chore: update to @types
Browse files Browse the repository at this point in the history
closes angular#13
  • Loading branch information
filipesilva authored and wardbell committed Oct 29, 2016
1 parent a179bbb commit 9189edd
Show file tree
Hide file tree
Showing 8 changed files with 3,505 additions and 56 deletions.
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ gulpfile.js
.npmignore
tsconfig.json
tslint.json
typings
typings.json
.editorconfig
rollup.config.js
.travis.yml
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ before_script:
install:
- npm install -g gulp
- npm install
- npm run typings install
script:
- npm run lint
- npm run tsc
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,9 @@ compiling your application project.
`npm list --depth=0`

- consider updating typings, install individually/several:
`npm run typings -- install packagename --ambient --save`

**NB: Do not add to `npm postinstall` as that screws up consumers!**

- `npm run typings install`
```
npm install @types/core-js @types/jasmine @types/node --save-dev
```

- `npm run tsc` to confirm the project compiles w/o error (sanity check)

Expand Down
15 changes: 0 additions & 15 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,3 @@ function runNgc(directory, done) {
done();
});
}

// WILL THIS WORK? DOES IT PROMPT?
function runTypings(done) {
var typingsjs = path.join(process.cwd(), 'node_modules/typings/dist/bin/typings');
var childProcess = cp.spawn('node', [typingsjs, 'install'], { cwd: process.cwd() });
childProcess.stdout.on('data', function (data) {
console.log(data.toString());
});
childProcess.stderr.on('data', function (data) {
console.log(data.toString());
});
childProcess.on('close', function () {
done();
});
}
1 change: 1 addition & 0 deletions in-memory-backend.service.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="core-js" />
import { Injector } from '@angular/core';
import { Connection, ConnectionBackend, Headers, Request, Response, ResponseOptions, URLSearchParams } from '@angular/http';
import { Observable } from 'rxjs/Observable';
Expand Down
48 changes: 22 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "angular-in-memory-web-api",
"version": "0.1.13",
"description": "An in-memory web api for Angular demos and tests",
"main":"bundles/in-memory-web-api.umd.js",
"main": "bundles/in-memory-web-api.umd.js",
"module": "index.js",
"scripts": {
"tsc": "tsc",
Expand All @@ -13,8 +13,7 @@
"start": "concurrently \"npm run tsc:w\" \"npm run lite\" ",
"test": "karma start karma.conf.js",
"build-and-test": "concurrently \"npm run tsc\" \"npm run test\"",
"http-server": "tsc && http-server",
"typings": "typings"
"http-server": "tsc && http-server"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -47,41 +46,38 @@
"@angular/http": "~2.1.0",
"@angular/platform-browser": "~2.1.0",
"@angular/platform-server": "~2.1.0",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.12",
"zone.js": "^0.6.25",

"@types/core-js": "^0.9.34",
"@types/jasmine": "^2.5.36",
"@types/node": "^6.0.46",
"angular-in-memory-web-api": "~0.1.12",
"canonical-path": "0.0.2",
"concurrently": "^3.0.0",
"core-js": "^2.4.1",
"lite-server": "^2.2.2",
"tslint": "^3.15.1",
"typescript": "^2.0.3",
"typings": "^1.4.0",

"canonical-path": "0.0.2",
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-bump": "^2.4.0",
"gulp-load-plugins": "^1.3.0",
"gulp-task-listing": "^1.0.1",
"gulp-util": "^3.0.7",
"http-server": "^0.9.0",
"lodash": "^4.16.2",
"jasmine-core": "~2.5.2",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-htmlfile-reporter": "^0.3.4",
"karma-jasmine": "^1.0.2",
"karma-jasmine-html-reporter": "^0.2.2",
"lite-server": "^2.2.2",
"lodash": "^4.16.2",
"reflect-metadata": "^0.1.3",
"rimraf": "^2.5.4",

"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-bump": "^2.4.0",
"gulp-load-plugins": "^1.3.0",
"gulp-task-listing": "^1.0.1",
"gulp-util": "^3.0.7",

"yargs": "^5.0.0",

"vinyl-source-stream": "^1.1.0",
"rollup": "^0.36.0",
"rollup-stream": "^1.14.0"
"rollup-stream": "^1.14.0",
"rxjs": "5.0.0-beta.12",
"tslint": "^3.15.1",
"typescript": "^2.0.3",
"vinyl-source-stream": "^1.1.0",
"yargs": "^5.0.0",
"zone.js": "^0.6.25"
}
}
7 changes: 0 additions & 7 deletions typings.json

This file was deleted.

Loading

0 comments on commit 9189edd

Please sign in to comment.