generator-pressg

Create sub-scaffolding for angularjs project

Usage no npm install needed!

<script type="module">
  import generatorPressg from 'https://cdn.skypack.dev/generator-pressg';
</script>

README

Yeoman-angular-generator Gitter

Purpose

Quickly set up new component for your project

For consistancy of code style and best practice according to https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md

Installation

Edit index.js file for your project in the directory path if you do not have node.js install yet, follow instruction: https://nodejs.org/en/

If you do not have yeoman install yet run commond:

npm install -g yo

then

npm install generator-pressg --save-dev

Usgae

To Create Controller, Service, Directive, ...(use CamelCase for the component name you want to use, the generator will create dash-directory for you)

Run the commond:

yo pressg <newComponentName>

To Create a child component inside a parent component, Run the commond:

yo pressg <newComponentName> <parentComponentName>

or inside another parent component, Run the commond:

yo pressg <newComponentName> <super-parentComponentName>/<parentComponentName>

Contact

improvement and bug fix peterxie125@gmail.com

License

MIT