Skip to content

Instantly share code, notes, and snippets.

@ttdonovan
Created September 11, 2014 16:53
Show Gist options
  • Save ttdonovan/f8683dd4d147c4c5cc66 to your computer and use it in GitHub Desktop.
Save ttdonovan/f8683dd4d147c4c5cc66 to your computer and use it in GitHub Desktop.
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp();
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
app.import('bower_components/bootstrap/dist/css/bootstrap.css');
app.import('bower_components/faker/dist/faker.js');
module.exports = app.toTree();
import DS from 'ember-data';
// from where do i import faker.js?
// import { faker } from ?;
var attr = DS.attr;
var Post = DS.Model.extend({
title: attr('string'),
image: attr('string'),
body: attr('string')
});
Post.reopenClass({
FIXTURES: [
/** generate fixtures **/
// { id: 1, title: faker.Lorem.words(), body: faker.Lorem.paragraph() }
]
});
export default Post;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment