From 2c0ef8da9141091a860092d07a02cdb79f5a66c2 Mon Sep 17 00:00:00 2001 From: Homa Wong Date: Sat, 26 Mar 2016 20:10:02 -0700 Subject: [PATCH] update script Echo out so user knows which task is executing. Separate test and source-test as it wasn't run correctly together. --- README.md | 1 + generators/app/templates/template/package.json | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) 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" },