Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@dynrl/react-layout
Advanced tools
Custom scripts for [Create React App](https://github.com/facebook/create-react-app) for generating React component projects written in TypeScript.
Custom scripts for Create React App for generating React component projects written in TypeScript.
You must have Create React App installed globally see here for documentation.
Note: These steps will assume your new package is named my-component
.
create-react-app my-component --scripts-version @dynrl/create-react-comp-scripts
cd my-component
yarn start
http://localhost:9000
yarn start
- Start the Stroybook server for developmentyarn build
- Transpile to javascript in preperation for publishingyarn test
- Run your tests using Jestyarn run format
- Format your source files with Prettieryarn run export
- Build a standalone Storybook for hosting a demoDevelopment is handled through Storybook which allows you to write stories which showcase your component for various use-cases. See here for more information abour writing stories.
To launch the Storybook server simply run yarn start
then open a browser and
navigate to http://localhost:9000
. The Storybook server has hot-reloading
enabled so changing your component or story can be done while the server is
running and the changes will be reflected in the browser.
Stories should be written in TypesScript and the file should end in .story.tsx
and be placed in the src
directory. It is recommended you place them next to
your component with the same name as the component (ex. /src/hello/Hello.tsx
has the story /src/hello/Hello.story.tsx
).
Testing is performed using Jest and Enzyme. Tests should be written in
TypeScript and the file should end in .test.ts(x)
or .spec.ts(x)
. Like
stories, it is recommended to place the tests next to your component using the
same name.
To test simply run yarn test
Your TypeScript code will be transpiled to JavaScript (for distribution through npm) using Rollup. This must be done before publishing.
To build simply run yarn build
TODO
TODO
FAQs
Custom scripts for [Create React App](https://github.com/facebook/create-react-app) for generating React component projects written in TypeScript.
The npm package @dynrl/react-layout receives a total of 1 weekly downloads. As such, @dynrl/react-layout popularity was classified as not popular.
We found that @dynrl/react-layout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.