Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -142,7 +142,7 @@ class Spike extends EventEmitter {
* @return {Promise.<String>} 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 })
}

/**
Expand Down