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.
create-react-prototype
Advanced tools
A CLI similar to create-react-app, just for simple & small libraries. 📚
Create, test & showcase React libraries with no build configuration. 📚
create-react-prototype intends to fix these issues by providing a zero configuration out of the box solution for writing react libraries. There won't be a single file related to your build process, etc. in your library.
npm
& yarn
are supportedIf you are a visual learner you can find a video tutorial here: https://www.youtube.com/watch?v=XwdJaKLfFK4
Install create-react-prototype
globally:
$ npm i -g create-react-prototype
Create a new directory for your libaray and initialize the project in it:
$ mkdir my-library
$ cd my-library
$ create-react-prototype init
You'll now be prompted to set up the package.json, and then create-react-prototype
will go ahead and set everything up for you.
Building/testing/releasing your library is rather simple with these scripts:
$ npm run build
$ npm run watch
$ npm run test
$ npm run pack
$ npm run release
If you cd to example
a create-react-app stands ready to be used, with your library already installed:
$ npm run watch
$ cd example
$ npm run start
Read more in the wiki.
FAQs
A CLI similar to create-react-app, just for simple & small libraries. 📚
We found that create-react-prototype 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.