Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@frattaro/storybook-preset-craco
Advanced tools
One-line craco configuration for Storybook.
This preset is designed to use alongside @storybook/react
.
yarn add storybook-preset-craco
npm i storybook-preset-craco
First, install this preset to your project.
# Yarn
yarn add -D storybook-preset-craco
# npm
npm install -D storybook-preset-craco
Once installed, add this preset to the appropriate file:
./.storybook/main.js
module.exports = {
addons: ["storybook-preset-craco"],
};
Note: Don't forget to comment or remove the @storybook/preset-create-react-app
from addons
.
When working with Storybook Docs, simply add the following config to your main.js
file.
module.exports = {
addons: [
"storybook-preset-craco",
{
name: "@storybook/addon-docs",
options: {
configureJSX: true,
},
},
],
};
craco.config.js
In most cases, this preset will look for your craco.config.js
in the current working directory.
If you are using a non standard project layout then you can provide it in cracoConfigFile
.
module.exports = {
addons: [
{
name: "storybook-preset-craco",
options: {
cracoConfigFile: "../craco.config.js",
},
},
],
};
This project is licensed under the MIT licence.
All documentation and images are licenced under the Creative Commons Attribution-ShareAlike 4.0 International License.
This project uses Semantic Versioning.
FAQs
Craco preset for Storybook
We found that @frattaro/storybook-preset-craco 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.