hn-make-module
v1.3.3
Published
because I dont like yo
Downloads
20
Readme
hn-make-module
a CLI to make angular modules with all the browserify boilerplate baked in.
running makemod --name my_cool_module
will give the following structure in current dir:
└─ my_cool_module/
└─ index.coffee
└─ my_cool_module.module.coffee
└─ my_cool_module.cmp.coffee
└─ my_cool_module.service.coffee
└─ my_cool_module.html
└─ my_cool_module.scss
└─ package.json
with all boilerplate stuff inside.
install
npm install hn-make-module -g
use
─▪ makemod
Usage:makemod [options]
Options:
-d, --dir base dir where you want the component created [default = cwd]
-n, --name name of the module you want to create. ex: NerdToolkit [required]
-t, --type type of module: "cmp" or "page" - pages are used in routes, components are not [default = cmp]
making page components without specifying the -t flag
You can make a page component simply by adding a suffix of _page
to the module name. It will drop the suffix from filenames but create a page component instead of regular component.
remember, a page component is a component that is used within a route
example command
makemod --dir /work/hn-core/app/components --name my_awesome_module
attention pycharm users!!
you can add this as an external tool like this:
then right click on folder and click 'external tools' for awesomeness