Skip to content

mzahor/generator-angular-cognitive

Repository files navigation

generator-angular-cognitive

NPM version Build Status Dependency Status Coverage percentage

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