broccoli-merge-trees
Advanced tools
Comparing version 4.0.0 to 4.1.0
# master | ||
# 4.1.0 | ||
* [Enhancement] add `destDir` | ||
# 4.0.0 | ||
@@ -4,0 +8,0 @@ |
@@ -26,3 +26,4 @@ 'use strict'; | ||
// have this.inputPaths and this.outputPath once we build. | ||
this.mergeTrees = new MergeTrees(this.inputPaths, this.outputPath, { | ||
let outputPath = `${this.outputPath}${this.options.destDir ? '/' + this.options.destDir : ''}`; | ||
this.mergeTrees = new MergeTrees(this.inputPaths, outputPath, { | ||
overwrite: this.options.overwrite, | ||
@@ -29,0 +30,0 @@ annotation: this.options.annotation |
{ | ||
"name": "broccoli-merge-trees", | ||
"description": "Broccoli plugin to merge multiple trees into one", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"author": "Jo Liss <joliss42@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -43,2 +43,4 @@ # broccoli-merge-trees | ||
* `destDir`: A string representing the destination path that merged files will be copied to. | ||
### Example | ||
@@ -78,2 +80,22 @@ | ||
------ | ||
If this is your `Brocfile.js`: | ||
```js | ||
var BroccoliMergeTrees = require('broccoli-merge-trees'); | ||
module.exports = new BroccoliMergeTrees(['public', 'scripts'], { | ||
destDir: 'assets' | ||
}); | ||
``` | ||
Then running `broccoli build the-output` will generate this folder: | ||
the-output | ||
└─ assets | ||
├─ app.js | ||
├─ index.html | ||
└─ images | ||
└─ logo.png | ||
## Contributing | ||
@@ -80,0 +102,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7757
43
110