1.3.3 • Published 10 years ago

hn-make-module v1.3.3

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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:

external tool

then right click on folder and click 'external tools' for awesomeness

1.3.3

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago