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.
@inthepocket/create-itp-react-app
Advanced tools
[![version][version-badge]][package] [![MIT License][license-badge]][license]
Generates an ITP-ready React App.
Uses create-react-app under the hood. Adds some extra features and example files within our common directory structure.
Typescript is enabled by default.
$ npx @inthepocket/create-itp-react-app <your-project-name>
$ cd <your-project-name>
$ npm start
1 should be replaced by eslint in the near future, as pointed out by @thibmaek
2 postcss & postcss-preset-env now come with react-scripts (stage 3 configured). Unfortunately we still need to rewire, because we'll need stage 1 & the custom-media-queries feature.
├── design-docs
└── src
├── __mockdata__
├── app
│ └── screens
├── common (import from generated-project-name/common)
│ ├── assets
| ├── fnt
| ├── img
│ ├── components
│ │ ├── atoms
│ │ ├── molecules
│ │ └── organisms
│ └── primitives
└── core (import from generated-project-name/core)
├── actions
├── reducers
├── sagas
├── schemas
├── selectors
└── services
└── types
The generated project comes with some example files that demonstrate:
node index.js <MY_PROJECT_NAME>
Stack trace
$ (node:56347) UnhandledPromiseRejectionWarning: Error: ENFILE: file table overflow, open '<LOCAL_PATH>/node_modules/jest-matchers/build/spyMatchers.js'
$ (node:56347) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise whichwas not handled with .catch(). (rejection id: 1)
$ (node:56347) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Workaround
$ echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
$ echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -w kern.maxfiles=65536
$ sudo sysctl -w kern.maxfilesperproc=65536
$ ulimit -n 65536
Jira ref: DESSSYS-26
FAQs
[![version][version-badge]][package] [![MIT License][license-badge]][license]
We found that @inthepocket/create-itp-react-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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.