sprout-commonjs-lib
v0.11.1
Published
Sprout based Node/CommonJS package generator.
Downloads
45
Maintainers
Readme
sprout-commonjs-lib
Sprout based Node/CommonJS package generator.
Installation / Usage
npm install -g sprout
sprout add commonjs-lib https://github.com/wilmoore/sprout-commonjs-lib
sprout init commonjs-lib my-new-lib
NOTE: You may pass a relative path (as depicted above) or a full path as the last parameter to
sprout init
.
npm stats
Demo Video
Features
- Lint & style checking via JavaScript Standard Style.
- Green test suite via tape & npm test.
- Run tests automatically on file change via nodemon.
- CI via Travis CI w/ docker support enabled & node_modules cached.
- Dependency checking via dependency-check.
- Support for npm scoped packages.
- Markdown-based README with awesome repo badges via Shields.IO.
- Changelog per Keep a CHANGELOG.
- Contributer Guidelines.
- EditorConfig support.
- MIT license.
Why use this generator over the others?
How one builds Node modules is a fairly personal and evolving process. It should also be as painless as possible. I personally prefer to use a generator that streamlines the way I build modules/packages over generators that provide a ton of options. If I find that I need those options, I'll bake them into the process.
If your module/package building process is similar to mine, then this is the right generator for you. If it is close but you feel like my process is missing something, check out the contributing doc and send over a PR.
Input-based template variables
github_user_name
GitHub user name.github_user_email
GitHub user email.package_name
Name of the project.repo_name
GitHub repository name (without username).package_description
Package description.travis
Whether to use Travis CI.
Derived template variables
author_full_name
Package author's full name.date
Current date.export_name
Default module export name (camelCased package name).github_clone_url
GitHub clone URL.simple_name
package name with file extension removed.
Alternatives
- generator-nm (Yeoman)
- sprout-node (Sprout)
- module-init (Just Node)