forked from public/fvtt-cthulhu-eternal
Initial import with skill sheet working
This commit is contained in:
49
node_modules/gulp-less/Changelog.md
generated
vendored
Normal file
49
node_modules/gulp-less/Changelog.md
generated
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
|
||||
### 3.2.0
|
||||
|
||||
* Update package.json to skip the problematic 2.7.0 release of less. Use 2.6.x or 2.7.1 instead
|
||||
* bump dependencies on accord, mocha and should
|
||||
|
||||
### 3.1.0
|
||||
|
||||
* Upgrade accord dependency
|
||||
* remove CSS minifier recommendation from README
|
||||
* Upgrade Less dependency from 2.5.1 to 2.6.0
|
||||
|
||||
### 3.0.5
|
||||
|
||||
* BugFix: fix dynamic imports broken in the 3.0.4 release
|
||||
|
||||
### 3.0.4
|
||||
|
||||
* Fix the error passing in the stream (#198)
|
||||
* Update dependencies
|
||||
|
||||
### 3.0.3
|
||||
|
||||
* Make sourcemap file and sources relative (#161)
|
||||
|
||||
### 3.0.2
|
||||
|
||||
* Upgrade Less to 2.4.0 (#157)
|
||||
|
||||
### 3.0.1
|
||||
|
||||
- Bumped accord version to 0.15.1 to fix #122
|
||||
|
||||
### 3.0.0
|
||||
|
||||
- Switch to using [accord](https://github.com/jenius/accord) for options parsing
|
||||
|
||||
### 2.0.3
|
||||
|
||||
- Fix less errors by using promises correctly
|
||||
- Fix option merging, object.assign was used incorrectly
|
||||
|
||||
### 2.0.1
|
||||
|
||||
Revert moving the replaceExt to after sourcemaps are applied
|
||||
|
||||
### 2.0.0
|
||||
|
||||
Update to Less 2.0
|
120
node_modules/gulp-less/README.md
generated
vendored
Normal file
120
node_modules/gulp-less/README.md
generated
vendored
Normal file
@ -0,0 +1,120 @@
|
||||
# gulp-less
|
||||
|
||||
|
||||
> A [LESS](http://lesscss.org/) plugin for Gulp
|
||||
|
||||
[](https://www.npmjs.com/package/gulp-less)
|
||||
[](https://travis-ci.org/gulp-community/gulp-less)
|
||||
|
||||
## Information
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Package</td><td>gulp-less</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Description</td>
|
||||
<td>Less plugin for gulp</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Node Version</td>
|
||||
<td>>= 6</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Less Version</td>
|
||||
<td>3.7+ | 4.0+</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gulp Version</td>
|
||||
<td>3.x</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
npm install gulp-less
|
||||
```
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```js
|
||||
var less = require('gulp-less');
|
||||
var path = require('path');
|
||||
|
||||
gulp.task('less', function () {
|
||||
return gulp.src('./less/**/*.less')
|
||||
.pipe(less({
|
||||
paths: [ path.join(__dirname, 'less', 'includes') ]
|
||||
}))
|
||||
.pipe(gulp.dest('./public/css'));
|
||||
});
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
The options you can use [can be found here](http://lesscss.org/#using-less-configuration). Below is a list of valid options as of the time of writing:
|
||||
|
||||
- `paths`: Array of paths to be used for `@import` directives
|
||||
- `plugins`: Array of less plugins ([details](#using-plugins))
|
||||
|
||||
The `filename` option is not necessary, it's handled automatically by this plugin. The `compress` option is not supported -- if you are trying to minify your css, use a css minifier. No `sourceMap` options are supported -- if you are trying to generate sourcemaps, use [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps).
|
||||
|
||||
## Using Plugins
|
||||
|
||||
Less now supports plugins, which can add additional functionality. Here's an example of how to use a plugin with `gulp-less`.
|
||||
|
||||
```js
|
||||
var LessAutoprefix = require('less-plugin-autoprefix');
|
||||
var autoprefix = new LessAutoprefix({ browsers: ['last 2 versions'] });
|
||||
|
||||
return gulp.src('./less/**/*.less')
|
||||
.pipe(less({
|
||||
plugins: [autoprefix]
|
||||
}))
|
||||
.pipe(gulp.dest('./public/css'));
|
||||
```
|
||||
|
||||
More info on LESS plugins can be found at http://lesscss.org/usage/#plugins, including a current list of all available plugins.
|
||||
|
||||
## Source Maps
|
||||
|
||||
`gulp-less` can be used in tandem with [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps) to generate source maps for your files. You will need to initialize [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps) prior to running the gulp-less compiler and write the source maps after, as such:
|
||||
|
||||
```js
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
|
||||
gulp.src('./less/**/*.less')
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(less())
|
||||
.pipe(sourcemaps.write())
|
||||
.pipe(gulp.dest('./public/css'));
|
||||
```
|
||||
|
||||
By default, [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps) writes the source maps inline in the compiled CSS files. To write them to a separate file, specify a relative file path in the `sourcemaps.write()` function, as such:
|
||||
|
||||
```js
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
|
||||
gulp.src('./less/**/*.less')
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(less())
|
||||
.pipe(sourcemaps.write('./maps'))
|
||||
.pipe(gulp.dest('./public/css'));
|
||||
```
|
||||
|
||||
## Error Handling
|
||||
|
||||
By default, a gulp task will fail and all streams will halt when an error happens. To change this behavior check out the error handling documentation [here](https://github.com/gulpjs/gulp/blob/master/docs/recipes/combining-streams-to-handle-errors.md)
|
||||
|
||||
## License
|
||||
|
||||
(MIT License)
|
||||
|
||||
Copyright (c) 2015 Plus 3 Network dev@plus3network.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.
|
112
node_modules/gulp-less/index.js
generated
vendored
Normal file
112
node_modules/gulp-less/index.js
generated
vendored
Normal file
@ -0,0 +1,112 @@
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var less = require('less');
|
||||
var through2 = require('through2');
|
||||
var replaceExt = require('replace-ext');
|
||||
var assign = require('object-assign');
|
||||
var applySourceMap = require('vinyl-sourcemaps-apply');
|
||||
var PluginError = require('plugin-error');
|
||||
|
||||
function inlineSources(map) {
|
||||
if (map.sourcesContent) {
|
||||
return Promise.resolve(map);
|
||||
}
|
||||
|
||||
return Promise.all(
|
||||
map.sources.map(function (source) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
fs.readFile(source, 'utf8', function (err, data) {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
})
|
||||
).then(
|
||||
function (contents) {
|
||||
map.sourcesContent = contents;
|
||||
return map;
|
||||
},
|
||||
function () {
|
||||
return map;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function renderLess(str, opts) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
less.render(str, opts, function (err, res) {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
var obj = {
|
||||
result: res.css,
|
||||
imports: res.imports,
|
||||
};
|
||||
if (opts.sourceMap && res.map) {
|
||||
obj.sourcemap = JSON.parse(res.map);
|
||||
inlineSources(obj.sourcemap).then(function (map) {
|
||||
obj.sourcemap = map;
|
||||
resolve(obj);
|
||||
});
|
||||
} else {
|
||||
resolve(obj);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = function (options) {
|
||||
// Mixes in default options.
|
||||
var opts = assign({}, {
|
||||
compress: false,
|
||||
paths: []
|
||||
}, options);
|
||||
|
||||
return through2.obj(function (file, enc, cb) {
|
||||
if (file.isNull()) {
|
||||
return cb(null, file);
|
||||
}
|
||||
|
||||
if (file.isStream()) {
|
||||
return cb(new PluginError('gulp-less', 'Streaming not supported'));
|
||||
}
|
||||
|
||||
var str = file.contents.toString();
|
||||
|
||||
// Injects the path of the current file
|
||||
opts.filename = file.path;
|
||||
|
||||
// Bootstrap source maps
|
||||
if (file.sourceMap || opts.sourcemap) {
|
||||
opts.sourceMap = true;
|
||||
}
|
||||
|
||||
renderLess(str, opts).then(function(res) {
|
||||
file.contents = Buffer.from(res.result);
|
||||
file.path = replaceExt(file.path, '.css');
|
||||
if (res.sourcemap) {
|
||||
res.sourcemap.file = file.relative;
|
||||
res.sourcemap.sources = res.sourcemap.sources.map(function (source) {
|
||||
return path.relative(file.base, source);
|
||||
});
|
||||
|
||||
applySourceMap(file, res.sourcemap);
|
||||
}
|
||||
return file;
|
||||
}).then(function(file) {
|
||||
cb(null, file);
|
||||
}).catch(function(err) {
|
||||
// Convert the keys so PluginError can read them
|
||||
err.lineNumber = err.line;
|
||||
err.fileName = err.filename;
|
||||
|
||||
// Add a better error message
|
||||
err.message = err.message + ' in file ' + err.fileName + ' line no. ' + err.lineNumber;
|
||||
return cb(new PluginError('gulp-less', err));
|
||||
});
|
||||
});
|
||||
};
|
37
node_modules/gulp-less/package.json
generated
vendored
Normal file
37
node_modules/gulp-less/package.json
generated
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "gulp-less",
|
||||
"version": "5.0.0",
|
||||
"description": "Less for Gulp",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "jshint index.js && node_modules/.bin/mocha"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/gulp-community/gulp-less.git"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
},
|
||||
"keywords": [
|
||||
"gulpplugin",
|
||||
"gulp",
|
||||
"less"
|
||||
],
|
||||
"author": "Chris Cowan",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"less": "^3.7.1 || ^4.0.0",
|
||||
"object-assign": "^4.0.1",
|
||||
"plugin-error": "^1.0.0",
|
||||
"replace-ext": "^2.0.0",
|
||||
"through2": "^4.0.0",
|
||||
"vinyl-sourcemaps-apply": "^0.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jshint": "^2.9.4",
|
||||
"mocha": "^9.0.0",
|
||||
"should": "^13.0.0",
|
||||
"vinyl": "^2.1.0"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user