Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
Created May 16, 2014 21:01
Show Gist options
  • Select an option

  • Save ryanflorence/d441f20785e4cb7a38cf to your computer and use it in GitHub Desktop.

Select an option

Save ryanflorence/d441f20785e4cb7a38cf to your computer and use it in GitHub Desktop.
var jsx = require('broccoli-react');
var browserify = require('broccoli-browserify');
var pickFiles = require('broccoli-static-compiler');
var mergeTrees = require('broccoli-merge-trees');
var assets = pickFiles('app', {
srcDir: './',
files: ['**/*.html'],
destDir: './'
});
var app = browserify(jsx('app/js'), {
entries: ['./main.js'],
outputFile: 'application.js',
bundle: {
debug: process.env.PRODUCTION !== "true"
}
});
module.exports = mergeTrees([assets, app]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment