Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
Echo out so user knows which task is executing.
Separate test and source-test as it wasn't run correctly together.
  • Loading branch information
unional committed Mar 27, 2016
1 parent d9d2356 commit 2c0ef8d
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 2c0ef8d

Please sign in to comment.