Skip to content

Yeoman generator for AngularJS using a modular approach to filestructure and naming. Opinionated around the front-end workflow at Nodes.

License

Notifications You must be signed in to change notification settings

dennishn/generator-nodes-angular

Repository files navigation

Nodes Angular.js Generator


Yeoman generator for AngularJS using a modular approach to filestructure and naming. Opinionated about the front-end workflow at Nodes.


Whats included:

  1. Gulp
  2. Browser-sync
  3. JSHint
  4. Wiredep (Include bower based dependencies easily)
  5. Protractor (E2E tests)
  6. Sass (Modular approach based on Atomic Design principles)
  7. AngularJS (Modular approach based on best practices and recommendations for non-monolithic apps)
  8. Inlcude Bootstrap or Foundation (both optional)
  9. Include jQuery, and Modernizr (both optional)

Usage

Install generator-nodes-angular:

npm install -g git https://github.com/dennishn/generator-nodes-angular.git

Make a new directory, and cd into it:

mkdir my-new-project && cd $_

Run yo nodes-angular, optionally passing an app name:

yo nodes-angular [app-name]

Run gulp for building and gulp serve for preview


App Structure

 - src/
    |- app/
        |- [module]/
            |- [module.js]
            |- [module.tpl.html]
    |- common/
        |- directives/
        |- factories/
        |- filters/
        |- services/
        |- providers/
    |- scss/
        |- elements/
        |- modules/
        |- components/
        |- ui-blocks/
        |- layouts/
        |- pages/
        |- plugins/
        |- main.scss
        |- fonts.scss
        |- _variabels.scss
        |- _functions.scss
        |- _mixins.scss
        |- _normalize.scss
    |- fonts/
    |- img/
    |- js/
    |- index.html

Generators

Available sub-generators:

Non-angular:

Angular:


License

The MIT License

About

Yeoman generator for AngularJS using a modular approach to filestructure and naming. Opinionated around the front-end workflow at Nodes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published