{"bin":{"chroma":"./bin/register.js","chromatic":"./bin/register.js","chromatic-cli":"./bin/register.js"},"bugs":{"url":"https://github.com/chromaui/chromatic-cli/issues"},"dist":{"shasum":"7ae24a8cf74c8c72e6093de7974dd057e9958827","tarball":"https://registry.npmjs.org/storybook-chromatic/-/storybook-chromatic-3.0.3-debug.0.tgz","fileCount":67,"integrity":"sha512-l07xC+M/ueGF7izKhSPL793DaHAEDWzvUEH2mYTcA4cUm7MOr/0oLWkeJHTtoVvmtA0UCCgWJnqEKMvMjW5gNg==","signatures":[{"sig":"MEUCIHbsACByZsW/PP5aMzKTe0g2OGMtxESHSoysSMbpG31rAiEA/NnQwLcACFkTqkEc3HgBwu/k2oNxZN5wDhSyv05+PfM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":154129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpcuBCRA9TVsSAnZWagAAI4IP/28agPUXM1rYiT8xMnrs\nC/v6LLqjvUV4mxD1z2TO2UbDKjUlFZkoj75zuSjyrevQkEmtv4vlNwFuVCXY\nm+8b0PZbWP6XzxUQs5CUh1aZFNfKoVtldXgkpZNM2OnsuZfwMmzwFI0qBK7f\nO+kzS78r7kmlEuHsFvXxM1lW3jzkbgEBT+qsYGD4lzIAAg/oWRXyKnXQpGqN\noghGydci1dzadoiby/5IN8jftYCws2dmpLkws9UybCZVokOIb3AWJDRyweDO\neuVFEVSAAwZV4Jy59M0qaHpeYiDSnEmXojyBHOpujGEy1tINpy8jq8UmvI//\nQrXFroHHCKbohKlJy6/ZUYn13Gm/qIYoKuy6r+Hn0uITqVHSXHfjfOpuHYbE\nAHsTdFUQW0uDw8GW9fdT1d6qcdNTVJkMUWic+7oyd4iUzeUEebN9yy9Q/Jvi\ntQAbuUH3VsBYoUUAV5R2q3mKTF/xD7OKQWcySe++DVlTWASPzlQzfOHEWjL1\n6YW2HvdIErWhXktnRRgoGv/dPw0ndlQ0cF1DoVh7qXHZ1mJG3IfMGC7bgZI+\nBU6GvvLy/u2J6f6lQWpColQAewrXNY8GFgPbeL5bgBkk163Xcyr7G0KbKNfW\n04lMXYNG2WaDqmAWLXrOmkwmC1Cq/vu4bcNzAjIBScCl1q76KBFif0F6OIA9\n8XsZ\r\n=fjXL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./storybook-addon.js","name":"storybook-chromatic","husky":{"hooks":{"pre-commit":"yarn lint-staged"}},"readme":"# Storybook Chromatic & Storybook Chroma\n\nA CLI to connect your Storybook with Chromatic or Chroma.\n\n<img width=\"100%\" src=\"https://user-images.githubusercontent.com/3070389/63930825-5abe5f00-ca54-11e9-8320-7ee949823458.gif\" alt=\"\">\n\n## Install\n\n```sh\nyarn add storybook-chromatic\n```\n\n## Usage\n\nYou can use this package normally, which means installing it and adding a script called `chromatic` to your `package.json`\n\n```\n  \"chromatic\": \"chromatic\",\n```\n\nBut alternatively (and this is useful for testing) you can use npx:\n\n**Use a git branch**:\n```sh\nnpx -p chromaui/chromatic-cli#master chromatic --dev\n```\n\n**Use a debug version on npm**:\n```sh\nnpx -p storybook-chromatic chromatic\n```\n\nUsing npx has pros and cons:\n\n- 👍 You'll never be out of date, you'll use the latest version every time, never have to worry about upgrading this.\n- 👍 You don't need this package as a dependency, and don't need to install it during local development\n- 👎 This will add a delay when you actually do want to run this, like in your CI, delaying feedback.\n\n### Usage in a github action\n\nThere are examples here: [/.github/workflows](/.github/workflows).\n\nDo not run this based on a github pull_request event. If you do, the commit and branch will get reported wrong, use [https://github.com/chromaui/action](https://github.com/chromaui/action) instead.\n\n### Main options\n\n```\n--app-code=\"<your app code>\"\n```\n\nYou can also use the environment variable: `CHROMATIC_APP_CODE`\n\n### Storybook options\n\n```\n--build-script-name [name], -b  The npm script that builds your Storybook [build-storybook]\n--script-name [name], -s  The npm script that starts your Storybook [storybook]\n--exec <command>, -e  Alternatively, a full command to run to start your storybook\n--do-not-start, -S  Don't attempt to start or build; use if your Storybook is already running\n\n--storybook-port <port>, -p  What port is your Storybook running on (auto detected from -s, if set)\n--storybook-url <url>, -u  Storybook is already running at (external) url (implies -S)'\n--storybook-build-dir, -d     <dirname>  Provide a directory with your built storybook; use if you've already built your storybook\n--storybook-https  Use if Storybook is running on https (auto detected from -s, if set)\n--storybook-cert <path>  Use if Storybook is running on https (auto detected from -s, if set)\n--storybook-key <path>  Use if Storybook is running on https (auto detected from -s, if set)\n--storybook-ca <ca>  Use if Storybook is running on https (auto detected from -s, if set)    \n```\n\nThese options are not required, this CLI is 0-config if you have a `build-storybook` script in your `package.json`.\n\n### Chromatic options\n\n```\n--auto-accept-changes [branch]  Accept any (non-error) changes or new stories for this build [only for <branch> if specified]'\n--exit-zero-on-changes [branch]  Use a 0 exit code if changes are detected (i.e. don't stop the build) [only for <branch> if specified]\n--ignore-last-build-on-branch [branch]  Do not use the last build on this branch as a baseline if it is no longer in history (i.e. branch was rebased) [only for <branch> if specified]'\n--preserve-missing  Treat missing stories as unchanged (as opposed to deleted) when comparing to the baseline'\n--no-interactive  Do not prompt for package.json changes\n--only <component:story>  Only run a single story or a glob-style subset of stories (for debugging purposes\n```\n\n### Debug options\n\n```\n--skip  Skip chromatic tests (mark as passing)\n--list  List available stories (for debugging purposes)\n--ci  This build is running on CI, non-interactively (alternatively, pass CI=true)\n--debug  Output more debugging information\n```\n\n### Environment variables\n\nThis package will load any variables from a `.env` file if present\n\n## Issues\n\nIf you encounter issues with the CLI please report them via the in-app chat (Intercom widget) or at https://github.com/chromaui/chromatic-cli/issues. Thanks!\n\n## Contributing\n\nBecause of the nature of this package: it being a connector between Storybook and a web service, you may need an app code to test this locally. Just send us a message at opensource@hichroma.com or sign up for an account!\n\nAll contributions are welcome!\n\n## Future plans:\n\n- We'd like to unify this so there's just a single package on npm.\n- Migrate to Typescript\n- Deprecate all the storybook options in favor of a sane `--config` flag\n\n## Publishing\n\nWe publish with a script:\n\n```sh\n./scripts/publish.js\n```\n\nYou can pass any flags to this you'd normally be able to pass to `npm publish`, such as `--dry-run` or `--tag=\"alpha\"`.\n\nBefore publishing we check if the current user has permissions and if the version isn't already on npm\n\n## Compatibility & versioning\n\nCompatibility is guaranteed between this package and Chromatic like so:\n\n- Production Chromatic ensures it’s compatible with what’s on NPM\n- What's on the master branch is equal to what's published on NPM\n- This package ensures it’s compatible with production Chromatic\n\nTo facilitate upgrading in the future, removing and adding features, this is the process:\n\n- Any new features will have to be on Chromatic production before they could be used in this package\n- We can feature flags to be able to test new functionality\n- Chromatic production can not remove any features this package depends on until after the usage has been removed from this package.\n  Plus a grace period so users have upgraded\n","gitHead":"10073d980d2be1de87d81b28ad3447f7b1487818","license":"MIT","scripts":{"dev":"npm-run-all --parallel -l 'build:** -- --watch'","lint":"yarn lint:js src .storybook bin stories","test":"jest","build":"npm-run-all --serial -l build:**","lint:js":"cross-env NODE_ENV=production eslint --cache --cache-location=.cache/eslint --ext .js,.json,.mjs --report-unused-disable-directives","prepare":"npm run build","prebuild":"rm -rf ./dist","build:bin":"BABEL_ENV=build babel -s -d ./dist ./src -D","chromatic":"./bin/register.js","storybook":"start-storybook -p 9009","lint:package":"sort-package-json","build-storybook":"build-storybook"},"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"homepage":"https://github.com/chromaui/chromatic-cli#readme","repository":{"url":"git+https://github.com/chromaui/chromatic-cli.git","type":"git"},"_npmVersion":"6.9.0","description":"Visual Testing for Storybook","directories":{},"lint-staged":{"linters":{"*.js":["yarn lint:js --fix","git add"],"*.json":["yarn lint:js --fix","git add"],"package.json":["yarn lint:package","git add"]}},"maintainers":[{"name":"ndelangen","email":"ndelangen@me.com"},{"name":"tmeasday","email":"tom@thesnail.org"}],"_nodeVersion":"10.16.3","dependencies":{"esm":"^3.2.25","tmp":"^0.1.0","jest":"^24.9.0","meow":"^5.0.0","pino":"5.13.4","uuid":"^3.3.3","debug":"^4.1.1","jsdom":"^15.1.1","dotenv":"^8.1.0","env-ci":"^4.1.3","is-url":"^1.2.4","npmlog":"^4.1.2","pkg-up":"^3.1.0","semver":"^6.2.0","fake-tag":"^1.0.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","node-ask":"^1.0.1","progress":"^2.0.3","denodeify":"^1.2.1","minimatch":"^3.0.4","tree-kill":"^1.1.0","ts-dedent":"^1.1.0","node-fetch":"^2.6.0","param-case":"^2.1.1","async-retry":"^1.1.4","cross-spawn":"^7.0.1","strip-color":"^0.1.0","yarn-or-npm":"^3.0.1","@babel/runtime":"^7.6.2","util-deprecate":"^1.0.2","progress-stream":"^2.0.0","enhanced-resolve":"^4.1.0","node-loggly-bulk":"^2.2.4","@babel/preset-react":"^7.0.0","rotating-file-stream":"^1.4.4","@chromaui/localtunnel":"2.0.1","babel-plugin-require-context-hook":"^1.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chalk":"^2.4.2","husky":"3.0.8","react":"^16.10.1","eslint":"^6.5.1","cross-env":"^6.0.3","@babel/cli":"^7.6.2","prop-types":"^15.7.2","@babel/core":"^7.6.2","lint-staged":"^9.4.1","npm-run-all":"^4.0.2","babel-loader":"8","@babel/register":"^7.6.2","prettier-eslint":"^9.0.0","@storybook/react":"5.2.1","@babel/preset-env":"7.6.2","babel-preset-jest":"^24.9.0","eslint-plugin-jest":"^22.17.0","eslint-plugin-json":"^1.4.0","babel-preset-minify":"^0.5.1","eslint-plugin-react":"^7.15.1","why-is-node-running":"^2.1.0","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.16.0","eslint-config-prettier":"^6.3.0","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-prettier":"^3.1.1","@typescript-eslint/parser":"^2.3.2","@babel/plugin-transform-runtime":"^7.6.2","@typescript-eslint/eslint-plugin":"^2.3.2"},"_npmOperationalInternal":{"tmp":"tmp/storybook-chromatic_3.0.3-debug.0_1571146625275_0.8189779045138992","host":"s3://npm-registry-packages"},"_id":"storybook-chromatic@3.0.3-debug.0","version":"3.0.3-debug.0"}