diff --git a/README.md b/README.md index 85aaab4..89492b3 100644 --- a/README.md +++ b/README.md @@ -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/). diff --git a/generators/app/templates/template/package.json b/generators/app/templates/template/package.json index 125302d..23f5cac 100644 --- a/generators/app/templates/template/package.json +++ b/generators/app/templates/template/package.json @@ -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" },