From 3bd556dddae3138f2124eaf3b80fbb9b287bcadd Mon Sep 17 00:00:00 2001 From: liabru Date: Sun, 29 Nov 2015 14:49:34 +0000 Subject: [PATCH] fix gulp issues --- Gulpfile.js | 7 +++++-- package.json | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index fb0d440..8ced66d 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -192,8 +192,11 @@ var build = function(options) { file.contents = res; next(null, file); }); - })) - .pipe(preprocess({ context: { DEBUG: false } })); + })); + + if (options.version !== 'dev') { + compiled.pipe(preprocess({ context: { DEBUG: false } })); + } var build = compiled.pipe(clone()) .pipe(header(banner + '\n' + license + '\n\n', { context: options })) diff --git a/package.json b/package.json index af441bb..ea181e0 100644 --- a/package.json +++ b/package.json @@ -49,8 +49,7 @@ "yuidocjs": "^0.9.0" }, "scripts": { - "dev": "npm install && gulp", - "test": "gulp test" + "test": "gulp && gulp test" }, "dependencies": {} }