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
Ember.Route.reopen({ | |
activate () { | |
var classes = this.genClasses() | |
if (classes !== 'application') { | |
Ember.$('body').addClass(classes) | |
} | |
}, | |
deactivate () { | |
Ember.$('body').removeClass(this.genClasses()) |
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
"scripts": { | |
"install": "npm run build", | |
"start": "parallelshell 'livereload dist' 'nodemon index -w views/ -e hbs,js -i assets/'", | |
"build:js": "rollup assets/js/app.js > dist/app.js", | |
"build:scss": "node-sass assets/scss -o dist --output-style compressed", | |
"build:images": "cp -r assets/images/* dist/images", | |
"prebuild": "rm -rf dist && mkdir dist && mkdir dist/images", | |
"build": "npm run build:js && npm run build:scss && npm run build:images", | |
"watch:js": "watch 'npm run build:js' assets/js", | |
"watch:scss": "watch 'npm run build:scss' assets/scss", |
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> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/> | |
<style> | |
body { | |
margin: 0; | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; | |
cursor: default; |