{"_id":"@adammessner/tarot","name":"@adammessner/tarot","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.2":{"name":"@adammessner/tarot","version":"0.0.2","description":"Easy custom Webpack configs for SCSS and JS","repository":{"type":"git","url":"git+https://github.com/intouchg/tarot.git"},"author":{"name":"Intouch Group"},"license":"MIT","main":"./index.js","devDependencies":{"@babel/core":"7.16.5","@intouchg/prettier-config":"latest","autoprefixer":"10.4.0","babel-loader":"8.2.3","copy-webpack-plugin":"10.2.0","css-loader":"6.5.1","ignore-emit-webpack-plugin":"2.0.6","mini-css-extract-plugin":"2.4.5","postcss":"8.4.5","postcss-loader":"6.2.1","postcss-sort-media-queries":"4.2.1","sass":"1.45.0","sass-loader":"12.4.0","webpack":"5.65.0","webpack-bundle-analyzer":"4.5.0","webpack-cli":"4.9.1","webpack-dev-server":"4.6.0"},"peerDependencies":{"@babel/core":"7.16.5","autoprefixer":"10.4.0","babel-loader":"8.2.3","copy-webpack-plugin":"10.2.0","css-loader":"6.5.1","ignore-emit-webpack-plugin":"2.0.6","mini-css-extract-plugin":"2.4.5","postcss":"8.4.5","postcss-loader":"6.2.1","postcss-sort-media-queries":"4.2.1","sass":"1.45.0","sass-loader":"12.4.0","webpack":"5.65.0","webpack-bundle-analyzer":"4.5.0","webpack-cli":"4.9.1","webpack-dev-server":"4.6.0"},"bugs":{"url":"https://github.com/intouchg/tarot/issues"},"homepage":"https://github.com/intouchg/tarot#readme","directories":{"example":"example"},"scripts":{"test":"npm i @adammessner/tarot"},"gitHead":"6f2ed565ca68590c6122f4fe5c697a94ec843694","_id":"@adammessner/tarot@0.0.2","_nodeVersion":"19.4.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-GRwuqIrJL9C7UJLc+l9GB3yWlq+eYBKyPm9+SmTUOBKNLxutQYzSXpOyw4MgtPfzsdrh4dtzCkrX3SaK4d0mdQ==","shasum":"6cfe7c5124cae7d37eb930207b75c7d85b882b8b","tarball":"https://registry.npmjs.org/@adammessner/tarot/-/tarot-0.0.2.tgz","fileCount":11,"unpackedSize":10011,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEGbUZTpmsOD0IQMSSBcC/78nLPm0kNGKg4CMKGWMDZWAiEA5mVOVUDVHWjf2MxW2i4WnhqsDCydY+AL4vO1sE9Hlms="}]},"_npmUser":{"name":"adam.messner","email":"adam.messner@eversana.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tarot_0.0.2_1719345475731_0.7324982513540474"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-25T19:57:55.602Z","0.0.2":"2024-06-25T19:57:55.862Z","modified":"2024-06-25T19:57:56.193Z"},"maintainers":[{"name":"adam.messner","email":"adam.messner@eversana.com"}],"description":"Easy custom Webpack configs for SCSS and JS","homepage":"https://github.com/intouchg/tarot#readme","repository":{"type":"git","url":"git+https://github.com/intouchg/tarot.git"},"author":{"name":"Intouch Group"},"bugs":{"url":"https://github.com/intouchg/tarot/issues"},"license":"MIT","readme":"# @intouchg/tarot\n\nEasy custom Webpack configs for SCSS and JS\n\n## Features\n\n* babel-loader\n* webpack-bundle-analyzer\n* CSS / SCSS entry files\n* SCSS with PostCSS autoprefixer and media query sorting\n* SCSS $env variable based on Webpack mode\n\n## Usage\n\n1. Set up your `webpack.config.js` using tarot:\n```js\n// webpack.config.js\nconst { build } = require('@intouchg/tarot')\n\nmodule.exports = build({\n\t// Entry keys are used as the filename of the bundled output,\n\t// with appropriate file extension automatically added, and\n\t// are relative to the output directory.\n\t// Entry values are used as the filepath of the entry file,\n\t// and are relative to the source directory.\n\tentries: {\n\t\tbundle: 'index.js',\n\t\tstyles: 'index.scss',\n\t\t['js/bundle-' + new Date().toISOString()]: 'index.js',\n\t},\n\n\t// Options\n\tsource: 'src2', // Source directory, default 'src'\n\toutput: 'dist2', // Output directory, default 'dist'\n\thttps: true, // Enable HTTPS, default false\n\tcors: true, // Enable CORS, default false\n\tcopy: [ // Copy static assets, default []\n\t\t{\n\t\t\tfrom: 'assets', // Relative to the source directory\n\t\t\tto: 'other' // Relative to the output directory\n\t\t}\n\t],\n\n\t// Note: Webpack `context` is assumed to be process.cwd()\n})\n```\n\n2. Use `webpack-cli` and arguments to build:\n```sh\nwebpack serve\nwebpack --mode development\nwebpack --analyze\n```\n\n## Prior Art\n\n* [tarot](https://github.com/codynova/tarot)","readmeFilename":"readme.md"}