0.6.0 • Published 11 years ago

generator-ember-laravel v0.6.0

Weekly downloads
4
License
-
Repository
github
Last release
11 years ago

Ember/Laravel Generator

A Yeoman generator for building Ember web apps with a Laravel Backend

Installation

Once this generator is finished you should be able to run yo install -g generator-ember-larave. For now, clone this repository and then run 'npm link'.

Important: when you clone the repository, clone it into a folder named "generator-ember-laravel". If you do not, the symlink will not work.

Commands

App

yo ember-laravel

scaffolds ember app inside main directory like so:

  • ember/
  • ember/model/
  • ember/views/
  • ember/templates/
  • ember/controllers/
  • ember/routes/
  • app.js
  • routes.js

Model

yo ember-laravel:model

Controller

yo ember-laravel:controller

View

yo ember-laravel:view

Templates

yo ember-laravel:templates templateName

creates

{{!-- file located at ember/templates/templateName.hbs --}}
<h1> templateName Template </h1> 

Protip: The command supports subdirectories. So if you type something like yo ember-laravel:template customers/index, it would create a template located in ember/templates/customers/index.hbs

Routes

yo ember-laravel:route routeName

generates a route file ember/routes/routeName.js that follows this code structure:

App.RouteNameRoute = Ember.Route.extend({

  model: function(params) {
      return this.store.find('routeName',params.routeName_id); 
  }
  
});
0.6.0

11 years ago

0.5.1

11 years ago

0.5.0

11 years ago

0.0.95

11 years ago

0.0.9

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago