Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ module.exports = class CLI extends EventEmitter {
help: 'Where to create your project'
})

s.addArgument(['--yarn', '-y'], {
help: 'Use yarn rather than npm to install dependencies',
nargs: 0
})

s.addArgument(['--template', '--tpl', '-t'], {
help: 'The template to use for your project. See "spike tpl" for more.'
})
Expand Down
3 changes: 2 additions & 1 deletion lib/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ module.exports = function (Spike, args) {
emitter: emitter,
locals: args.overrides,
template: args.template,
inquirer: inquirer.prompt.bind(inquirer)
inquirer: inquirer.prompt.bind(inquirer),
tool: args.yarn ? 'yarn' : undefined
}))

return emitter
Expand Down