applying transfer to react app

This commit is contained in:
Tyler Koenig
2021-09-20 16:54:47 -04:00
parent 8819f31dd0
commit c612b7d702
37373 changed files with 3775588 additions and 2871 deletions
+41
View File
@@ -0,0 +1,41 @@
# 4.0.1 - 2018-09-18
- Updated: PostCSS Values Parser v2+
# 4.0.0 - 2018-09-17
- Updated: Support for PostCSS v7+
- Updated: Support for Node v6+
# 3.1.0 - 2018-05-01
- Improve `rebeccapurple` pre-parse word detection
- Switched from `postcss-value-parser` to `postcss-values-parser`
- Bump `postcss` from `^6.0.1` to `^6.0.22`
# 3.0.0 - 2017-05-10
- Added: compatibility with postcss v6.x
# 2.0.1 - 2016-11-28
- Bump `color` dependency version
([postcss-cssnext/#327](https://github.com/MoOx/postcss-cssnext/issues/327) - @wtgtybhertgeghgtwtg).
# 2.0.0 - 2015-09-08
- Added: compatibility with postcss v5.x
- Removed: compatiblity with postcss v4.x
# 1.2.0 - 2015-08-13
- Added: compatibility with postcss v4.1.x
([#4](https://github.com/postcss/postcss-color-rebeccapurple/pull/4))
# 1.1.0 - 2014-11-25
- Enhanced exceptions
# 1.0.0 - 2014-10-04
Initial release from [postcss-color](https://github.com/postcss/postcss-color)
+20
View File
@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2014 Maxime Thirouin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+68
View File
@@ -0,0 +1,68 @@
# postcss-color-rebeccapurple [![CSS Standard Status](https://cssdb.org/badge/rebeccapurple-color.svg)](https://cssdb.org/#rebeccapurple-color) [![Build Status](https://api.travis-ci.org/postcss/postcss-color-rebeccapurple.svg)](https://travis-ci.org/postcss/postcss-color-rebeccapurple)
> [PostCSS](https://github.com/postcss/postcss) plugin to transform [W3C CSS `rebeccapurple` color](https://www.w3.org/TR/css-color-4/#valdef-color-rebeccapurple) to more compatible CSS (rgb()).
## Why this plugin ?
If you did some CSS, I'm sure you know who [Eric Meyer](https://en.wikipedia.org/wiki/Eric_A._Meyer) is, & what he did for this language.
In memory of [Eric Meyers daughter](https://meyerweb.com/eric/thoughts/2014/06/09/in-memoriam-2/), [W3C added new color rebeccapurple to CSS 4 Color Module](https://lists.w3.org/Archives/Public/www-style/2014Jun/0312.html).
## Installation
```console
$ npm install postcss-color-rebeccapurple
```
## Usage
```js
// dependencies
var fs = require("fs")
var postcss = require("postcss")
var colorRebeccapurple = require("postcss-color-rebeccapurple")
// css to be processed
var css = fs.readFileSync("input.css", "utf8")
// process css
var output = postcss()
.use(colorRebeccapurple())
.process(css)
.css
```
Using this `input.css`:
```css
body {
color: rebeccapurple
}
```
you will get:
```css
body {
color: rgb(102, 51, 153);
}
```
Checkout [tests](test) for more examples.
---
## Contributing
Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.
```console
$ git clone https://github.com/postcss/postcss-color-rebeccapurple.git
$ git checkout -b patch-1
$ npm install
$ npm test
```
## [Changelog](CHANGELOG.md)
## [License](LICENSE)
+28
View File
@@ -0,0 +1,28 @@
/**
* Module dependencies.
*/
const postcss = require("postcss")
const valueParser = require("postcss-values-parser")
const color = "#639"
const regexp = /(^|[^\w-])rebeccapurple([^\w-]|$)/
/**
* PostCSS plugin to convert colors
*/
module.exports = postcss.plugin("postcss-color-rebeccapurple", () => (style) => {
style.walkDecls((decl) => {
const value = decl.value;
if (value && regexp.test(value)) {
const valueAST = valueParser(value).parse()
valueAST.walk(node => {
if (node.type === "word" && node.value === "rebeccapurple") {
node.value = color
}
})
decl.value = valueAST.toString()
}
})
})
+74
View File
@@ -0,0 +1,74 @@
{
"_from": "postcss-color-rebeccapurple@^4.0.1",
"_id": "postcss-color-rebeccapurple@4.0.1",
"_inBundle": false,
"_integrity": "sha512-aAe3OhkS6qJXBbqzvZth2Au4V3KieR5sRQ4ptb2b2O8wgvB3SJBsdG+jsn2BZbbwekDG8nTfcCNKcSfe/lEy8g==",
"_location": "/postcss-color-rebeccapurple",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "postcss-color-rebeccapurple@^4.0.1",
"name": "postcss-color-rebeccapurple",
"escapedName": "postcss-color-rebeccapurple",
"rawSpec": "^4.0.1",
"saveSpec": null,
"fetchSpec": "^4.0.1"
},
"_requiredBy": [
"/postcss-preset-env"
],
"_resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-4.0.1.tgz",
"_shasum": "c7a89be872bb74e45b1e3022bfe5748823e6de77",
"_spec": "postcss-color-rebeccapurple@^4.0.1",
"_where": "/Users/tylerkoenig/Code/personal/react-scss2/node_modules/postcss-preset-env",
"author": {
"name": "Maxime Thirouin"
},
"bugs": {
"url": "https://github.com/postcss/postcss-color-rebeccapurple/issues"
},
"bundleDependencies": false,
"dependencies": {
"postcss": "^7.0.2",
"postcss-values-parser": "^2.0.0"
},
"deprecated": false,
"description": "PostCSS plugin to transform W3C CSS rebeccapurple color to more compatible CSS (rgb())",
"devDependencies": {
"jscs": "^3.0.7",
"jshint": "^2.9.6",
"npmpub": "^4.1.0",
"tape": "^4.9.1"
},
"engines": {
"node": ">=6.0.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/postcss/postcss-color-rebeccapurple#readme",
"keywords": [
"css",
"postcss",
"postcss-plugin",
"color",
"colour",
"rgb",
"rebeccapurple"
],
"license": "MIT",
"name": "postcss-color-rebeccapurple",
"repository": {
"type": "git",
"url": "git+https://github.com/postcss/postcss-color-rebeccapurple.git"
},
"scripts": {
"jscs": "jscs index.js test/index.js",
"jshint": "jshint . --exclude-path .gitignore",
"lint": "npm run jscs && npm run jshint",
"release": "npmpub",
"test": "npm run lint && tape test"
},
"version": "4.0.1"
}