initial commit
This commit is contained in:
24
node_modules/postcss-unique-selectors/CHANGELOG.md
generated
vendored
Normal file
24
node_modules/postcss-unique-selectors/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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.
|
||||
|
||||
# 2.0.2
|
||||
|
||||
* Now compiled with babel 6.
|
||||
|
||||
# 2.0.1
|
||||
|
||||
* Replaced javascript-natural-sort with alphanum-sort (thanks to @TrySound).
|
||||
|
||||
# 2.0.0
|
||||
|
||||
* Upgraded to PostCSS 5.
|
||||
|
||||
# 1.0.1
|
||||
|
||||
* Removed an unnecessary dependency on css-list.
|
||||
|
||||
# 1.0.0
|
||||
|
||||
* Initial release.
|
||||
22
node_modules/postcss-unique-selectors/LICENSE-MIT
generated
vendored
Normal file
22
node_modules/postcss-unique-selectors/LICENSE-MIT
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
Copyright (c) Ben Briggs <beneb.info@gmail.com> (http://beneb.info)
|
||||
|
||||
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.
|
||||
46
node_modules/postcss-unique-selectors/README.md
generated
vendored
Normal file
46
node_modules/postcss-unique-selectors/README.md
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
# [postcss][postcss]-unique-selectors
|
||||
|
||||
> Ensure CSS selectors are unique.
|
||||
|
||||
## Install
|
||||
|
||||
With [npm](https://npmjs.org/package/postcss-unique-selectors) do:
|
||||
|
||||
```
|
||||
npm install postcss-unique-selectors --save
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
Selectors are sorted naturally, and deduplicated:
|
||||
|
||||
### Input
|
||||
|
||||
```css
|
||||
h1,h3,h2,h1 {
|
||||
color: red
|
||||
}
|
||||
```
|
||||
|
||||
### Output
|
||||
|
||||
```css
|
||||
h1,h2,h3 {
|
||||
color: red
|
||||
}
|
||||
```
|
||||
|
||||
## 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 © [Ben Briggs](http://beneb.info)
|
||||
|
||||
[postcss]: https://github.com/postcss/postcss
|
||||
26
node_modules/postcss-unique-selectors/dist/index.js
generated
vendored
Normal file
26
node_modules/postcss-unique-selectors/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var _postcss = require('postcss');
|
||||
|
||||
var _alphanumSort = require('alphanum-sort');
|
||||
|
||||
var _alphanumSort2 = _interopRequireDefault(_alphanumSort);
|
||||
|
||||
var _uniqs = require('uniqs');
|
||||
|
||||
var _uniqs2 = _interopRequireDefault(_uniqs);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function unique(rule) {
|
||||
rule.selector = (0, _alphanumSort2.default)((0, _uniqs2.default)(rule.selectors), { insensitive: true }).join();
|
||||
}
|
||||
|
||||
exports.default = (0, _postcss.plugin)('postcss-unique-selectors', () => {
|
||||
return css => css.walkRules(unique);
|
||||
});
|
||||
module.exports = exports['default'];
|
||||
69
node_modules/postcss-unique-selectors/package.json
generated
vendored
Normal file
69
node_modules/postcss-unique-selectors/package.json
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"_from": "postcss-unique-selectors@^4.0.1",
|
||||
"_id": "postcss-unique-selectors@4.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-+JanVaryLo9QwZjKrmJgkI4Fn8SBgRO6WXQBJi7KiAVPlmxikB5Jzc4EvXMT2H0/m0RjrVVm9rGNhZddm/8Spg==",
|
||||
"_location": "/postcss-unique-selectors",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "postcss-unique-selectors@^4.0.1",
|
||||
"name": "postcss-unique-selectors",
|
||||
"escapedName": "postcss-unique-selectors",
|
||||
"rawSpec": "^4.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^4.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/cssnano-preset-default"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-4.0.1.tgz",
|
||||
"_shasum": "9446911f3289bfd64c6d680f073c03b1f9ee4bac",
|
||||
"_spec": "postcss-unique-selectors@^4.0.1",
|
||||
"_where": "D:\\Air66 Files\\dev_sites\\www.airurl.dev.cc\\user\\plugins\\air66Theme\\node_modules\\cssnano-preset-default",
|
||||
"author": {
|
||||
"name": "Ben Briggs",
|
||||
"email": "beneb.info@gmail.com",
|
||||
"url": "http://beneb.info"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/cssnano/cssnano/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"alphanum-sort": "^1.0.0",
|
||||
"postcss": "^7.0.0",
|
||||
"uniqs": "^2.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Ensure CSS selectors are unique.",
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.0.0",
|
||||
"cross-env": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"files": [
|
||||
"LICENSE-MIT",
|
||||
"dist"
|
||||
],
|
||||
"homepage": "https://github.com/cssnano/cssnano",
|
||||
"keywords": [
|
||||
"css",
|
||||
"postcss",
|
||||
"postcss-plugin"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
"name": "postcss-unique-selectors",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/cssnano/cssnano.git"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublish": "cross-env BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/"
|
||||
},
|
||||
"version": "4.0.1"
|
||||
}
|
||||
Reference in New Issue
Block a user