From efb98bc45b371d263bd3dc9cbc3018d6fe57d7d6 Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Mon, 16 May 2016 10:23:58 -0400 Subject: [PATCH] only install production deps for new templates --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 808557f..532c016 100644 --- a/lib/index.js +++ b/lib/index.js @@ -118,7 +118,7 @@ class Spike extends EventEmitter { promise .tap(() => { emit('info', 'initializing template') }) .then(sprout.init.bind(sprout, opts.template, opts.root, sproutOptions)) - .tap(() => { emit('info', 'installing dependencies') }) + .tap(() => { emit('info', 'installing production dependencies') }) .then(npmInstall.bind(null, opts)) .then(() => { return new Spike({ root: opts.root }) }) .done( @@ -142,7 +142,7 @@ class Spike extends EventEmitter { * @return {Promise.} promise for the command output */ function npmInstall (opts) { - return node.call(exec, 'npm install', { cwd: opts.root }) + return node.call(exec, 'npm install --production', { cwd: opts.root }) } /**