{"name":"postcss-icss-keyframes","version":"0.1.0","description":"PostCSS plugin for css-modules to local-scope keyframes","main":"lib/index.js","files":["lib"],"scripts":{"build":"babel --out-dir lib src","test":"jest --coverage","precommit":"lint-staged","prepublish":"yarn test && yarn run build"},"lint-staged":{"*.js":["eslint","prettier --write","git add"]},"eslintConfig":{"parserOptions":{"ecmaVersion":6,"sourceType":"module"},"extends":"eslint:recommended"},"babel":{"presets":[["env",{"targets":{"node":4}}]]},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-icss-keyframes.git"},"author":{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"},"license":"MIT","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-preset-env":"^1.5.1","eslint":"^3.19.0","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^3.5.1","prettier":"^1.3.1","strip-indent":"^2.0.0"},"dependencies":{"icss-utils":"^2.1.0","postcss":"^6.0.1","postcss-value-parser":"^3.3.0"},"gitHead":"18d2c15ba7b6d8bb141e6f6040c21e84ffae17c9","bugs":{"url":"https://github.com/css-modules/postcss-icss-keyframes/issues"},"homepage":"https://github.com/css-modules/postcss-icss-keyframes#readme","_id":"postcss-icss-keyframes@0.1.0","_shasum":"aae4b8aae456b5863b2a79a3d6355fbead848878","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.3.1","_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"dist":{"shasum":"aae4b8aae456b5863b2a79a3d6355fbead848878","tarball":"http://registry-npm.ywwl.com/postcss-icss-keyframes/download/postcss-icss-keyframes-0.1.0.tgz","integrity":"sha512-Z/AhkWZ8GnXtTy9y8+hFesauKZLxHzOGaH79bF7c3jcVMnDr6RxTMOMT5dURE7Sz7USEL8fMyDYm8AUh1mTcwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCN9U7jx3rwjAaDxrlGmFeWhbz3kQ2b9KjK9lWjjR1CdwIhAMOC14tyQPVNkH47bySLyCoq1Cyrmf3RvP7a+5GvGn/K"}],"size":2999,"noattachment":false,"key":"/postcss-icss-keyframes/-/postcss-icss-keyframes-0.1.0.tgz"},"maintainers":[{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-icss-keyframes-0.1.0.tgz_1496270963638_0.4397791896481067"},"directories":{},"readme":"# postcss-icss-keyframes [![Build Status][travis-img]][travis]\r\n\r\n[PostCSS]: https://github.com/postcss/postcss\r\n[travis-img]: https://travis-ci.org/css-modules/postcss-icss-keyframes.svg\r\n[travis]: https://travis-ci.org/css-modules/postcss-icss-keyframes\r\n\r\nPostCSS plugin for css-modules to local-scope keyframes.\r\n\r\n```css\r\n@keyframes foo {\r\n  from { width: 10px; }\r\n  to { width: 100px; }\r\n}\r\n\r\n/* transforms to */\r\n\r\n:export {\r\n  foo: __scope__foo\r\n}\r\n@keyframes __scope__foo {\r\n  from { width: 10px; }\r\n  to { width: 100px; }\r\n}\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\npostcss([ require('postcss-icss-keyframes')(options) ])\r\n```\r\n\r\nSee [PostCSS] docs for examples for your environment.\r\n\r\n### Options\r\n\r\n#### generateScopeName(keyframesName, filepath, css)\r\n\r\nConverts every new animation name in `@keyframes` defintion to global alias.\r\nBy default returns `__filename__keyframesName`.\r\n\r\n### Importing animation name from another file\r\n\r\nVia [postcss-modules-values](https://github.com/css-modules/postcss-modules-values)\r\n\r\n```\r\n/* imported.css */\r\n@keyframes foo {}\r\n\r\n/* importer.css */\r\n@value foo from './imported.css';\r\n.bar {\r\n  animation-name: foo;\r\n}\r\n```\r\n\r\n### Using globally defined keyframes\r\n\r\nAnimation names are not replaced if css module does not contain `@keyframes` or `@value` defintions with the same name.\r\n\r\n```\r\n.foo {\r\n  animation-name: fade-in;\r\n}\r\n```\r\n\r\n### Messages\r\n\r\npostcss-icss-keyframes passes result.messages for each defined keyframes\r\n\r\n```\r\n{\r\n  plugin: 'postcss-icss-keyframes',\r\n  type: 'icss-scoped',\r\n  name: string, // local name\r\n  value: string // scoped name\r\n}\r\n```\r\n\r\n# License\r\n\r\nMIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)\r\n","publish_time":1496270964724,"_cnpm_publish_time":1496270964724,"dist-tags":{"latest":"0.2.1"}}