Giter Club home page Giter Club logo

generator-angular-fab's Introduction

generator-angular-fab

What is generator-angular-fab?

This is a basic generator for an angular project. I enjoy using the official generator of the yeoman team, but I feel many unnecessary stuff is installed that a small or medium scale app does not need.

Also, read this, which I recommend for better angular coding: https://github.com/johnpapa/angular-styleguide

This generator uses the angular-material project for the layout, ui components, animations, etc: https://material.angularjs.org/latest/

This generator ditches the directory structure of scripts and views:

app/
|-- scripts/
|		|-controller files
|		|-factory files
|		|-service files
|
|-- views/
|		|-html view files
|

For a state structure that contains every file for each ui-state:

app/
|-- states/
|		|-- stateName/
|				|-stateNameController.js
|				|-stateNameModel.js
|				|-stateNameView.html
|
|-- js_components/
|		|-factories/
|		|-services/
|		|-directives/
|

Install Yeoman

npm install -g yo

Install Generator

To install generator-angular-fab from npm, run:

npm install -g generator-angular-fab

Finally, initiate the generator:

yo angular-fab

GruntFile Tasks

grunt build

Creates a dist folder and compiles the necesarry files for a distribution package of the site or app.

grunt verify-js

Runs jshint to "compile" the controllers, models, factories, services, directives and the config files.

grunt copy-states

Copies the html files for each state that function as a view and pastes them inside the dist folder to properly update html /view modifications only.

Comments?

Feel free to comment for any improvement, error, or just to say hi!

License

MIT

generator-angular-fab's People

Contributors

fabvillegas avatar

Stargazers

Jeffrey Loiola avatar Hans-Petter Eitvet avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.