0.3.0 • Published 9 years ago

generator-horse-power v0.3.0

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

Angular HorsePower

Made to coincide with the more mature horse_power gem for Rails. Run the base generator after scaffolding out your angular project. Be sure to edit the config files with your own data.

-A work in progress

horse-power

Creates the file structure for the application. Be sure to copy the script tags from app/scripts/modules to your index.html It also copies over common libraries that the rest of the app uses and creates a simple user class that copies over the controller and views for both normal login and facebook login. appName is the name of your angular.js app.

yo horse-power [appName]
bower install --save restangular angular-ui-router
grunt build:js

horse-power:model

Creates a model that has the crud routes already created. Call the generator like so

yo horse-power:model note message:string from:integer to:integer date:timestamp 

horse-power:controller

Creates a standard controller NameCtrl'

yo horse-power:controller appName Main

horse-power:service

Creates a standard service NameService'

yo horse-power:service appName Main

options

In case you are working with ionic etc and didnt use the yeoman angular generator. There is an option to only copy over the libraries. --onlyLibraries You have to create the views yourself.

notes

grunt build is acting up. Use grunt build:js instead

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.0

9 years ago