Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add globals to build output

  • Loading branch information...
commit f56b39607a96ad1785ee7a5a8d0e4d947780abfc 1 parent 5def858
@joefiorini joefiorini authored
Showing with 16 additions and 2 deletions.
  1. +16 −2 Brocfile.js
View
18 Brocfile.js
@@ -25,8 +25,22 @@ module.exports = function(broccoli) {
anonymous: false
});
- return concat(new broccoli.MergedTree([amdTree, pluginTree]), {
+ var globalTree = filterES6Modules(new broccoli.MergedTree([appTree, configTree]), {
+ moduleType: 'globals',
+ global: global,
+ namespace: namespace,
+ anonymous: false
+ });
+
+ globalTree = concat(globalTree, {
inputFiles: ['**/*.js'],
- outputFile: '/index.js'
+ outputFile: '/globals/index.js'
});
+
+ amdTree = concat(new broccoli.MergedTree([amdTree, pluginTree]), {
+ inputFiles: ['**/*.js'],
+ outputFile: '/appkit/index.js'
+ });
+
+ return [globalTree, amdTree];
};
Please sign in to comment.
Something went wrong with that request. Please try again.