Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-merge-trees

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-merge-trees - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

4

CHANGELOG.md
# master
# 4.1.0
* [Enhancement] add `destDir`
# 4.0.0

@@ -4,0 +8,0 @@

3

index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc