
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@chromatic-com/turbosnap-helper
Advanced tools
TurboSnap Helper is a CLI utility that assists with properly configuring TurboSnap for Chromatic.
TurboSnap Helper is a CLI utility that assists with properly configuring TurboSnap for Chromatic.
Start by running the utility in the root of your repository. The utility will help you locate projects for individual configuration.
Why run from the root of your repository and not the root of your project? Monorepos!
By running from the root of your repository, the utility can detect multiple projects and set configuration to work as expected in monorepo setups. This gives the utility the option to search the entire repo for assets, not just the base directory.
npx @chromatic-com/turbosnap-helper
The utility has four commands, with three modes available to help you configure TurboSnap:
init
, -i
, --init
(default)analyze
, -a
, --analyze
preview
, -p
, --preview
help
, -h
, --help
init
mode (config helper)When you initiate the utility, it will run the configuration helper. The utility has been updated to search for Storybook projects, so it works in a monorepo and can be ran from the root of the repository.
After a project is selected, you'll be asked whether you'd like to see your config directories or want guided help. Choose the Help me create
option to have your existing config file updated, or a new file created. From there, the config helper will:
chromatic.config.json
file with confirmed directories
externals
externals
paths, the utility will only remove them if they match a pattern being addedonlyChanged
or the schema, the utility will add them bothpackage.json
for a Chromatic script
chromatic --config-file 'chromatic.config.json'
in the script but the file is saved to configs/chromatic.config.json
), it'll ask if you'd like it updated while retaining any other options in your Chromatic scriptanalyze
mode (analyze imports for files)Using the analyze
mode, the utility will search your project for any story files and corresponding component files, and provide a summary in the CLI of files that contain dymanic imports.
For story files, these are important to note since they can cause unnecessary rebuilds. In component files, they can lead to regressions not being caught by TurboSnap. Use analyze
to help ensure your story and component files have optimized imports.
preview
mode (analyze the preview file)If there's a mode to run besides init
, it's preview
! Your preview file is like a shared kitchen. If someone dumps salt in the sugar, everyone's cookies are going to taste a bit off. Since this file has such a huge impact on your testing, run this mode to help analyze whether there's optimization you can do to improve your TurboSnap builds.
Running the preview
mode will:
No one wants to wash all the dishes if they only used one cup, right? By keeping an efficient preview file, you'll help ensure you're only retesting when actual changes have impacted your stories.
FAQs
TurboSnap Helper is a CLI utility that assists with properly configuring TurboSnap for Chromatic.
The npm package @chromatic-com/turbosnap-helper receives a total of 427 weekly downloads. As such, @chromatic-com/turbosnap-helper popularity was classified as not popular.
We found that @chromatic-com/turbosnap-helper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 15 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.