Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
b2g-scripts
Advanced tools
Contains a single cli script - b2g-scripts
with a growing number of subcommands.
In general it is assumed you have a working b2g emulator/desktop/phone with marionette turned on and listening on port 2828.
Commands like reload-app are not going to be useful if you're not in DEBUG mode (everything is in offline cache).
# notice the -g option for global
npm install b2g-scripts -g
cd $GAIA_DIR
make DEBUG=1
Run b2g-scripts
with no arguments to see the list of current commands.
Each command has sub options as well and all respond to the --help option.
b2g-scripts watch --help
Watches a directory for web dev changes js/css/html/properties files. Executes a cli command. You can use this to chain other sub commands.
# I use this all the time to reload app when I am making rapid
# html/css changes
b2g-scripts watch "b2g-scripts reload-app"
Runs any of the marionette commands with n number of arguments
b2g-scripts cmd goUrl http://google.com
Reloads currently running app.
WARNING this is bound to the current implementation of gaia and will break if that implementation changes.
b2g-scripts reload-app
Output hostfile definition to add to /etc/hosts
b2g-scripts hosts --gaia $GAIA_DIR --ip 127.0.0.1
Starts http server. Faster then HTTPD but designed for use with the emulator/phone.
b2g-scripts server --gaia $GAIA_DIR --port 8081
FAQs
B2G/Gaia Helper Scripts
The npm package b2g-scripts receives a total of 0 weekly downloads. As such, b2g-scripts popularity was classified as not popular.
We found that b2g-scripts 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.