generator-nome
v1.0.1
Published
Scaffold out a node module with xo JS style linter, Flow type checking and Jest for testing.
Downloads
3
Maintainers
Readme
generator-nome
Scaffold out a node module with xo JS style linter, Flow type checking and Jest for testing
Personal generator for scaffolding npm modules. I use xo for linting JavaScript, Flow for type checking and Jest for testing.
Installation
First, install Yeoman and generator-nome using yarn (we assume you have pre-installed node.js).
yarn global add yo
yarn global add generator-nome
Then generate your new project:
yo nome
There are multiple command-line options available:
Usage:
yarn test # It will run xo, flow and jest to test your code
yarn prepublish # Compile code with babel from src/ to lib/ and copy type definitions from .js and create file with .flow suffix
Inspired by generator-nm.
License
MIT © Vedran Blazenka