Skip to content

Instantly share code, notes, and snippets.

@jschilli
Created March 6, 2015 13:49
Show Gist options
  • Save jschilli/a1f1e588eeae598487d8 to your computer and use it in GitHub Desktop.
Save jschilli/a1f1e588eeae598487d8 to your computer and use it in GitHub Desktop.
add to the app tree
/* jshint node: true */
'use strict';
var path = require('path');
var pickFiles = require('broccoli-static-compiler');
module.exports = {
name: 'lang-concat',
treeFor: function(type) {
if (type === 'app') {
// Deferred aka Wrapped vendor files
// We wrap these such that the app can 'require' them as needed
// Theme Files
var vendorJS = path.join(process.cwd(), 'vendor');
var wrappedJS = pickFiles(vendorJS, {
srcDir: 'wrapped',
files: ['**/*.js'],
destDir: '/vendor'
});
return wrappedJS;
}
return false;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment