Last active
August 29, 2015 14:15
-
-
Save jbrown/4357883ba0d2b1a14ecd to your computer and use it in GitHub Desktop.
New Ember app setup
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
// app/styles/app.scss | |
@import 'bootstrap'; |
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
// tests/blanket-options.js | |
blanket.options({ | |
loaderExclusions: [ | |
'initializers/app-version', | |
'initializers/export-application-global', | |
'config/environment' | |
] | |
}); |
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 Funnel = require('broccoli-funnel'); | |
app.import('bower_components/bootstrap-sass-official/assets/javascripts/bootstrap.js'); | |
var bootstrapAssets = new Funnel('bower_components/bootstrap-sass-official/assets/fonts/bootstrap', { | |
srcDir: '/', | |
files: ['**/*'], | |
destDir: '/fonts/bootstrap' | |
}); | |
module.exports = app.toTree(bootstrapAssets); |
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
// config/environment.js | |
module.exports = function(environment) { | |
var ENV = { | |
sassOptions: { | |
includePaths: [ | |
'bower_components/bootstrap-sass-official/assets/stylesheets' | |
] | |
} | |
} | |
}; |
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
npm cache clear && bower cache clean && rm -rf node_modules bower_components && npm install && bower install | |
ember new my-app | |
npm uninstall ember-cli | |
npm link ember-cli | |
ember install:addon ember-cli-sass | |
mv app/styles/app.css app/styles/app.scss | |
ember install:bower bootstrap-sass-official | |
# Needed to include the Bootstrap files in the build | |
npm install --save-dev broccoli-funnel | |
ember install:addon ember-cli-blanket | |
ember install:addon ember-cli-pretender |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment