0.2.0 - Mid migration

This commit is contained in:
Daniel Mason 2022-04-25 14:47:15 +12:00
parent 139e6a915e
commit 7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions

View file

@ -0,0 +1,18 @@
# 4.0.0-rc.0
* Breaking: Drops support for Node 0.12, we now require at least Node 4.
* Breaking: Update PostCSS to 6.0.0.
# 1.1.1
* Performance tweaks; test that `node.parent` is equal to the AST rather than
checking its type is `root`, and use the AST directly to prepend the
`@charset` to, rather than using the superfluous `root()` method.
# 1.1.0
* Added `add` option (thanks to @ben-eb)
# 1.0.0
* Initial release.

20
web/node_modules/postcss-normalize-charset/LICENSE generated vendored Normal file
View file

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright 2015 Bogdan Chadkin <trysound@yandex.ru>
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.

43
web/node_modules/postcss-normalize-charset/README.md generated vendored Normal file
View file

@ -0,0 +1,43 @@
# postcss-normalize-charset
Add necessary or remove extra charset with PostCSS
```css
a{
content: "©";
}
```
```css
@charset "utf-8";
a{
content: "©";
}
```
## API
### normalizeCharset([options])
#### options
##### add
Type: `boolean`
Default: `true`
Pass `false` to stop the module from adding a `@charset` declaration if it was
missing from the file (and the file contained non-ascii characters).
## Usage
See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
examples for your environment.
## Contributors
See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
## License
MIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)

View file

@ -0,0 +1,46 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _postcss = require('postcss');
var _postcss2 = _interopRequireDefault(_postcss);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
let charset = 'charset';
exports.default = _postcss2.default.plugin('postcss-normalize-' + charset, (opts = {}) => {
return css => {
let charsetRule;
let nonAsciiNode;
let nonAscii = /[^\x00-\x7F]/;
css.walk(node => {
if (node.type === 'atrule' && node.name === charset) {
if (!charsetRule) {
charsetRule = node;
}
node.remove();
} else if (!nonAsciiNode && node.parent === css && nonAscii.test(node)) {
nonAsciiNode = node;
}
});
if (nonAsciiNode) {
if (!charsetRule && opts.add !== false) {
charsetRule = _postcss2.default.atRule({
name: charset,
params: '"utf-8"'
});
}
if (charsetRule) {
charsetRule.source = nonAsciiNode.source;
css.prepend(charsetRule);
}
}
};
});
module.exports = exports['default'];

View file

@ -0,0 +1,36 @@
{
"name": "postcss-normalize-charset",
"version": "4.0.1",
"description": "Add necessary or remove extra charset with PostCSS",
"keywords": [
"postcss",
"css",
"postcss-plugin",
"charset"
],
"author": "Bogdan Chadkin <trysound@yandex.ru>",
"files": [
"dist"
],
"license": "MIT",
"repository": "cssnano/cssnano",
"bugs": {
"url": "https://github.com/cssnano/cssnano/issues"
},
"homepage": "https://github.com/cssnano/cssnano",
"dependencies": {
"postcss": "^7.0.0"
},
"devDependencies": {
"babel-cli": "^6.0.0",
"cross-env": "^5.0.0",
"postcss-devtools": "^1.0.0"
},
"main": "dist/index.js",
"scripts": {
"prepublish": "cross-env BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/"
},
"engines": {
"node": ">=6.9.0"
}
}