Created
September 15, 2014 07:32
-
-
Save joachimhs/1ccfd6fe6f2a273ed2e5 to your computer and use it in GitHub Desktop.
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 */ | |
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
var app = new EmberApp(); | |
// Use `app.import` to add additional libraries to the generated | |
// output files. | |
// | |
// If you need to use different assets in different | |
// environments, specify an object as the first parameter. That | |
// object's keys should be the environment name and the values | |
// should be the asset to use in that environment. | |
// | |
// 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. | |
var pickFiles = require('broccoli-static-compiler'); | |
var mergeTrees = require('broccoli-merge-trees'); | |
var select2JS = pickFiles('bower_components/select2', { | |
srcDir: '/', | |
files: ['select2.js'], | |
destDir: '/assets/select2' | |
}); | |
var select2Css = pickFiles('bower_components/select2', { | |
srcDir: '/', | |
files: ['select2.css', 'select2.png', 'select2x2.png', 'select2-spinner.gif'], | |
destDir: '/assets/select2' | |
}); | |
var bootstrapCss = pickFiles('bower_components/bootstrap/dist/css', { | |
srcDir: '/', | |
files: ['bootstrap.min.css'], | |
destDir: '/assets/bootstrap' | |
}); | |
var selectBootstrap = pickFiles('bower_components/select2-bootstrap', { | |
srcDir: '/', | |
files: ['select2-bootstrap.css'], | |
destDir: '/assets/select2-bootstrap' | |
}); | |
module.exports = mergeTrees([app.toTree(), select2JS, select2Css, bootstrapCss, selectBootstrap]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment