Skip to content

Tolia/rails_angular_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# rails_angular_creator

generate a angular distribution for your rails app

## Installation

First start by adding this gem to your Gemfile:
```
gem "rails_angular_creator", git: 'Tolia/rails_angular_creator'

```
And then execute
```
$ bundle
```


## Usage

AngularCreator generator:
-  angular_creator:assets
-  angular_creator:controller
-  angular_creator:directive
-  angular_creator:factory
-  angular_creator:filter
-  angular_creator:service‎

### init angular assets
```
> rails g angular_creator:assets
   identical  app/assets/javascripts/ng_manifest.js
   identical  app/assets/javascripts/ng/init.coffee
   identical  app/assets/javascripts/ng/settings.coffee
   identical  app/assets/javascripts/ng/controllers/.keep
   identical  app/assets/javascripts/ng/directives/.keep
   identical  app/assets/javascripts/ng/factories/.keep
   identical  app/assets/javascripts/ng/filters/.keep
   identical  app/assets/javascripts/ng/services‎/.keep
   identical  app/assets/html/.keep
      create  config/initializers/slim_assets.rb
```

### generator angular controller
```
> rails g angular_creator:controller controller_name
   create  app/assets/javascripts/ng/controllers/controller_name.coffee
```

### generator angular directive
```
> rails g angular_creator:directive directive_name
   create  app/assets/javascripts/ng/directives/directive_name.coffee
   create  app/assets/html/directive_name.html.slim
```

### generator angular factory
```
> rails g angular_creator:factory factory_name  
   create  app/assets/javascripts/ng/factories/factory_name.coffee
```

### generator angular filter
```
> rails g angular_creator:filter filter_name
   create  app/assets/javascripts/ng/filters/filter_name.coffee
```

### generator angular service‎
```
> rails g angular_creator:service‎ fservice‎_name
   create  app/assets/javascripts/ng/services‎/service_name.coffe
```

About

generator angular distribution for your rails app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published