{"name":"postcss-icss-keyframes","version":"0.2.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":"311d209d4af8f53a1e353cbb57b0ddb487c4d65e","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.2.0","_shasum":"1f5e4dcf38d0c4c90b51fb778cf77a65fbca86a7","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.3.1","_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"dist":{"shasum":"1f5e4dcf38d0c4c90b51fb778cf77a65fbca86a7","tarball":"http://registry-npm.ywwl.com/postcss-icss-keyframes/download/postcss-icss-keyframes-0.2.0.tgz","integrity":"sha512-hih22Cu9mEs6FYMNBavL/hweiSYxPzuzY9NakgPHvSdWAeXZJi8MNpYKsZXjjdt8iNTsiT1CHasnt3eJqW/NHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSV7SIWMnUe2po9Dx2Ux7L7JNGGtmS17Nft0ScfVR4cgIgQVvIZXB/XirmtevrzXFmZ4y8jFHjQFY/WfjdMTFh+Ns="}],"size":3210,"noattachment":false,"key":"/postcss-icss-keyframes/-/postcss-icss-keyframes-0.2.0.tgz"},"maintainers":[{"name":"geelen","email":"hi@glenmaddern.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-icss-keyframes-0.2.0.tgz_1496870063694_0.0725721837952733"},"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":1496870064644,"_cnpm_publish_time":1496870064644,"dist-tags":{"latest":"0.2.1"}}