{"name":"postcss-modules-extract-imports","version":"1.0.0-beta1","description":"A CSS Modules transform to extract local aliases for inline imports","main":"lib/index.js","scripts":{"lint":"eslint src","build":"babel --out-dir lib src","watch":"chokidar src -c 'npm run build'","posttest":"npm run lint && npm run build","test":"mocha --compilers js:babel/register","autotest":"chokidar src test -c 'npm test'","precover":"npm run lint && npm run build","cover":"babel-istanbul cover node_modules/.bin/_mocha","travis":"npm run cover -- --report lcovonly","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-modules-extract-imports.git"},"keywords":["css-modules","postcss","plugin"],"files":["lib"],"author":{"name":"Glen Maddern"},"license":"ISC","bugs":{"url":"https://github.com/css-modules/postcss-modules-extract-imports/issues"},"homepage":"https://github.com/css-modules/postcss-modules-extract-imports","dependencies":{"postcss":"^4.1.11"},"devDependencies":{"babel":"^5.4.7","babel-eslint":"^3.1.9","babel-istanbul":"^0.2.10","babelify":"^6.1.2","chokidar-cli":"^0.2.1","codecov.io":"^0.1.2","coveralls":"^2.11.2","eslint":"^0.22.1","mocha":"^2.2.5"},"gitHead":"e39f583751171abfcb8a0502ad7f005283e5b884","_id":"postcss-modules-extract-imports@1.0.0-beta1","_shasum":"c60e428bab9734c4e1ea8da050f73d44ac32739b","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.2","_npmUser":{"name":"geelen","email":"hi@glenmaddern.com"},"dist":{"shasum":"c60e428bab9734c4e1ea8da050f73d44ac32739b","tarball":"http://registry-npm.ywwl.com/postcss-modules-extract-imports/download/postcss-modules-extract-imports-1.0.0-beta1.tgz","integrity":"sha512-sFsJjVODjxIZz4/J0JFJHhXed183k8VwBv3IDFZmvKeoly4uyjg8Dxjz71tiXmzitzUY4nSXZyPrbGHaa36zsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFBMxE+Vxl+9ksUDQZaPonCep5Zs+iMFNgxXnqyH5BaxAiAlcfxKeOb8CBn6Pay/AF/95wCxSgvoqlib3WhNQrQKdg=="}],"size":2561,"noattachment":false,"key":"/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.0.0-beta1.tgz"},"maintainers":[{"name":"geelen","email":"hi@glenmaddern.com"}],"directories":{},"readme":"# CSS Modules: Extract Imports\n\n[![Build Status](https://travis-ci.org/css-modules/postcss-modules-extract-imports.svg?branch=master)](https://travis-ci.org/css-modules/postcss-modules-extract-imports)\n\nTransforms:\n\n```css\n:local(.continueButton) {\n  composes: button from \"library/button.css\";\n  color: green;\n}\n```\n\ninto:\n\n```css\n:import(\"library/button.css\") {\n  button: __tmp_487387465fczSDGHSABb;\n}\n:local(.continueButton) {\n  composes: __tmp_487387465fczSDGHSABb;\n  color: green;\n}\n```\n\n## Specification\n\n- Only a certain whitelist of properties are inspected. Currently, that whitelist is `['composes']` alone.\n- An extend-import has the following format:\n\n```\ncomposes: className [... className] from \"path/to/file.css\",  className [... className], className [... className] from global;\n```\n\n## Options\n\n- `failOnWrongOrder` `bool` generates exception for unpredictable imports order.\n\n```css\n.aa {\n  composes: b from \"./b.css\";\n  composes: c from \"./c.css\";\n}\n\n.bb {\n  /* \"b.css\" should be before \"c.css\" in this case */\n  composes: c from \"./c.css\";\n  composes: b from \"./b.css\";\n}\n```\n\n## Building\n\n```\nnpm install\nnpm test\n```\n\n[![Build Status](https://travis-ci.org/css-modules/postcss-modules-extract-imports.svg?branch=master)](https://travis-ci.org/css-modules/postcss-modules-extract-imports)\n\n- Lines: [![Coverage Status](https://coveralls.io/repos/css-modules/postcss-modules-extract-imports/badge.svg?branch=master)](https://coveralls.io/r/css-modules/postcss-modules-extract-imports?branch=master)\n- Statements: [![codecov.io](http://codecov.io/github/css-modules/postcss-modules-extract-imports/coverage.svg?branch=master)](http://codecov.io/github/css-modules/postcss-modules-extract-imports?branch=master)\n\n## License\n\nISC\n\n## With thanks\n\n- Mark Dalgleish\n- Tobias Koppers\n- Guy Bedford\n\n---\n\nGlen Maddern, 2015.\n","publish_time":1439608389083,"_cnpm_publish_time":1439608389083,"dist-tags":{"beta":"1.0.0-beta1","latest":"3.1.0","next":"3.0.0-rc.3"}}