-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from carrot/upgrade
Upgrade to latest sprout version, swap out bluebird
- Loading branch information
Showing
9 changed files
with
49 additions
and
62 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
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
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 |
---|---|---|
|
@@ -9,17 +9,18 @@ | |
"bugs": "https://github.com/carrot/sprout-cli/issues", | ||
"contributors": [ | ||
"Noah Portes Chaikin <[email protected]>", | ||
"Kyle MacDonald <[email protected]>" | ||
"Kyle MacDonald <[email protected]>", | ||
"Jeff Escalante <[email protected]" | ||
], | ||
"dependencies": { | ||
"argparse": "^1.0.2", | ||
"bluebird": "^3.3.4", | ||
"chalk": "^1.0.0", | ||
"inquirer": "^0.12.0", | ||
"lodash": "^4.6.1", | ||
"mkdirp": "^0.5.0", | ||
"osenv": "^0.1.0", | ||
"sprout": "^0.4.1" | ||
"sprout": "^1.0.0", | ||
"when": "^3.7.7" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ var fs = require('fs') | |
var path = require('path') | ||
var rimraf = require('rimraf') | ||
var exec = require('child_process').exec | ||
var Promise = require('bluebird') | ||
var node = require('when/node') | ||
|
||
chai.should() | ||
|
||
|
@@ -286,7 +286,7 @@ describe('commands', | |
} | ||
).then( | ||
function () { | ||
return InitCommand(cli, {name: 'commands.init.config', target: target, config: path.join(fixture, 'config.json')}) | ||
return InitCommand(cli, {name: 'commands.init.config', target: target, configPath: path.join(fixture, 'config.json')}) | ||
} | ||
).then( | ||
function () { | ||
|
@@ -434,18 +434,18 @@ describe('commands', | |
|
||
describe('helpers', | ||
function () { | ||
describe('isGitURL', | ||
describe('isGitUrl', | ||
function () { | ||
it('should determine is git url', | ||
function (done) { | ||
helpers.isGitURL('[email protected]:foo/bar').should.be.true | ||
helpers.isGitUrl('[email protected]:foo/bar').should.be.true | ||
done() | ||
} | ||
) | ||
|
||
it('should determine is not git url', | ||
function (done) { | ||
helpers.isGitURL('asdfadsfasdf').should.be.false | ||
helpers.isGitUrl('asdfadsfasdf').should.be.false | ||
done() | ||
} | ||
) | ||
|
@@ -508,5 +508,5 @@ describe('helpers', | |
*/ | ||
|
||
var gitInit = function (dir) { | ||
return Promise.promisify(exec)('git init .', { cwd: dir }) | ||
return node.call(exec, 'git init .', { cwd: dir }) | ||
} |