Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(new command): override ember-cli's new command with better defaults
Closes #3
- Loading branch information
1 parent
e94e681
commit c0801d5
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use strict'; | ||
|
||
var NewCommand = require('ember-cli/lib/commands/new'); | ||
|
||
module.exports = NewCommand.extend({ | ||
availableOptions: [ | ||
{ name: 'dry-run', type: Boolean, default: false, aliases: ['d'] }, | ||
{ name: 'verbose', type: Boolean, default: false, aliases: ['v'] }, | ||
{ name: 'blueprint', type: String, default: 'ng2', aliases: ['b'] }, | ||
{ name: 'skip-npm', type: Boolean, default: false, aliases: ['sn'] }, | ||
{ name: 'skip-bower', type: Boolean, default: true, aliases: ['sb'] }, | ||
{ name: 'skip-git', type: Boolean, default: false, aliases: ['sg'] }, | ||
{ name: 'directory', type: String , aliases: ['dir'] } | ||
] | ||
}); | ||
|
||
module.exports.overrideCore = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters