Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
broccoli-lr
Advanced tools
Since version 0.15 or so Broccoli no longer has live-reload baked in as part of its basic server (nor should it honestly).
This command allows for a quick and easy way for you to get all the goodness of the latest Broccoli version as well as the old live reload that you know and love.
To install broccoli-lr you will need to run:
npm install -g broccoli-lr
That's it! No local version (at least not of LR).
You will still have to install your normal local Broccoli and any filters and plugins you may want in your Brocfile.js
(I'm not magical).
This small wrapper heavily relies on being able to grab the watcher instance from an existing Broccoli server. This feature is not currently available and is waiting on a PR to land (hopefully soon).
Until then, please use rtablada/broccoli#feature/server-returns
as your local version of broccoli
in your package.json
file.
Now when you want to start Broccoli with live reload, you can run:
broccoli-lr serve
There is no broccoli-lr build
to minimize the footprint and requirements of this library to stay up to date.
If you want to do a regular build, continue using plain old broccoli build
When running broccoli-lr serve
there are some different options that you can pass in to customize things:
--port
(default: 4200) - The port to bind to for compile assets to be served from--host
(default: localhost) - The host to bind to for compile assets to be served from--live-reload-port
(default: 35729) - The port to start LiveReload onThis project is distributed under the MIT license. TLDR; use it, credit it, no guarantees (I do try my best though).
Most of this code is ripped directly from the old version of Broccoli and just adapted for the newer APIs and adding a new binary. Thanks to Jo Liss for making an awesomely performant library and doing most of the heavy lifting!
FAQs
A CLI runner for Broccoli that reenables Live Reload.
The npm package broccoli-lr receives a total of 2 weekly downloads. As such, broccoli-lr popularity was classified as not popular.
We found that broccoli-lr 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.