style Dashboard
This commit is contained in:
19
node_modules/postcss-unique-selectors/CHANGELOG.md
generated
vendored
Executable file
19
node_modules/postcss-unique-selectors/CHANGELOG.md
generated
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
# 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
Executable file
22
node_modules/postcss-unique-selectors/LICENSE-MIT
generated
vendored
Executable 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.
|
||||
50
node_modules/postcss-unique-selectors/README.md
generated
vendored
Executable file
50
node_modules/postcss-unique-selectors/README.md
generated
vendored
Executable file
@@ -0,0 +1,50 @@
|
||||
# [postcss][postcss]-unique-selectors [][ci] [][npm] [][deps]
|
||||
|
||||
> 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.
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests are welcome. If you add functionality, then please add unit tests
|
||||
to cover it.
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Ben Briggs](http://beneb.info)
|
||||
|
||||
[ci]: https://travis-ci.org/ben-eb/postcss-unique-selectors
|
||||
[deps]: https://gemnasium.com/ben-eb/postcss-unique-selectors
|
||||
[npm]: http://badge.fury.io/js/postcss-unique-selectors
|
||||
[postcss]: https://github.com/postcss/postcss
|
||||
26
node_modules/postcss-unique-selectors/dist/index.js
generated
vendored
Executable file
26
node_modules/postcss-unique-selectors/dist/index.js
generated
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = 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', function () {
|
||||
return function (css) {
|
||||
return css.walkRules(unique);
|
||||
};
|
||||
});
|
||||
module.exports = exports['default'];
|
||||
89
node_modules/postcss-unique-selectors/package.json
generated
vendored
Executable file
89
node_modules/postcss-unique-selectors/package.json
generated
vendored
Executable file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"postcss-unique-selectors@2.0.2",
|
||||
"/Applications/XAMPP/xamppfiles/htdocs/wordpress/latehome"
|
||||
]
|
||||
],
|
||||
"_from": "postcss-unique-selectors@2.0.2",
|
||||
"_id": "postcss-unique-selectors@2.0.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-mB1X0p3csz57Hf4f1DuGSfkzyh0=",
|
||||
"_location": "/postcss-unique-selectors",
|
||||
"_phantomChildren": {
|
||||
"chalk": "1.1.3",
|
||||
"js-base64": "2.5.1",
|
||||
"source-map": "0.5.7"
|
||||
},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "postcss-unique-selectors@2.0.2",
|
||||
"name": "postcss-unique-selectors",
|
||||
"escapedName": "postcss-unique-selectors",
|
||||
"rawSpec": "2.0.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.0.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/cssnano"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-2.0.2.tgz",
|
||||
"_spec": "2.0.2",
|
||||
"_where": "/Applications/XAMPP/xamppfiles/htdocs/wordpress/latehome",
|
||||
"author": {
|
||||
"name": "Ben Briggs",
|
||||
"email": "beneb.info@gmail.com",
|
||||
"url": "http://beneb.info"
|
||||
},
|
||||
"ava": {
|
||||
"require": "babel-core/register"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ben-eb/postcss-unique-selectors/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"alphanum-sort": "^1.0.1",
|
||||
"postcss": "^5.0.4",
|
||||
"uniqs": "^2.0.0"
|
||||
},
|
||||
"description": "Ensure CSS selectors are unique.",
|
||||
"devDependencies": {
|
||||
"ava": "^0.11.0",
|
||||
"babel-cli": "^6.4.0",
|
||||
"babel-core": "^6.4.0",
|
||||
"babel-plugin-add-module-exports": "^0.1.2",
|
||||
"babel-preset-es2015": "^6.3.13",
|
||||
"babel-preset-es2015-loose": "^7.0.0",
|
||||
"babel-preset-stage-0": "^6.3.13",
|
||||
"del-cli": "^0.1.2",
|
||||
"eslint": "^1.10.3",
|
||||
"eslint-config-cssnano": "^1.0.0"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "cssnano"
|
||||
},
|
||||
"files": [
|
||||
"LICENSE-MIT",
|
||||
"dist"
|
||||
],
|
||||
"homepage": "https://github.com/ben-eb/postcss-unique-selectors",
|
||||
"keywords": [
|
||||
"css",
|
||||
"postcss",
|
||||
"postcss-plugin"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
"name": "postcss-unique-selectors",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ben-eb/postcss-unique-selectors.git"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublish": "de dist && BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/",
|
||||
"pretest": "eslint src",
|
||||
"test": "ava src/__tests__"
|
||||
},
|
||||
"version": "2.0.2"
|
||||
}
|
||||
Reference in New Issue
Block a user