uapte
This commit is contained in:
9
node_modules/gulp-add-src/CHANGELOG.md
generated
vendored
9
node_modules/gulp-add-src/CHANGELOG.md
generated
vendored
@@ -1,9 +0,0 @@
|
||||
# Changelog
|
||||
|
||||
## 1.0.0 - 2018-03-28
|
||||
- Make node 8 LTS compatible ([#15](https://github.com/urish/gulp-add-src/pull/15))
|
||||
|
||||
## 0.2.0 - 2014-11-08
|
||||
|
||||
- Add `append()` and `prepend()` methods for controlling added files position ([#4](https://github.com/urish/gulp-add-src/pull/4), contributed by [CWSpear](https://github.com/CWSpear))
|
||||
- Be more specific in defining dependencies ([#3](https://github.com/urish/gulp-add-src/pull/3), contributed by [CWSpear](https://github.com/CWSpear))
|
||||
85
node_modules/gulp-add-src/README.md
generated
vendored
85
node_modules/gulp-add-src/README.md
generated
vendored
@@ -1,85 +0,0 @@
|
||||
gulp-add-src
|
||||
============
|
||||
|
||||
Add more 'src' files at any point in the pipeline
|
||||
|
||||
Copyright (C) 2014, Uri Shaked <uri@urish.org> and contributors
|
||||
|
||||
[](https://travis-ci.org/urish/gulp-add-src)
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
`npm install gulp-add-src --save-dev`
|
||||
|
||||
Usage
|
||||
-----
|
||||
Works like `gulp.src`, but you can put it anywhere in your pipeline and it will append the given files
|
||||
to the pipeline.
|
||||
|
||||
Example:
|
||||
```js
|
||||
var gulp = require('gulp');
|
||||
var addsrc = require('gulp-add-src');
|
||||
var coffee = require('gulp-coffee');
|
||||
var uglify = require('gulp-uglify');
|
||||
|
||||
gulp.task('build', function () {
|
||||
return gulp.src('files/coffee/*.coffee') // start with the .coffee files in the project
|
||||
.pipe(coffee()) // compiles coffee script
|
||||
.pipe(addsrc('files/js/*.js')) // we use addsrc to add our .js files to the mix
|
||||
.pipe(uglify()) // we minify everything
|
||||
.pipe(gulp.dest('dist')); // and write to dist
|
||||
});
|
||||
```
|
||||
|
||||
If you want add SRC to begining of the SRC array, you can use `addsrc.prepend`.
|
||||
Or if you want to add SRC to end of the SRC array, you can use `addsrc.append`.
|
||||
Respectively instead of addsrc.
|
||||
|
||||
Example use addsrc.append and addsrc.prepend:
|
||||
```js
|
||||
var gulp = require('gulp');
|
||||
var addsrc = require('gulp-add-src');
|
||||
var coffee = require('gulp-coffee');
|
||||
var uglify = require('gulp-uglify');
|
||||
|
||||
gulp.task('build.angular', function () {
|
||||
return gulp.src('files/coffee/*.coffee') // start with the .coffee files in the project
|
||||
.pipe(coffee()) // compiles coffee script
|
||||
.pipe(addsrc.prepend('files/js/constants.js')) // we use `addsrc.prepend` to add our .js files to begining of the SRC array
|
||||
.pipe(addsrc.append('files/js/conflict.js')) // we use `addsrc.append` to add our .js files to end of the SRC array
|
||||
.pipe(uglify()) // we minify everything
|
||||
.pipe(gulp.dest('dist')); // and write to dist
|
||||
});
|
||||
```
|
||||
|
||||
As an example, this would be useful if you wanted to merge your `bower` scripts with your app scripts. You'd need your `bower` scripts to maintain their order (the `bower` scripts themselves) and make sure they come before your app scripts. In this case, you'd use `addsrc.prepend`.
|
||||
|
||||
Because of the unpredicabilty of `addsrc` alone, it's recommended to use one of the append/prepend variants. The original is only left in place for legacy reasons.
|
||||
|
||||
License
|
||||
----
|
||||
|
||||
Released under the terms of MIT License:
|
||||
|
||||
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.
|
||||
|
||||
|
||||
27
node_modules/gulp-add-src/index.js
generated
vendored
27
node_modules/gulp-add-src/index.js
generated
vendored
@@ -1,27 +0,0 @@
|
||||
/* gulp-add-src / v1.0.0 / (c) 2014 Uri Shaked / MIT Licence */
|
||||
|
||||
'use strict';
|
||||
var through = require('through2');
|
||||
var streamqueue = require('streamqueue');
|
||||
var es = require('event-stream');
|
||||
var vinyl = require('vinyl-fs');
|
||||
|
||||
function prepend() {
|
||||
var pass = through.obj();
|
||||
return es.duplex(pass, streamqueue({ objectMode: true }, vinyl.src.apply(vinyl.src, arguments), pass));
|
||||
}
|
||||
|
||||
function append() {
|
||||
var pass = through.obj();
|
||||
return es.duplex(pass, streamqueue({ objectMode: true }, pass, vinyl.src.apply(vinyl.src, arguments)));
|
||||
}
|
||||
|
||||
var addSrc = function () {
|
||||
var pass = through.obj();
|
||||
return es.duplex(pass, es.merge(vinyl.src.apply(vinyl.src, arguments), pass));
|
||||
};
|
||||
|
||||
addSrc.append = append;
|
||||
addSrc.prepend = prepend;
|
||||
|
||||
module.exports = addSrc;
|
||||
65
node_modules/gulp-add-src/package.json
generated
vendored
65
node_modules/gulp-add-src/package.json
generated
vendored
@@ -1,65 +0,0 @@
|
||||
{
|
||||
"_from": "gulp-add-src@^1.0.0",
|
||||
"_id": "gulp-add-src@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-wmqf71/V/W4Ffi9lduaWAgNFcJW60TRqgc2lRv94d6I7j4rjHtVMHjnbwDH8RF0czGfJqYbs+ruecZXmwJopCQ==",
|
||||
"_location": "/gulp-add-src",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "gulp-add-src@^1.0.0",
|
||||
"name": "gulp-add-src",
|
||||
"escapedName": "gulp-add-src",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/gulp-add-src/-/gulp-add-src-1.0.0.tgz",
|
||||
"_shasum": "efcafb5dc8bfb5e7bca925d1cefc17b02280bbc9",
|
||||
"_spec": "gulp-add-src@^1.0.0",
|
||||
"_where": "/Applications/XAMPP/xamppfiles/htdocs/wordpress/t-latehome/wp-content/plugins/opal-estate-pro",
|
||||
"author": {
|
||||
"name": "Uri Shaked"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/urish/gulp-add-src/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"event-stream": "~3.1.5",
|
||||
"streamqueue": "^0.1.1",
|
||||
"through2": "~0.4.1",
|
||||
"vinyl-fs": "~3.0.2"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Add more 'src' files at any point in the pipeline (gulp plugin)",
|
||||
"devDependencies": {
|
||||
"gulp": "^3.6.2",
|
||||
"mocha": "^1.18.2"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/urish/gulp-add-src#readme",
|
||||
"keywords": [
|
||||
"gulp",
|
||||
"gulpplugin",
|
||||
"gulpfriendly",
|
||||
"pipeline"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "gulp-add-src",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/urish/gulp-add-src.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user