Created
June 29, 2015 20:39
-
-
Save jish/3faa713ab97e582b2a91 to your computer and use it in GitHub Desktop.
Conditionally copy foo
This file contains hidden or 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
var Funnel = require('broccoli-funnel') | |
var MergeTrees = require('broccoli-merge-trees') | |
var trees = [] | |
var currentIndex = new Funnel('.', { | |
include: ['index.html'], | |
destDir: 'current' | |
}) | |
trees.push(currentIndex) | |
if (process.env.FOO) { | |
var fooIndex = new Funnel('.', { | |
include: ['index.html'], | |
destDir: 'foo' | |
}) | |
trees.push(fooIndex) | |
} | |
module.exports = new MergeTrees(trees) |
Author
jish
commented
Jun 29, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment