This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"bower": "*", | |
"grunt": "*", | |
"grunt-cli": "*", | |
"grunt-contrib-concat": "*", | |
"grunt-es6-module-transpiler": "*", | |
"grunt-ember-template-compiler": "1.5.0" | |
}, | |
"scripts": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
concat: { | |
dist: { | |
src: [ | |
'js/vendor/jquery/jquery.min.js', | |
'js/vendor/handlebars/handlebars.js', | |
'js/vendor/ember/ember.min.js', | |
'js/lib/loader.js', | |
'js/lib/ember-resolver.js', | |
'js/dist/transpiled/app/**/*.js', | |
'js/dist/tmpl.min.js'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Router = Ember.Router.extend(); | |
Router.map(function() { | |
this.resource("people", { path: "/" }); | |
}); | |
export default Router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Person = Ember.Object.extend(); | |
Person.reopenClass({ | |
people: [], | |
find: function() { | |
var first = Person.create({name: 'toran'}); | |
var last = Person.create({name: 'matt'}); | |
this.people.pushObject(first); | |
this.people.pushObject(last); | |
return this.people; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Person from 'example/models/person'; | |
var PeopleRoute = Ember.Route.extend({ | |
model: function() { | |
return Person.find(); | |
} | |
}); | |
export default PeopleRoute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Resolver from 'ember/resolver'; | |
var App = Ember.Application.extend({ | |
modulePrefix: 'example', | |
Resolver: Resolver['default'] | |
}); | |
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head><title>example app</title></head> | |
<body> | |
<script src='js/dist/deps.min.js'></script> | |
<script> | |
window.App = require('example/app')["default"].create(); | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"bower": "*", | |
"grunt": "*", | |
"grunt-cli": "*", | |
"grunt-contrib-jshint": "*", | |
"grunt-contrib-concat": "*", | |
"grunt-es6-module-transpiler": "*", | |
"grunt-ember-template-compiler": "1.5.0" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.initConfig({ | |
jshint: { | |
all: ['js/app/**/*.js'], | |
options : { | |
esnext : true | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"bower": "*", | |
"grunt": "*", | |
"grunt-cli": "*", | |
"grunt-contrib-watch": "*", | |
"grunt-contrib-jshint": "*", | |
"grunt-contrib-concat": "*", | |
"grunt-es6-module-transpiler": "*", | |
"grunt-ember-template-compiler": "1.5.0" |