generator-nody
v0.3.0
Published
A node generator for Yeoman, with mocha, gulp, istanbul, jshint and jasmine supported
Downloads
2
Maintainers
Readme
nody
Based on generator-node-gulp
This generator creates a new Node.js module, generating all the boilerplate you need to get started with best-of-breed from the gulp ecosystem. The generator also optionally installs additional gulp plugins, see the list below.
Installation
Install the generator by running: npm install -g generator-nody
.
Usage
At the command-line, cd into an empty directory, run this command and follow the prompts.
yo nody [options]
Note that this template will generate files in the current directory, so be sure to change to a new directory first if you don't want to overwrite existing files.
Options
--test-framework=[framework]
Defaults to
mocha
. Can be switched tojasmine
.--name-case
Set name style. Defaults to
kebab
, Can be switched tocamel
,snake
--skip-install
Skips the automatic execution of
bower
andnpm
after scaffolding has finished.--skip-cache
Do not remember prompt answers. Default
false
.--force
Force overwrite file
--help
Show help
devDependencies
- Mocha Unit Testing with gulp-mocha
- Automagically lint your code with gulp-jshint
- Optional – Check JavaScript code style with gulp-jscs
- Optional – Measuring code coverage with gulp-istanbul
- Optional – Upload LCOV data to coveralls.io with coveralls
- Optional – Bump npm versions with gulp-bump
- Optional - Jasmine Unit Testing with gulp-jasmine
dependencies
Support
Should you have any problems or wishes for improvements, feel free to open an issue.
Articles
Some recommended articles to get you started with node.
Knowledges
- Yeoman support template file name
- If your template file need use
<%
keyword, you can use<%%
for saving it - Yeoman generator has
directory
function to copy recursively the files from source directory to root directory, make sure the destination dirs exists, and note that the function useingcopy
, nottemplate
- Yeoman support sync get git email
this.git.email()
and namethis.git.name()
and async get git login namethis.github.username(cb)