-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes 31, adding npm install postinstall
- Loading branch information
Showing
6 changed files
with
113 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
module.exports = function(program, _logger) { | ||
var logger, | ||
_this = this; | ||
var logger; | ||
logger = _logger; | ||
return program.command('skel:new <skeletonName> [directory]').description("Create a Mimosa project using a skeleton").option("-D, --mdebug", "run in debug mode").action(function(skeletonName, directory, opts) { | ||
return program.command('skel:new <skeletonName> <directory>').description("Create a Mimosa project using a skeleton").option("-D, --mdebug", "run in debug mode").action(function(skeletonName, directory, opts) { | ||
var newSkel; | ||
newSkel = require("./impl/new"); | ||
return newSkel(skeletonName, directory, opts, logger); | ||
}).on('--help', function() { | ||
logger.green(' The skel:new command will create a new project using a Mimosa skeleton of your choice.'); | ||
logger.green(' The first argument passed to skel:new is the name of the skeleton to use. The name can'); | ||
logger.green(' take several forms. It can be either the 1) name of the skeleton from the skeleton'); | ||
logger.green(' registry, 2) the github URL of the skeleton or 3) the path to the skeleton if the'); | ||
logger.green(' skeleton is on the file system for when skeleton development is taking place. The second'); | ||
logger.green(' argument is the name of the directory to place the skeleton in. If the directory does'); | ||
logger.green(' not exist, Mimosa will create it. If the directory is not provided, the skeleton will be'); | ||
logger.green(' placed in the current directory.'); | ||
return logger.blue('\n $ mimosa skel:new <skeletonName> <directory>\n'); | ||
}); | ||
}).on('--help', (function(_this) { | ||
return function() { | ||
logger.green(' The skel:new command will create a new project using a Mimosa skeleton of your choice.'); | ||
logger.green(' The first argument passed to skel:new is the name of the skeleton to use. The name can'); | ||
logger.green(' take several forms. It can be either the 1) name of the skeleton from the skeleton'); | ||
logger.green(' registry, 2) the github URL of the skeleton or 3) the path to the skeleton if the'); | ||
logger.green(' skeleton is on the file system for when skeleton development is taking place. The second'); | ||
logger.green(' argument is the name of the directory to place the skeleton in. If the directory does'); | ||
logger.green(' not exist, Mimosa will create it. If the directory is not provided, the skeleton will be'); | ||
logger.green(' placed in the current directory.'); | ||
return logger.blue('\n $ mimosa skel:new <skeletonName> <directory>\n'); | ||
}; | ||
})(this)); | ||
}; |
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
@dbashford "A known Windows/Mimosa bug ..." 👍