mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 13:42:20 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
41
web/node_modules/postcss-color-rebeccapurple/CHANGELOG.md
generated
vendored
Executable file
41
web/node_modules/postcss-color-rebeccapurple/CHANGELOG.md
generated
vendored
Executable 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
web/node_modules/postcss-color-rebeccapurple/LICENSE
generated
vendored
Executable file
20
web/node_modules/postcss-color-rebeccapurple/LICENSE
generated
vendored
Executable 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
web/node_modules/postcss-color-rebeccapurple/README.md
generated
vendored
Executable file
68
web/node_modules/postcss-color-rebeccapurple/README.md
generated
vendored
Executable file
|
@ -0,0 +1,68 @@
|
|||
# postcss-color-rebeccapurple [](https://cssdb.org/#rebeccapurple-color) [](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 Meyer’s 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
web/node_modules/postcss-color-rebeccapurple/index.js
generated
vendored
Executable file
28
web/node_modules/postcss-color-rebeccapurple/index.js
generated
vendored
Executable 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()
|
||||
}
|
||||
})
|
||||
})
|
43
web/node_modules/postcss-color-rebeccapurple/package.json
generated
vendored
Normal file
43
web/node_modules/postcss-color-rebeccapurple/package.json
generated
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"name": "postcss-color-rebeccapurple",
|
||||
"version": "4.0.1",
|
||||
"description": "PostCSS plugin to transform W3C CSS rebeccapurple color to more compatible CSS (rgb())",
|
||||
"keywords": [
|
||||
"css",
|
||||
"postcss",
|
||||
"postcss-plugin",
|
||||
"color",
|
||||
"colour",
|
||||
"rgb",
|
||||
"rebeccapurple"
|
||||
],
|
||||
"author": "Maxime Thirouin",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/postcss/postcss-color-rebeccapurple.git"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"postcss": "^7.0.2",
|
||||
"postcss-values-parser": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jscs": "^3.0.7",
|
||||
"jshint": "^2.9.6",
|
||||
"npmpub": "^4.1.0",
|
||||
"tape": "^4.9.1"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "npm run jscs && npm run jshint",
|
||||
"jscs": "jscs index.js test/index.js",
|
||||
"jshint": "jshint . --exclude-path .gitignore",
|
||||
"test": "npm run lint && tape test",
|
||||
"release": "npmpub"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue