This commit is contained in:
oitsjustjose 2017-02-26 17:06:42 -05:00
commit 6b60015c02
9588 changed files with 1149251 additions and 49 deletions

103
node_modules/gulp-clean-css/CHANGELOG.md generated vendored Normal file
View file

@ -0,0 +1,103 @@
# 2.4.0 (02/05/2017)
- upgrade to clean-css 4.x
- devdep updates
# 2.3.1 (12/17/2016)
- merge fix for #24 (https://github.com/scniro/gulp-clean-css/pull/24)
- clean-css release update, 3.4.22 => 3.4.23
# 2.3.0 (12/12/2016)
- bug fix #21 => https://github.com/scniro/gulp-clean-css/issues/21
- adding back vinyl-sourcemaps-apply
# 2.2.2 (12/12/2016)
- clean-css release update, 3.4.21 => 3.4.22
# 2.2.1 (12/09/2016)
- bug fix #18 => https://github.com/scniro/gulp-clean-css/issues/18#issuecomment-266127536
# 2.2.0 (12/08/2016)
- remove vinyl-sourcemaps-apply in favor of clean-css sourcemap engine
- bug fix #1 => https://github.com/scniro/gulp-clean-css/issues/1
- bug fix #7 => https://github.com/scniro/gulp-clean-css/issues/7
- bug fix #9 => https://github.com/scniro/gulp-clean-css/issues/9
# 2.1.3 (12/07/2016)
-bug fix => https://github.com/scniro/gulp-clean-css/issues/19
# 2.1.2 (12/07/2016)
- bug fix => https://github.com/scniro/gulp-clean-css/issues/8
- test gulp-sass friendliness per #18
# 2.1.1 (12/07/2016)
- bug fix => https://github.com/scniro/gulp-clean-css/issues/17
# 2.1.0 (12/06/2016)
- clean-css release update => 3.4.21;
- remove vinyl-bufferstream && readable-stream/transform in favor of through2
- remove broken if(file.path) check
- dev: dep updates
- dev: simple mock server for checking out cleaned css sourcemaps
# 2.0.12 (07/26/2016)
- clean-css release update => 3.4.19; devdeps
# 2.0.11 (07/05/2016)
- clean-css release update => 3.4.18
# 2.0.9 (05/31/2016
- clean-css release update => 3.4.14
# 2.0.8 (05/23/2016
- clean-css release update => 3.4.13
# 2.0.7
- bug fix for node 6 support
# 2.0.6 (04/11/2016
- clean-css release update => 3.4.11
- minor syntax adjustments for testing/code coverage
# 2.0.5 (04/08/2016)
- clean-css release update => 3.4.11
## 2.0.4 (03/23/2016)
- dep and devDep updates
- minor test adjustments
## 2.0.3 (03/01/2016)
- Include `name` and `path` in the clean callback
- Improved testing and README docs
## 2.0.2 (02/23/2016)
- Include optional callback parameter which returns granular details from underlying clean-css process based on supplied options
- Addition of more unit tests
- README doc reflects new changes
## 2.0.1 (02/22/2016)
- Initial release post-fork from [gulp-minify-css](https://github.com/murphydanger/gulp-minify-css)
- README updates, including project badges
- Remove old tests - init new tests - new devdeps
- [npm registration](https://www.npmjs.com/package/gulp-clean-css)
- License update

20
node_modules/gulp-clean-css/LICENSE generated vendored Normal file
View file

@ -0,0 +1,20 @@
Copyright (c) 2016 scniro <scniro@outlook.com>
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.

78
node_modules/gulp-clean-css/README.md generated vendored Normal file
View file

@ -0,0 +1,78 @@
# gulp-clean-css
[![Build Status](https://img.shields.io/travis/scniro/gulp-clean-css.svg?style=flat-square)](https://travis-ci.org/scniro/gulp-clean-css)
[![NPM Version](https://img.shields.io/npm/v/gulp-clean-css.svg?style=flat-square)](https://www.npmjs.com/package/gulp-clean-css)
[![Dependency Status](https://img.shields.io/david/scniro/gulp-clean-css.svg?label=deps&style=flat-square)](https://david-dm.org/scniro/gulp-clean-css)
[![devDependency Status](https://img.shields.io/david/dev/scniro/gulp-clean-css.svg?label=devDeps&style=flat-square)](https://david-dm.org/scniro/gulp-clean-css#info=devDependencies)
[![Coverage](https://img.shields.io/coveralls/scniro/gulp-clean-css.svg?style=flat-square)](https://coveralls.io/github/scniro/gulp-clean-css)
[![Climate](https://img.shields.io/codeclimate/github/scniro/gulp-clean-css.svg?label=climate&style=flat-square)](https://codeclimate.com/github/scniro/gulp-clean-css)
> [gulp](http://gulpjs.com/) plugin to minify CSS, using [clean-css](https://github.com/jakubpawlowicz/clean-css)
## Regarding Issues
This is just a simple [gulp](https://github.com/gulpjs/gulp) plugin, which means it's nothing more than a thin wrapper around `clean-css`. If it looks like you are having CSS related issues, please contact [clean-css](https://github.com/jakubpawlowicz/clean-css/issues). Only create a new issue if it looks like you're having a problem with the plugin itself.
## Install
```
npm install gulp-clean-css --save-dev
```
## API
### cleanCSS([*options*], [*callback*])
#### options
See the [`CleanCSS` options](https://github.com/jakubpawlowicz/clean-css#how-to-use-clean-css-api).
```javascript
var gulp = require('gulp');
var cleanCSS = require('gulp-clean-css');
gulp.task('minify-css', function() {
return gulp.src('styles/*.css')
.pipe(cleanCSS({compatibility: 'ie8'}))
.pipe(gulp.dest('dist'));
});
```
#### callback
Useful for returning details from the underlying [`minify()`](https://github.com/jakubpawlowicz/clean-css#using-api) call. An example use case could include logging `stats` of the minified file. In addition to the default object, `gulp-clean-css` provides the file `name` and `path` for further analysis.
```javascript
var gulp = require('gulp');
var cleanCSS = require('gulp-clean-css');
gulp.task('minify-css', function() {
return gulp.src('styles/*.css')
.pipe(cleanCSS({debug: true}, function(details) {
console.log(details.name + ': ' + details.stats.originalSize);
console.log(details.name + ': ' + details.stats.minifiedSize);
}))
.pipe(gulp.dest('dist'));
});
```
[Source Maps](http://www.html5rocks.com/tutorials/developertools/sourcemaps/) can be generated by using [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps).
```javascript
var gulp = require('gulp');
var cleanCSS = require('gulp-clean-css');
var sourcemaps = require('gulp-sourcemaps');
gulp.task('minify-css', function() {
return gulp.src('./src/*.css')
.pipe(sourcemaps.init())
.pipe(cleanCSS())
.pipe(sourcemaps.write())
.pipe(gulp.dest('dist'));
});
```
## License
[MIT](./LICENSE) © 2016 [scniro](https://github.com/scniro)

68
node_modules/gulp-clean-css/index.js generated vendored Normal file
View file

@ -0,0 +1,68 @@
const applySourceMap = require('vinyl-sourcemaps-apply');
const CleanCSS = require('clean-css');
const objectAssign = require('object-assign');
const path = require('path');
const PluginError = require('gulp-util').PluginError;
const through = require('through2');
module.exports = function gulpCleanCSS(options, callback) {
options = options || {};
if (arguments.length === 1 && Object.prototype.toString.call(arguments[0]) === '[object Function]')
callback = arguments[0];
var transform = function (file, enc, cb) {
if (!file || !file.contents)
return cb(null, file);
if (file.isStream()) {
this.emit('error', new PluginError('gulp-clean-css', 'Streaming not supported!'));
return cb(null, file);
}
if (file.sourceMap)
options.sourceMap = JSON.parse(JSON.stringify(file.sourceMap));
var style = file.contents ? file.contents.toString() : '';
new CleanCSS(options).minify(style, function (errors, css) {
if (errors)
return cb(errors.join(' '));
if (typeof callback === 'function') {
var details = {
'stats': css.stats,
'errors': css.errors,
'warnings': css.warnings,
'path': file.path,
'name': file.path.split(file.base)[1]
}
if (css.sourceMap)
details['sourceMap'] = css.sourceMap;
callback(details);
}
file.contents = new Buffer(css.styles);
if (css.sourceMap) {
var map = JSON.parse(css.sourceMap);
map.file = path.relative(file.base, file.path);
map.sources = map.sources.map(function (src) {
return path.relative(file.base, file.path)
});
applySourceMap(file, map);
}
cb(null, file);
});
};
return through.obj(transform);
};

126
node_modules/gulp-clean-css/package.json generated vendored Normal file
View file

@ -0,0 +1,126 @@
{
"_args": [
[
{
"raw": "gulp-clean-css@^2.3.2",
"scope": null,
"escapedName": "gulp-clean-css",
"name": "gulp-clean-css",
"rawSpec": "^2.3.2",
"spec": ">=2.3.2 <3.0.0",
"type": "range"
},
"/Users/jose/Documents/GitHub/Mods/node_modules/semantic-ui"
]
],
"_from": "gulp-clean-css@>=2.3.2 <3.0.0",
"_id": "gulp-clean-css@2.4.0",
"_inCache": true,
"_location": "/gulp-clean-css",
"_nodeVersion": "6.9.2",
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/gulp-clean-css-2.4.0.tgz_1486350670159_0.33733061677776277"
},
"_npmUser": {
"name": "scniro",
"email": "salvatore.niro@outlook.com"
},
"_npmVersion": "3.10.9",
"_phantomChildren": {},
"_requested": {
"raw": "gulp-clean-css@^2.3.2",
"scope": null,
"escapedName": "gulp-clean-css",
"name": "gulp-clean-css",
"rawSpec": "^2.3.2",
"spec": ">=2.3.2 <3.0.0",
"type": "range"
},
"_requiredBy": [
"/semantic-ui"
],
"_resolved": "https://registry.npmjs.org/gulp-clean-css/-/gulp-clean-css-2.4.0.tgz",
"_shasum": "2ae48109fe83ccc967ff5ad53c044949a4863b36",
"_shrinkwrap": null,
"_spec": "gulp-clean-css@^2.3.2",
"_where": "/Users/jose/Documents/GitHub/Mods/node_modules/semantic-ui",
"author": {
"name": "scniro"
},
"bugs": {
"url": "https://github.com/scniro/gulp-clean-css/issues",
"email": "scniro@outlook.com"
},
"dependencies": {
"clean-css": "^4.0.4",
"gulp-util": "^3.0.8",
"object-assign": "^4.1.1",
"through2": "^2.0.3",
"vinyl-sourcemaps-apply": "^0.2.1"
},
"deprecated": "breaking changes from clean-css 4.x. Please install gulp-clean-css 3.x",
"description": "Minify css with clean-css.",
"devDependencies": {
"chai": "^3.5.0",
"chai-string": "^1.3.0",
"coveralls": "^2.11.16",
"del": "^2.2.2",
"express": "^4.14.1",
"gulp": "^3.9.1",
"gulp-concat": "^2.6.1",
"gulp-istanbul": "^1.1.1",
"gulp-mocha": "^3.0.1",
"gulp-rename": "^1.2.2",
"gulp-sass": "^3.1.0",
"gulp-sourcemaps": "^2.4.1",
"mocha": "^3.2.0",
"vinyl": "^2.0.1",
"vinyl-buffer": "^1.0.0",
"vinyl-fs-fake": "^1.1.0"
},
"directories": {},
"dist": {
"shasum": "2ae48109fe83ccc967ff5ad53c044949a4863b36",
"tarball": "https://registry.npmjs.org/gulp-clean-css/-/gulp-clean-css-2.4.0.tgz"
},
"files": [
"index.js"
],
"gitHead": "f2bca8c19d8017c2297a6e02bbcb11d07b338265",
"homepage": "https://github.com/scniro/gulp-clean-css#readme",
"keywords": [
"css",
"clean",
"minify",
"uglify",
"clean-css",
"minify-css",
"gulp-minify-css",
"gulp-clean-css",
"gulpplugin",
"gulpfriendly"
],
"license": "MIT",
"maintainers": [
{
"name": "radmen",
"email": "radmen+npmjs@gmail.com"
},
{
"name": "scniro",
"email": "salvatore.niro@outlook.com"
}
],
"name": "gulp-clean-css",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/scniro/gulp-clean-css.git"
},
"scripts": {
"test": "gulp test"
},
"version": "2.4.0"
}