☯ zen node module scaffolder
News: Now supports mocha, tape or ava as test frameworks to choose from.
npm install --global yo generator-zen
yo zen
I designed zen
to ask only essential questions, so questions about
you and and your preferences are remembered by zen on initial run.
Afterwards zen
asks questions about each module in particular.
Also you can can --skip/-s
all questions or force zen
to ask --all/-a
questions.
Speed up dependencies installing with --perfomant/-p
option, it uses pnpm
, so ensure you have pnpm installed globally ($ npm i -g pnpm
).
$ yo zen -h
Usage:
yo zen [<name>] [options]
Options:
-h, --help # Print the generator's options and usage
--skip-cache # Do not remember prompt answers Default: false
--skip-install # Do not automatically install dependencies Default: false
-a, --all # Ask all questions Default: false
-s, --skip # Ask minimum questions, like `$ npm init --yes/--force` Default: false
-y, --yes # Same as `--skip` Default: false
-f, --force # Same as `--skip` Default: false
-p, --perfomant # Perfomant install, so ensure you have pnpm installed globally (`$ npm i -g pnpm`) Default: false
-d, --debug # Debug mode Default: false
-c, --commit # Commit message
Arguments:
name # Node module’s name: "$ yo zen pify";
node module will be initialized in created folder
and you will be redirected to that folder
Type: String Required: false
- Push it to your github repo
- Enable your project on travis: https://travis-ci.org/profile/
- Enable your project on coveralls: https://coveralls.io/repos/new
- Enable your project on appveyor: https://ci.appveyor.com/projects/new
- Write some tests in tests.js
- Run tdd mode:
npm run tdd
- Write your module to pass the tests
- When all tests are green bump major version and publish it:
npm version major
npm publish
Your package will be tagged, commited, transpiled, published, cleaned up and pushed all the changes to github automagically ✨, take a look at scripts section.
You are awesome! ✨💫
MIT © Vladimir Starkov