Created
May 27, 2014 15:08
-
-
Save jgwhite/77743e247a3c1ed60fc8 to your computer and use it in GitHub Desktop.
Example brocfile
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
/* global require, module */ | |
// NOTE: npm install broccoli-static-compiler broccoli-merge-trees --save-dev | |
var pickFiles = require('broccoli-static-compiler'); | |
var mergeTrees = require('broccoli-merge-trees'); | |
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
var app = new EmberApp({ | |
name: require('./package.json').name, | |
minifyCSS: { | |
enabled: true, | |
options: {} | |
}, | |
getEnvJSON: require('./config/environment') | |
}); | |
// Use this to add additional libraries to the generated output files. | |
app.import('vendor/ember-data/ember-data.js'); | |
// 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('vendor/ic-ajax/dist/named-amd/main.js', { | |
'ic-ajax': [ | |
'default', | |
'defineFixture', | |
'lookupFixture', | |
'raw', | |
'request', | |
] | |
}); | |
var bootstrapTree = pickFiles('vendor/bootstrap/dist/css', { | |
srcDir: '/', | |
files: ['bootstrap.min.css'], | |
destDir: '/assets' | |
}); | |
module.exports = mergeTrees([app.toTree(), bootstrapTree]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment