generator-angular-cognitive
v1.0.0
Published
Generator for https://github.com/mzahor/angularjs-boilerplate
Downloads
6
Maintainers
Readme
generator-angular-cognitive
Generator for https://github.com/mzahor/angularjs-boilerplate
Installation
First, install Yeoman and generator-angular-cognitive using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-angular-cognitive
Then generate your new project:
yo angular-cognitive
Available generators:
- component (
yo angular-cognitive:component
) - directive (
yo angular-cognitive:directive
) - service (
yo angular-cognitive:service
) - filter (
yo angular-cognitive:filter
) - module (
yo angular-cognitive:module
)
Registration
Components, directives, services and filters will be registered in the application automatically. Module needs manual registration, though. After you've generated a module, edit main.js file:
// add import
import './yourNewModule';
// create and bootstrap application
const requires = [
// ... list of dependencies
// add your new module dependency
'app.yourNewModule',
];
And you're good to go.
Getting To Know Yeoman
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.
License
MIT © Marian Zagoruiko