{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember-rails/issues/416","labels_url":"https://api.github.com/repos/emberjs/ember-rails/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember-rails/issues/416/comments","events_url":"https://api.github.com/repos/emberjs/ember-rails/issues/416/events","html_url":"https://github.com/emberjs/ember-rails/pull/416","id":52571440,"number":416,"title":"Support ES6 syntax","user":{"login":"tricknotes","id":290782,"avatar_url":"https://avatars.githubusercontent.com/u/290782?v=3","gravatar_id":"","url":"https://api.github.com/users/tricknotes","html_url":"https://github.com/tricknotes","followers_url":"https://api.github.com/users/tricknotes/followers","following_url":"https://api.github.com/users/tricknotes/following{/other_user}","gists_url":"https://api.github.com/users/tricknotes/gists{/gist_id}","starred_url":"https://api.github.com/users/tricknotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tricknotes/subscriptions","organizations_url":"https://api.github.com/users/tricknotes/orgs","repos_url":"https://api.github.com/users/tricknotes/repos","events_url":"https://api.github.com/users/tricknotes/events{/privacy}","received_events_url":"https://api.github.com/users/tricknotes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-20T17:57:09Z","updated_at":"2015-08-29T05:50:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/emberjs/ember-rails/pulls/416","html_url":"https://github.com/emberjs/ember-rails/pull/416","diff_url":"https://github.com/emberjs/ember-rails/pull/416.diff","patch_url":"https://github.com/emberjs/ember-rails/pull/416.patch"},"body":"## Abstract\r\n\r\nWe can use es6 syntax on asset pipeline.\r\nThis way is the same as [ember-cli](https://github.com/stefanpenner/ember-cli) .\r\n\r\nThe setting specified ember-rails is the followings:\r\n\r\n* `my-app.js.es6`\r\n  ``` javascript\r\n  //= require ember-rails/application\r\n  //= require_tree\r\n  //= require_self\r\n\r\n  import App from 'ember-rails/application';\r\n\r\n  App.create();\r\n  ```\r\n\r\n* `application.js`\r\n  ``` javascript\r\n  // = require ./my-app\r\n\r\n  require('my-app');\r\n  ```\r\n\r\nI think the following benefits are there for ember-rails users:\r\n* It supports ES6 (current Ember way) in ember-rails.\r\n* It helps migrating from ember-rails ls to Ember CLI\r\n\r\n## TODO\r\n\r\n* [x] Support es6 module syntax\r\n* [x] Support generator option `javascript-engine=es6`\r\n* [x] Add test\r\n* [x] Write how to use es6 module syntax to README\r\n* [x] Write about how to use multiple app\r\n* [x] Change ES6 transpiler\r\n"},"comment":{"url":"https://api.github.com/repos/emberjs/ember-rails/issues/comments/135944314","html_url":"https://github.com/emberjs/ember-rails/pull/416#issuecomment-135944314","issue_url":"https://api.github.com/repos/emberjs/ember-rails/issues/416","id":135944314,"user":{"login":"tricknotes","id":290782,"avatar_url":"https://avatars.githubusercontent.com/u/290782?v=3","gravatar_id":"","url":"https://api.github.com/users/tricknotes","html_url":"https://github.com/tricknotes","followers_url":"https://api.github.com/users/tricknotes/followers","following_url":"https://api.github.com/users/tricknotes/following{/other_user}","gists_url":"https://api.github.com/users/tricknotes/gists{/gist_id}","starred_url":"https://api.github.com/users/tricknotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tricknotes/subscriptions","organizations_url":"https://api.github.com/users/tricknotes/orgs","repos_url":"https://api.github.com/users/tricknotes/repos","events_url":"https://api.github.com/users/tricknotes/events{/privacy}","received_events_url":"https://api.github.com/users/tricknotes/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T05:50:22Z","updated_at":"2015-08-29T05:50:22Z","body":"Updated to add the following to this PR's description:\r\n\r\n> I think the following benefits are there for ember-rails users:\r\n* It supports ES6 (current Ember way) in ember-rails.\r\n* It helps migrating from ember-rails ls to Ember CLI"}}