-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(refactor-cli-issues): Fix issues remaining after refactor
- Loading branch information
1 parent
ba8ec8c
commit 86c717b
Showing
16 changed files
with
413 additions
and
238 deletions.
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ bower_components | |
.idea | ||
.DS_STORE | ||
*.swp | ||
.blog |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
jspm_packages | ||
bower_components | ||
.idea | ||
.idea | ||
.blog |
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 |
---|---|---|
|
@@ -45,6 +45,8 @@ CLI.create(argv, | |
.then(aurelia.start) | ||
|
||
.then(aurelia.stop); | ||
|
||
// .catch(aurelia.abort); | ||
} | ||
); | ||
|
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
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
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
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
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,36 @@ | ||
'use strict'; | ||
|
||
var _ask = require('./ask'); | ||
|
||
var program = require('commander'); | ||
var Promise = require('bluebird'); | ||
|
||
program.Command.prototype.ask = _ask.ask; | ||
program.Command.prototype.loadPrompts = []; | ||
program.Command.prototype._prompts = []; | ||
|
||
program.Command.prototype.onHelp = function (cb) { | ||
var self = this; | ||
this.on('--help', function () { | ||
cb.call(self); | ||
}); | ||
return this; | ||
}; | ||
|
||
program.Command.prototype.isCmd = function (name) { | ||
var result = false; | ||
this._cmds = this._cmds || {}; | ||
|
||
if (this._cmds[name]) return true; | ||
|
||
this.commands.forEach((function (cmd) { | ||
this._cmds = cmd; | ||
if (cmd._name === name) { | ||
result = true; | ||
return; | ||
} | ||
}).bind(this)); | ||
return result; | ||
}; | ||
|
||
module.exports = program; |
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
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
// all gulp tasks are located in the ./build/tasks directory | ||
// gulp configuration is in files in ./build directory | ||
require('require-dir')('build/tasks'); |
Oops, something went wrong.