Skip to content

Commit

Permalink
Merge pull request #34 from typings/update-script
Browse files Browse the repository at this point in the history
update script
  • Loading branch information
unional committed Mar 27, 2016
2 parents 26102b7 + 2c0ef8d commit 9f4cd81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* [x] build: Build typings for testing
* [x] lint: Run tslint
* [x] test: Run tests
* [x] source-test: Run tests transferred from source

## Installation
First, install [Yeoman](http://yeoman.io) and generator-typings using [npm](https://www.npmjs.com/).
Expand Down
10 changes: 6 additions & 4 deletions generators/app/templates/template/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"private": true,
"scripts": {
"build": "typings bundle<%- ambient %> -o out",
"lint": "tslint \"**/*.ts\" -e \"source/**\" -e \"out/**\" -e \"node_modules/**\" -e \"typings/**\"",
"test": "cd test && ts-node ../node_modules/blue-tape/bin/blue-tape \"**/*.ts\" | tap-spec && cd .. && <%- sourceTest %>",
"build": "echo building... && typings bundle<%- ambient %> -o out",
"lint": "echo linting... && tslint \"**/*.ts\" -e \"source/**\" -e \"out/**\" -e \"node_modules/**\" -e \"typings/**\"",
"test": "echo testing... && cd test && ts-node ../node_modules/blue-tape/bin/blue-tape \"**/*.ts\" | tap-spec",
"source-test": "echo source-testing... && <%- sourceTest %>",
"watch": "onchange \"**/*.ts\" -i -e \"out/**\" -- npm -s run build+test",
"publish": "npm -s run lint+build+test && echo please publish to typings/registry",
"build+test": "npm run build && npm run test",
"source-test+test": "npm run source-test && npm test",
"build+test": "npm run build && npm run source-test+test",
"lint+build+test": "npm run lint && npm run build+test",
"prepublish": "typings install"
},
Expand Down

0 comments on commit 9f4cd81

Please sign in to comment.