From c68160ddbe1a86de9c6ae7087e595a1baf7f76b6 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Tue, 12 Jul 2016 21:12:45 +0100 Subject: [PATCH] chore: update to @types --- .npmignore | 2 -- .travis.yml | 1 - README.md | 6 +----- gulpfile.js | 15 --------------- package.json | 10 ++++++---- 5 files changed, 7 insertions(+), 27 deletions(-) diff --git a/.npmignore b/.npmignore index 11e732b..982b5b5 100644 --- a/.npmignore +++ b/.npmignore @@ -7,8 +7,6 @@ gulpfile.js .npmignore tsconfig.json tslint.json -typings -typings.json .editorconfig rollup.config.js .travis.yml diff --git a/.travis.yml b/.travis.yml index 8577ea3..fa17ad9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,6 @@ before_script: install: - npm install -g gulp - npm install - - npm run typings install script: - npm run lint - npm run tsc diff --git a/README.md b/README.md index 83827b4..edad35b 100644 --- a/README.md +++ b/README.md @@ -180,11 +180,7 @@ 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,jasmine,node} --save-dev` - `npm run tsc` to confirm the project compiles w/o error (sanity check) diff --git a/gulpfile.js b/gulpfile.js index 37e1d00..a24134d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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(); - }); -} diff --git a/package.json b/package.json index c50e980..b6450e3 100644 --- a/package.json +++ b/package.json @@ -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", @@ -57,7 +56,6 @@ "lite-server": "^2.2.2", "tslint": "^3.15.1", "typescript": "^2.0.3", - "typings": "^1.4.0", "canonical-path": "0.0.2", "http-server": "^0.9.0", @@ -82,6 +80,10 @@ "vinyl-source-stream": "^1.1.0", "rollup": "^0.36.0", - "rollup-stream": "^1.14.0" + "rollup-stream": "^1.14.0", + + "@types/core-js": "^0.9.34", + "@types/jasmine": "^2.5.35", + "@types/node": "^6.0.45" } }