{"name":"postcss-modules-extract-imports","version":"1.0.0-beta2","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":"^5.0.4"},"devDependencies":{"babel":"^5.4.7","babel-eslint":"^4.1.3","babel-istanbul":"^0.3.20","babelify":"^6.1.2","chokidar-cli":"^1.0.1","codecov.io":"^0.1.2","coveralls":"^2.11.2","eslint":"^1.5.0","mocha":"^2.2.5"},"gitHead":"14a199c0e6265652e629f99c9de028dcbcf88b8b","_id":"postcss-modules-extract-imports@1.0.0-beta2","_shasum":"f1d3533eea3fe79dffa97a2371cc916393401dc5","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.2","_npmUser":{"name":"geelen","email":"hi@glenmaddern.com"},"dist":{"shasum":"f1d3533eea3fe79dffa97a2371cc916393401dc5","tarball":"http://registry-npm.ywwl.com/postcss-modules-extract-imports/download/postcss-modules-extract-imports-1.0.0-beta2.tgz","integrity":"sha512-BALkN1RVvLVj/FifXJmBScL2elWG6e6G3DWRzDO7JHdamBlCKIEqMMrd+d4ruQbVCOUHn3ERNPr2eLlKZhmLsg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4SE8RBaicQnXCMM+9UzwrX/GlZ5fLWatDn5c+3YWxtAiEAut0nnSxE6kd9RMFP7FuTLOMkROmc7MHoQniL7n09DQE="}],"size":2554,"noattachment":false,"key":"/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.0.0-beta2.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":1442674895014,"_cnpm_publish_time":1442674895014,"dist-tags":{"beta":"1.0.0-beta1","latest":"3.1.0","next":"3.0.0-rc.3"}}