generator-angular1-boilerplate
v1.4.4
Published
Generator for https://github.com/Cogniance/angular1-boilerplate
Downloads
4
Maintainers
Readme
generator-angular1-boilerplate
Generator for https://github.com/Cogniance/angular1-boilerplate
Installation
First, install Yeoman and generator-angular1-boilerplate using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-angular1-boilerplate
Then generate your new project:
yo angular1-boilerplate
Available generators:
- component (
yo angular1-boilerplate:component
) - directive (
yo angular1-boilerplate:directive
) - service (
yo angular1-boilerplate:service
) - filter (
yo angular1-boilerplate:filter
) - module (
yo angular1-boilerplate: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.
Contributing
Application Generator template
The application generator template is a submodule from this repository - https://github.com/Cogniance/angular1-boilerplate.
Please update it every time the code in https://github.com/Cogniance/angular1-boilerplate is changed.
Run:
git submodule update --remote
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