motion
Version:
motion - moving development forward
83 lines (82 loc) • 4.58 kB
JSON
{
"_args": [
[
"postcss-modules-extract-imports@https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.0.0.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "postcss-modules-extract-imports@>=1.0.0 <2.0.0",
"_id": "postcss-modules-extract-imports@1.0.0",
"_inCache": true,
"_location": "/postcss-modules-extract-imports",
"_phantomChildren": {},
"_requested": {
"name": "postcss-modules-extract-imports",
"raw": "postcss-modules-extract-imports@https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.0.0.tgz",
"rawSpec": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.0.0.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.0.0.tgz",
"type": "remote"
},
"_requiredBy": [
"/css-loader"
],
"_resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.0.0.tgz",
"_shasum": "5b07f368e350cda6fd5c8844b79123a7bd3e37be",
"_shrinkwrap": null,
"_spec": "postcss-modules-extract-imports@https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.0.0.tgz",
"_where": "/Users/nw/flint/packages/flint",
"author": {
"name": "Glen Maddern"
},
"bugs": {
"url": "https://github.com/css-modules/postcss-modules-extract-imports/issues"
},
"dependencies": {
"postcss": "^5.0.4"
},
"description": "A CSS Modules transform to extract local aliases for inline imports",
"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"
},
"files": [
"lib"
],
"homepage": "https://github.com/css-modules/postcss-modules-extract-imports",
"keywords": [
"css-modules",
"plugin",
"postcss"
],
"license": "ISC",
"main": "lib/index.js",
"name": "postcss-modules-extract-imports",
"optionalDependencies": {},
"readme": "# CSS Modules: Extract Imports\n\n[](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```\ncomposes: className [... className] from \"path/to/file.css\";\n```\n\n## Building\n\n```\nnpm install\nnpm build\nnpm test\n```\n\n[](https://travis-ci.org/css-modules/postcss-modules-extract-imports)\n\n* Lines: [](https://coveralls.io/r/css-modules/postcss-modules-extract-imports?branch=master)\n* Statements: [](http://codecov.io/github/css-modules/postcss-modules-extract-imports?branch=master)\n\n## Development\n\n- `npm watch` will watch `src` for changes and rebuild\n- `npm autotest` will watch `src` and `test` for changes and retest\n\n## License\n\nISC\n\n## With thanks\n\n- Mark Dalgleish\n- Tobias Koppers\n- Guy Bedford\n\n---\nGlen Maddern, 2015.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/css-modules/postcss-modules-extract-imports.git"
},
"scripts": {
"autotest": "chokidar src test -c 'npm test'",
"build": "babel --out-dir lib src",
"cover": "babel-istanbul cover node_modules/.bin/_mocha",
"lint": "eslint src",
"posttest": "npm run lint && npm run build",
"precover": "npm run lint && npm run build",
"prepublish": "npm run build",
"test": "mocha --compilers js:babel/register",
"travis": "npm run cover -- --report lcovonly",
"watch": "chokidar src -c 'npm run build'"
},
"version": "1.0.0"
}