Created
March 6, 2015 13:49
-
-
Save jschilli/a1f1e588eeae598487d8 to your computer and use it in GitHub Desktop.
add to the app tree
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
/* 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