Skip to content

Commit

Permalink
chore(typescript): Add noImplicitAny compliance check in test script
Browse files Browse the repository at this point in the history
Closes #2693
  • Loading branch information
christopherthielen committed Mar 11, 2017
1 parent 60e7407 commit 8e7386b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions noimplicitany.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// This file should be compiled using --noImplicitAny to ensure the .d.ts files are noImplicitAny compliant.
// tsc --noEmit --noImplicitAny --moduleResolution node --target es6 test/noimplicitany.ts

import * as router from "../lib/index";
console.log(router);
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
"bundle_router": "rollup -c --environment ROUTER && rollup -c --environment ROUTER,MINIFY",
"bundle_events": "rollup -c --environment EVENTS && rollup -c --environment EVENTS,MINIFY",
"bundle_resolve": "rollup -c --environment RESOLVE && rollup -c --environment RESOLVE,MINIFY",
"noimplicitany": "tsc --noEmit --noImplicitAny --moduleResolution node --target es6 test/noimplicitany.ts",
"test": "npm run test:integrate",
"test:ng12": "karma start --ngversion 1.2",
"test:ng13": "karma start --ngversion 1.3",
"test:ng14": "karma start --ngversion 1.4",
"test:ng15": "karma start --ngversion 1.5",
"test:ng16": "karma start --ngversion 1.6",
"test:integrate": "tsc && npm run test:ng12 && npm run test:ng13 && npm run test:ng14 && npm run test:ng15 && npm run test:ng16",
"test:integrate": "tsc && npm run noimplicitany && npm run test:ng12 && npm run test:ng13 && npm run test:ng14 && npm run test:ng15 && npm run test:ng16",
"watch": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1",
"debug": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome",
"docs": "./scripts/docs.js"
Expand Down

0 comments on commit 8e7386b

Please sign in to comment.