{"_id":"@abcnews/aunty-pl","_rev":"3-268527266e82960107be32f8ccb06d1f","name":"@abcnews/aunty-pl","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@abcnews/aunty-pl","version":"1.0.0","description":"Tools to extend @abcnews/aunty for Presentation Layer","repository":{"type":"git","url":"git+https://github.com/abcnews/aunty-pl.git"},"license":"MIT","contributors":[{"name":"Colin Gourlay","email":"gourlay.colin@abc.net.au"}],"scripts":{"release":"release-it"},"publishConfig":{"access":"public"},"main":"src/index","devDependencies":{"release-it":"^15.1.4"},"dependencies":{"@abcaustralia/postcss-config":"^15.2.0","postcss":"^8.4.21","postcss-loader":"^7.0.2"},"peerDependencies":{"@abcaustralia/nucleus":"*"},"gitHead":"b30c61e168646905e408726b4e5a46257ecd5a75","bugs":{"url":"https://github.com/abcnews/aunty-pl/issues"},"homepage":"https://github.com/abcnews/aunty-pl#readme","_id":"@abcnews/aunty-pl@1.0.0","_nodeVersion":"18.11.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-CjyDfyzznOHqxqjlZBhb6mxYmsKIxGZe9yCwWFylEwD9rh80EqCjb4+RBP9GMs3iPpAS6O/CsjTREC7Of6bG9g==","shasum":"0b0eefbe58b5db2cbba0c9c534c8f1dd5c14044b","tarball":"https://registry.npmjs.org/@abcnews/aunty-pl/-/aunty-pl-1.0.0.tgz","fileCount":5,"unpackedSize":4896,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoH3jrSbUhJUFmbMUjy21veM26xFDEDt5CkIFNALt3HgIgburn7F8szUZr66hMUajDocBzw0nVbm/E+cA7Cdl1vqo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7DPLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9wA//XvvVgZVHQGa77nVFc4FU77p0GmuR/mOMsAOtv7CyKWE9yH00\r\nk9awBMTdSRR5cJcXTKXvCQTTVpOu3tsGs9X6x8zQvFDWelko5wYnNxlz81gL\r\nw/vH2W0DFOYLG1WWacqNCURrUu1aysHY6fWS5lZqSR6TZ5qPK10nxEwxgV5a\r\nouUmtgAaPdsZI6lMiu8UnBErFQu7NhQ/OPcLJooY+kQjIDpZSLccPIPkYkSI\r\nfHSvQHlmV0TFvmyNhDisykBkmgrCWY0Wttw/bOHxcqM24LBdSBzsLuPTdCab\r\n1s3eBy1vss5Nx3JKE1IFa2w4bF0o869pU9Oe6OAZYQznNni7kvUE2+Lwiz5H\r\n754uLt0HJEw3R+uKSbEIHgiv4XBwcfETq8we28HuAFkPvVhNhxjyDsnYYO5h\r\ntgQGuhmzFSdA0DcZyngbWnFotTJYQAAFkRrGvcdoc1l2Klmo42KPKPHcfP2e\r\nBHrujUFienWzAiBfiLtqQ3bikT1mDy7MaRmwdNt4F/pM3wsC+M1Jyb9fSPnq\r\nDSltE2q+D0ZJFbYpxD4CUKoTsOepoFvhTY/yHBESK8KIpz0bnbFqav+SqdJH\r\n5wOBA1sW50tvomKAU42qsAaFugn1fdTVgH1Hm07lFkLKmxbKgImiCUePo6Uz\r\n0t3oweajlnReUQ6cOQes7jg7PT+L0zQTkuc=\r\n=rNRz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"colingourlay","email":"colin@colin-gourlay.com"},"directories":{},"maintainers":[{"name":"phocks","email":"phocks@gmail.com"},{"name":"andrewkesper","email":"andy@andrewkesper.com"},{"name":"drzax","email":"simon@elvery.net"},{"name":"colingourlay","email":"colin@colin-gourlay.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aunty-pl_1.0.0_1676424139006_0.9308774844891339"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-15T01:22:18.891Z","1.0.0":"2023-02-15T01:22:19.163Z","modified":"2023-08-10T04:59:21.057Z"},"maintainers":[{"email":"ash@kyd.com.au","name":"ashkyd"},{"email":"hi@jtfell.com","name":"jtfell"},{"email":"phocks@gmail.com","name":"phocks"},{"email":"andy@andrewkesper.com","name":"andrewkesper"},{"email":"simon@elvery.net","name":"drzax"}],"description":"Tools to extend @abcnews/aunty for Presentation Layer","homepage":"https://github.com/abcnews/aunty-pl#readme","repository":{"type":"git","url":"git+https://github.com/abcnews/aunty-pl.git"},"contributors":[{"name":"Colin Gourlay","email":"gourlay.colin@abc.net.au"}],"bugs":{"url":"https://github.com/abcnews/aunty-pl/issues"},"license":"MIT","readme":"# @abcnews/aunty-pl\n\nTools to extend [@abcnews/aunty](https://github.com/abcnews/aunty) for Presentation Layer\n\n## Prerequisites\n\n1. Install this package into your `react` **aunty** project as a development dependency\n\n```sh\nnpm install -D @abcnews/aunty-pl\n```\n\n2. Create (or update) your `aunty.config.js` file so that it contains at a minimum:\n\n```js\nmodule.exports = {\n  type: 'react',\n  webpack: config => {\n    return config;\n  }\n};\n```\n\nIf you had to create the file above, remember to delete the now-redundant `aunty` property from your `package.json` file.\n\n## Usage\n\nTo enable aunty to build projects that depend on `@abcaustralia/*` component libraries, import the `applyWebpackRules` utility from this package into your `aunty.config.js`, and call it with your Webpack config object:\n\n```js\nconst { applyWebpackRules } = require('@abcnews/aunty-pl');\n\nmodule.exports = {\n  type: 'react',\n  webpack: config => {\n    applyWebpackRules(config);\n\n    return config;\n  }\n};\n```\n\nThe effects of applying this update are:\n\n- The existing Webpack rule that handles `.css` / `.scss` files excludes the `@abcaustralia` package namespace.\n- A new rule is added specifically for handling `.css` files under the `@abcaustralia` package namespace, which applies, in order:\n  1. their `postcss-loader`\n  2. our `css-loader` with their options (they use CSS modules)\n  3. our last loader, which will either be `MiniCssExtractPlugin`'s loader or `style-loader` (default), depending on whether our project is configured to extract CSS into separate assets or not.\n","readmeFilename":"README.md"}