Skip to content

Instantly share code, notes, and snippets.

@borismus
Created March 7, 2012 03:35
Show Gist options
  • Save borismus/1990752 to your computer and use it in GitHub Desktop.
Save borismus/1990752 to your computer and use it in GitHub Desktop.
Ember project setup
/static/sass/:
screen.scss: (common stylesheet)
phone.scss, tablet.scss, desktop.scss: (form factor-specific styles)
/static/js/:
libs/: (external libraries - DO NOT MODIFY)
ember-and-friends.js
jquery.js
formfactor.js
views/: (form-factor specific views)
phone/:
resource.js
resource-list.js
tablet/:
resource.js
resource-list.js
models/ (shared models)
resource.js, sharer.js
controllers/ (shared controllers)
resource.js
adapter.js (ember data adapter)
app.js (common code)
fake-data.js (common fake data to populate the models)
/static/templates/: (handlebars templates)
phone/
resource.tmpl
resource-list.tmpl
tablet/
resource.tmpl
resource-list.tmpl
/templates/base.html (base HTML file we serve)
Production version
/prod/:
index.html
index.min.js (shared js and conditional loader)
phone.min.js (phone.js + compiled templates)
phone.css (shared scss + phone scss)
tablet.min.js
tablet.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment