{"_id":"@amccarthy1/storybook-preset-craco","name":"@amccarthy1/storybook-preset-craco","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.7":{"name":"@amccarthy1/storybook-preset-craco","version":"0.0.7","description":"Craco preset for Storybook","homepage":"https://github.com/artisanofcode/storybook-preset-craco","bugs":{"url":"https://github.com/artisanofcode/storybook-preset-craco/issues"},"repository":{"type":"git","url":"git+https://github.com/artisanofcode/storybook-preset-craco.git"},"main":"index.js","license":"MIT","dependencies":{"@storybook/preset-create-react-app":">=3.1.5"},"peerDependencies":{"@babel/core":"*","@craco/craco":">=5.0.0","@storybook/node-logger":"*","@storybook/react":">=5.2","react-scripts":">=3.0.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"**/*.{js,json,md}":["prettier --write"]},"devDependencies":{"husky":"^4.3.0","lint-staged":"^10.5.2","prettier":"^2.2.0"},"gitHead":"7a14059de5d1f74187ad01c01832abc2a4f51ec2","_id":"@amccarthy1/storybook-preset-craco@0.0.7","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-Ao9h9RXtIb4xn4KgpTfZkRXAfsRLSzmhSqcYPZNgvK+FlrVIHs8lnq5y8rz0iWnf7T8yijCJD8ecMeonQLy+Vg==","shasum":"59c09b2a09f6626738611c7fb6451ce45ba49198","tarball":"https://registry.npmjs.org/@amccarthy1/storybook-preset-craco/-/storybook-preset-craco-0.0.7.tgz","fileCount":6,"unpackedSize":14227,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEWqLKfNBjnmsC2M+z1J/gB/DBhVsEVaGX6/F7ltLpIEAiEAhEvPuBBW7SkXRINuuxqcPgb9p1oDhoPLen4Z0fqtszA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2aGGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSJw//TNLaF1qc9MgN2MDXq8GxxA2g5sLhvhMwPHdUSlyAy0/A7M+4\r\nhixoMI8Ks50tPR8iwPHy+UEIXPn6AHZreJoNd3Q/0ujIi88OCxQnsx50R4t9\r\nh15i+iVHZpO/6PltbRoWxtyiHAc2ne2NQORsWMewrAuKUnM1wY4YQrY6tmT3\r\nsJOHaDuLgt9JqlnWT1yTitbbLahATkPv8bTh/iyMNVblx6sPOzV/sckEfV10\r\nkDtTjiFfyiKuz4fkVB9wiQ7pBZk0F0rAi6Rzhl0wIyyTa55AGc5hLX0vv1Xr\r\nD23e450bpANZdaDpVIQo6xAY6zS9eE5h/CDjicyOOQK+BnF/9jt1ARtT9Cip\r\nHpshe9a6U+kTFhfISa8NWeNQZ1Pw3060rn0hu4OqbU2vyR/acYy9Wr/++7Dp\r\nqEC8lMacwol2UkIvfEKa1Pn/7Qpe5/3VPbcsp1Ybb2yLiagJot9FPGEmoiF7\r\ne1zRFnOT6p/G2Xwn/D1UMapAaDY/XVy6/gg3MGhIYvOoj93T1xIBQH5GvZuF\r\n8zKrmSkYOT5alytBRl3/rUfTqZlzANfKpgYTH6mgN+scSkp/bnKgRIfXqdzV\r\nONWNqbz4hJtw+1aCqKJ//Fxbo3HpdvKIySVuJAZeTXqlaceBR1O6fQ36OFB5\r\nNncXXRk6rAuDKFa5Vkd4o/7I0Elk5TnczgU=\r\n=Tj/R\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"amccarthy1","email":"adam@amccarthy.me"},"directories":{},"maintainers":[{"name":"amccarthy1","email":"adam@amccarthy.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/storybook-preset-craco_0.0.7_1658429830548_0.5249720835622886"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-21T18:57:10.484Z","0.0.7":"2022-07-21T18:57:10.747Z","modified":"2022-07-21T18:57:10.903Z"},"maintainers":[{"name":"amccarthy1","email":"adam@amccarthy.me"}],"description":"Craco preset for Storybook","homepage":"https://github.com/artisanofcode/storybook-preset-craco","repository":{"type":"git","url":"git+https://github.com/artisanofcode/storybook-preset-craco.git"},"bugs":{"url":"https://github.com/artisanofcode/storybook-preset-craco/issues"},"license":"MIT","readme":"# Craco preset for Storybook\n\nOne-line [craco](https://github.com/gsoft-inc/craco) configuration for Storybook.\n\nThis preset is designed to use alongside [`@storybook/react`](https://github.com/storybookjs/storybook/tree/master/app/react).\n\n## 🛠 Installing\n\n### Yarn\n\n```\nyarn add storybook-preset-craco\n```\n\n### npm\n\n```\nnpm i storybook-preset-craco\n```\n\n## 🎓 Usage\n\n\n### Basic\n\nFirst, install this preset to your project.\n\n```sh\n# Yarn\nyarn add -D storybook-preset-craco\n\n# npm\nnpm install -D storybook-preset-craco\n```\n\nOnce installed, add this preset to the appropriate file:\n\n- `./.storybook/main.js`\n\n  ```js\n  module.exports = {\n    addons: [\"storybook-preset-craco\"],\n  };\n  ```\n  \n  **Note**: Don't forget to comment or remove the `@storybook/preset-create-react-app` from `addons`.\n\n### Usage with Docs\n\nWhen working with Storybook Docs, simply add the following config to your `main.js` file.\n\n```js\nmodule.exports = {\n  addons: [\n    \"storybook-preset-craco\",\n    {\n      name: \"@storybook/addon-docs\",\n      options: {\n        configureJSX: true,\n      },\n    },\n  ],\n};\n```\n\n### Custom `craco.config.js`\n\nIn most cases, this preset will look for your `craco.config.js` in the current working directory.\n\nIf you are using a non standard project layout then you can provide it in `cracoConfigFile`.\n\n```js\nmodule.exports = {\n  addons: [\n    {\n      name: \"storybook-preset-craco\",\n      options: {\n        cracoConfigFile: \"../craco.config.js\",\n      },\n    },\n  ],\n};\n```\n\n## ⚖️ Licence\n\nThis project is licensed under the [MIT licence](http://dan.mit-license.org/).\n\nAll documentation and images are licenced under the \n[Creative Commons Attribution-ShareAlike 4.0 International License][cc_by_sa].\n\n[cc_by_sa]: https://creativecommons.org/licenses/by-sa/4.0/\n\n## 📝 Meta\n\nThis project uses [Semantic Versioning](http://semver.org/).\n","readmeFilename":"README.md"}