@hackoregon/jinn
v0.2.4
Published
Deals with boilerplate for react redux projects
Downloads
3
Keywords
Readme
Jinn
v 0.2.4
Jinn is a command line tool to generate react & redux boilerplate. Thanks to node-plop & plop, this cli boilerplate generator also has prompts via inquirer.
Install
# install globally
$ npm install @hackoregon/jinn -g
# or as a dependency for use with npm scripts
$ npm install @hackoregon/jinn --save-dev
Docs
Usage
$ jinn <cmd> <options>
$ npm run jinn -- <cmd> <options>
Commands
-j generate .jinnrc file with view and state paths
-h, --help show help menu
-v, --view <name> <type> generate <type>[func, class, pure] view template with specified <name>
-d, --duck <options> generate duck template with <options>
--prompt generate with prompts
-version get jinn package version
Options
-p, --package option to generate view as it's own package
--desc add description to package via command line
-a, --all option to generate with story, css and connected version
-r, --reselect option to generate duck template with reselect
-s, --story option to add story file to view template
-c, --css option to add css modules file to view template
-x option to add connected version of component to view template
Examples
jinn -v Map -p -s generate boilerplate for a Map component as a package with storybook file included
jinn -v Button func -a generate boilerplate for a Button functional component with all options
jinn -v Cart class -c generate boilerplate Cart class component with css modules
jinn -d App generate boilerplate for App duck