Skip to content

Commit

Permalink
Use tslint --test CLI command for simpler testing (palantir#2)
Browse files Browse the repository at this point in the history
* Sync file paths between package.json, tsconfig.json, and publish script
  • Loading branch information
jkillian authored and adidahiya committed Jun 15, 2016
1 parent 956cab1 commit 4ba221d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 32 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"build": "npm-run-all -p compile lint",
"clean": "rm -rf build/",
"compile": "tsc -p ./",
"copy": "cp -f package.json build/src/rules/",
"copy": "cp -f package.json build/",
"lint": "tslint 'src/**/*.ts'",
"preversion": "npm-run-all clean test copy",
"test": "npm-run-all build test-rules",
"test-rules": "node ./build/test/ruleTestRunner.js"
"test-rules": "for path in ./test/rules/*; do tslint -r ./build/ --test $path; done"
},
"devDependencies": {
"colors": "^1.1.2",
Expand Down
4 changes: 2 additions & 2 deletions scripts/npmPublish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
chmod 0600 .npmrc

npm run prepublish
npm run preversion

echo "Publishing..."
npm publish build/src/rules
npm publish build/
28 changes: 0 additions & 28 deletions test/ruleTestRunner.ts

This file was deleted.

1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"declaration": true,
"sourceMap": false,
"target": "es5",
"rootDir": "src/rules/",
"outDir": "build/"
},
"exclude": [
Expand Down

0 comments on commit 4ba221d

Please sign in to comment.