Generator for https://github.com/mzahor/angularjs-boilerplate
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
- 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
)
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.
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.
MIT © Marian Zagoruiko