
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
broccoli-duplicate-watched-tree-finder
Advanced tools
A utility to find duplicated watched Broccoli trees.
A utility to list all watched Broccoli trees and find duplicates.
Duplicate watched trees might consume extra resources on your machine. So why not avoid them?
npm install -g broccoli-duplicate-watched-tree-finder
cd
into a directory that contains a Brocfile.js
. An example Brocfile.js
with duplicate watched trees could be:
var pickFiles = require('broccoli-static-compiler'),
compileSass = require('broccoli-sass'),
mergeTrees = require('broccoli-merge-trees');
var app = 'app';
var styles = 'app/styles'
var styles = compileSass(styles, 'app.scss', 'assets/app.css');
module.exports = mergeTrees([app, styles]);
Then run the broccoli-duplicate-watched-tree-finder
command within the
directory and you will see output like:
$ broccoli-duplicate-watched-tree-finder
All watched trees:
- app
- app/styles
Duplicate watched trees:
- app/styles is inside app
You should wrap the trees shown in blue in broccoli-unwatched-tree.
You can fix the problem by requiring broccoli-unwatched-tree
and wrapping '/app/styles'
in it:
var pickFiles = require('broccoli-static-compiler'),
unwatched = require('broccoli-unwatched-tree'),
compileSass = require('broccoli-sass'),
mergeTrees = require('broccoli-merge-trees');
var app = 'app';
var styles = unwatched('app/styles')
var styles = compileSass(styles, 'app.scss', 'assets/app.css');
module.exports = mergeTrees([app, styles]);
Running the command again will now give you:
$ broccoli-duplicate-watched-tree-finder
All watched trees:
- app
Nice! You do not have any duplicate watched paths.
Notice: The finder performs a full Broccoli build, so the command might take a few seconds to finish depending on how complex your build is.
FAQs
A utility to find duplicated watched Broccoli trees.
The npm package broccoli-duplicate-watched-tree-finder receives a total of 0 weekly downloads. As such, broccoli-duplicate-watched-tree-finder popularity was classified as not popular.
We found that broccoli-duplicate-watched-tree-finder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.