From 89acc1905330f9d991ed4ecd3f7fbfca2c010921 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Sat, 9 Apr 2016 14:22:49 +0200 Subject: [PATCH] Fixed scripts (closes #99) --- CHANGELOG.MD | 2 ++ app/templates/projectTemplates/package.json | 6 +++--- package.json | 10 +++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index e014a0a..95ddfed 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,3 +1,5 @@ +* 0.5.5 + * fixed an issue with the build script (closes #114) * 0.5.4 * now supports Angular 2 beta 13 * fixed an issue with a dependency of babel (#97) diff --git a/app/templates/projectTemplates/package.json b/app/templates/projectTemplates/package.json index eca8f2d..bcea796 100644 --- a/app/templates/projectTemplates/package.json +++ b/app/templates/projectTemplates/package.json @@ -56,9 +56,9 @@ "tsc": "tsc", "typings": "typings", "clean": "gulp clean", - "compile": "gulp", - "build": "npm run compile && npm run test", - "test": "gulp prepare-test-unit && gulp test-unit", + "build": "gulp", + "pretest": "gulp prepare-test-unit", + "test": "gulp test-unit", "start": "npm run serve", "serve": "nodemon --watch gulpfile.js --watch gulpfile.babel.js --watch package.json --watch .jshintrc --watch .jscsrc --watch tsconfig.json --watch tslint.json --watch jspm.conf.js --exec gulp serve", "serve-dist": "nodemon --watch gulpfile.js --watch gulpfile.babel.js --watch package.json --watch .jshintrc --watch .jscsrc --watch tsconfig.json --watch tslint.json --watch jspm.conf.js --exec gulp serve-dist", diff --git a/package.json b/package.json index bebb3b2..27a210d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generator-modern-web-dev", - "version": "0.5.4", + "version": "0.5.5", "description": "Modern Web Development Yeoman Generator: Gulp, ES2015, TypeScript, Angular 2, SASS, Minification, Bundling, Sourcemaps, ...", "author": { "name": "Sebastien Dubois", @@ -85,13 +85,13 @@ }, "scripts": { "clean": "gulp clean", - "compile": "gulp", - "build": "npm run compile && npm run test", + "build": "gulp", + "pretest": "npm run build", "test": "mocha", - "update": "npm install", + "update": "npm install --no-optional", "outdated": "npm outdated", "help": "gulp help", "setup": "npm install --no-optional", - "prepublish": "npm run build" + "prepublish": "npm test && npm run build" } }