Skip to content

Instantly share code, notes, and snippets.

@jbrown
Last active August 29, 2015 14:15
Show Gist options
  • Save jbrown/4357883ba0d2b1a14ecd to your computer and use it in GitHub Desktop.
Save jbrown/4357883ba0d2b1a14ecd to your computer and use it in GitHub Desktop.
New Ember app setup
// app/styles/app.scss
@import 'bootstrap';
// tests/blanket-options.js
blanket.options({
loaderExclusions: [
'initializers/app-version',
'initializers/export-application-global',
'config/environment'
]
});
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);
// config/environment.js
module.exports = function(environment) {
var ENV = {
sassOptions: {
includePaths: [
'bower_components/bootstrap-sass-official/assets/stylesheets'
]
}
}
};
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