This commit is contained in:
oitsjustjose 2017-02-25 03:50:31 -05:00
commit 4e066bffc9
10017 changed files with 1322084 additions and 0 deletions

10
node_modules/run-sequence/.npmignore generated vendored Normal file
View file

@ -0,0 +1,10 @@
.DS_Store
*.log
node_modules
build
*.node
components
*.orig
.idea
temp.txt*
test

6
node_modules/run-sequence/.travis.yml generated vendored Normal file
View file

@ -0,0 +1,6 @@
sudo: false
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"

20
node_modules/run-sequence/LICENSE generated vendored Normal file
View file

@ -0,0 +1,20 @@
Copyright (c) 2014 [Phil DeJarnett](http://overzealous.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.

114
node_modules/run-sequence/README.md generated vendored Normal file
View file

@ -0,0 +1,114 @@
# run-sequence
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
Runs a sequence of gulp tasks in the specified order. This function is designed to solve the situation where you have defined run-order, but choose not to or cannot use dependencies.
> ### Please Note
>
> This is intended to be a temporary solution until the release of [gulp 4.0](https://github.com/gulpjs/gulp/tree/4.0) which has support for defining task dependencies in [series](https://github.com/gulpjs/gulp/blob/4.0/docs/API.md#gulpseriestasks) or in [parallel](https://github.com/gulpjs/gulp/blob/4.0/docs/API.md#gulpparalleltasks).
>
> Be aware that this solution is a hack, and may stop working with a future update to gulp.
Each argument to `run-sequence` is run in order. This works by listening to the `task_stop` and `task_err` events, and keeping track of which tasks have been completed. You can still run some of the tasks in parallel, by providing an array of task names for one or more of the arguments.
If the final argument is a function, it will be used as a callback after all the functions are either finished or an error has occurred.
## Possible Breaking Change in version 1.0.0
In version 1.0 I've added a check that prevents the same task from showing up within any sequence. This is to help reduce typo errors, as well as prevent the [silent exit bug when the same task occurred twice in a parallel sequence](https://github.com/OverZealous/run-sequence/issues/13). The sequence will now fail immediately during the validation stage.
If this breaking change affects you, you'll need to take one of several actions:
1. Remove duplicate tasks if they are a mistake.
2. Filter unneeded duplicate tasks before passing them to `run-sequence`.
3. Rewrite your tasks or wrap your tasks within functions that can be called multiple times if for some reason you rely on this functionality.
4. Continue using `run-sequence` version 0.3.7 if it was working for you.
[I welcome feedback](https://github.com/OverZealous/run-sequence/issues) if this change is a problem for your setup!
## Usage
First, install `run-sequence` as a development dependency:
```shell
npm install --save-dev run-sequence
```
Then add use it in your gulpfile, like so (note these are only examples, please check the documentation for your functions for the correct way to use them):
```js
var gulp = require('gulp');
var runSequence = require('run-sequence');
var del = require('del');
var fs = require('fs');
// This will run in this order:
// * build-clean
// * build-scripts and build-styles in parallel
// * build-html
// * Finally call the callback function
gulp.task('build', function(callback) {
runSequence('build-clean',
['build-scripts', 'build-styles'],
'build-html',
callback);
});
// configure build-clean, build-scripts, build-styles, build-html as you wish,
// but make sure they either return a stream or promise, or handle the callback
// Example:
gulp.task('build-clean', function() {
// Return the Promise from del()
return del([BUILD_DIRECTORY]);
// ^^^^^^
// This is the key here, to make sure asynchronous tasks are done!
});
gulp.task('build-scripts', function() {
// Return the stream from gulp
return gulp.src(SCRIPTS_SRC).pipe(...)...
// ^^^^^^
// This is the key here, to make sure tasks run to completion!
});
gulp.task('callback-example', function(callback) {
// Use the callback in the async function
fs.readFile('...', function(err, file) {
console.log(file);
callback();
// ^^^^^^^^^^
// This is what lets gulp know this task is complete!
});
});
```
### Using within gulp submodules
If you have a complex gulp setup with your tasks split up across different files, you may get the error that `run-sequence` is unable to find your tasks. In this case, you can configure `run-sequence` to look at the gulp within the submodule, like so:
```js
// submodule tasks/mygulptask.js
var gulp = require('gulp'), // might be a different instance than the toplevel one
// this uses the gulp you provide
runSequence = require('run-sequence').use(gulp);
// ...and then use normally
runSequence('subtask1', 'subtask2');
```
## LICENSE
[MIT License](http://en.wikipedia.org/wiki/MIT_License)
[npm-url]: https://npmjs.org/package/run-sequence
[npm-image]: https://badge.fury.io/js/run-sequence.png
[travis-url]: http://travis-ci.org/OverZealous/run-sequence
[travis-image]: https://secure.travis-ci.org/OverZealous/run-sequence.png?branch=master
[gratipay-url]: https://www.gratipay.com/OverZealous/
[gratipay-image]: https://img.shields.io/gratipay/OverZealous.svg

103
node_modules/run-sequence/index.js generated vendored Normal file
View file

@ -0,0 +1,103 @@
/*jshint node:true */
"use strict";
var colors = require('chalk');
var gutil = require('gulp-util');
function verifyTaskSets(gulp, taskSets, skipArrays) {
if(taskSets.length === 0) {
throw new Error('No tasks were provided to run-sequence');
}
var foundTasks = {};
taskSets.forEach(function(t) {
var isTask = typeof t === "string",
isArray = !skipArrays && Array.isArray(t);
if(!isTask && !isArray) {
throw new Error("Task "+t+" is not a valid task string.");
}
if(isTask && !gulp.hasTask(t)) {
throw new Error("Task "+t+" is not configured as a task on gulp. If this is a submodule, you may need to use require('run-sequence').use(gulp).");
}
if(skipArrays && isTask) {
if(foundTasks[t]) {
throw new Error("Task "+t+" is listed more than once. This is probably a typo.");
}
foundTasks[t] = true;
}
if(isArray) {
if(t.length === 0) {
throw new Error("An empty array was provided as a task set");
}
verifyTaskSets(gulp, t, true, foundTasks);
}
});
}
function runSequence(gulp) {
// load gulp directly when no external was passed
if(gulp === undefined) {
gulp = require('gulp');
}
// Slice and dice the input to prevent modification of parallel arrays.
var taskSets = Array.prototype.slice.call(arguments, 1).map(function(task) {
return Array.isArray(task) ? task.slice() : task;
}),
callBack = typeof taskSets[taskSets.length-1] === 'function' ? taskSets.pop() : false,
currentTaskSet,
finish = function(e) {
gulp.removeListener('task_stop', onTaskEnd);
gulp.removeListener('task_err', onError);
var error;
if (e && e.err) {
error = new gutil.PluginError('run-sequence(' + e.task + ')', e.err, {showStack: true});
}
if(callBack) {
callBack(error);
} else if(error) {
gutil.log(colors.red(error.toString()));
}
},
onError = function(err) {
finish(err);
},
onTaskEnd = function(event) {
var idx = currentTaskSet.indexOf(event.task);
if(idx > -1) {
currentTaskSet.splice(idx,1);
}
if(currentTaskSet.length === 0) {
runNextSet();
}
},
runNextSet = function() {
if(taskSets.length) {
var command = taskSets.shift();
if(!Array.isArray(command)) {
command = [command];
}
currentTaskSet = command;
gulp.start.apply(gulp, command);
} else {
finish();
}
};
verifyTaskSets(gulp, taskSets);
gulp.on('task_stop', onTaskEnd);
gulp.on('task_err', onError);
runNextSet();
}
module.exports = runSequence.bind(null, undefined);
module.exports.use = function(gulp) {
return runSequence.bind(null, gulp);
};

101
node_modules/run-sequence/package.json generated vendored Normal file
View file

@ -0,0 +1,101 @@
{
"_args": [
[
{
"raw": "run-sequence@^1.2.2",
"scope": null,
"escapedName": "run-sequence",
"name": "run-sequence",
"rawSpec": "^1.2.2",
"spec": ">=1.2.2 <2.0.0",
"type": "range"
},
"/Users/jose/Documents/GitHub/About/node_modules/semantic-ui"
]
],
"_from": "run-sequence@>=1.2.2 <2.0.0",
"_id": "run-sequence@1.2.2",
"_inCache": true,
"_location": "/run-sequence",
"_nodeVersion": "5.11.1",
"_npmOperationalInternal": {
"host": "packages-16-east.internal.npmjs.com",
"tmp": "tmp/run-sequence-1.2.2.tgz_1467208581638_0.25349971698597074"
},
"_npmUser": {
"name": "overzealous",
"email": "phil@overzealous.com"
},
"_npmVersion": "3.8.6",
"_phantomChildren": {},
"_requested": {
"raw": "run-sequence@^1.2.2",
"scope": null,
"escapedName": "run-sequence",
"name": "run-sequence",
"rawSpec": "^1.2.2",
"spec": ">=1.2.2 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/semantic-ui"
],
"_resolved": "https://registry.npmjs.org/run-sequence/-/run-sequence-1.2.2.tgz",
"_shasum": "5095a0bebe98733b0140bd08dd80ec030ddacdeb",
"_shrinkwrap": null,
"_spec": "run-sequence@^1.2.2",
"_where": "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui",
"author": {
"name": "Phil DeJarnett",
"url": "http://overzealous.com/"
},
"bugs": {
"url": "https://github.com/OverZealous/run-sequence/issues"
},
"dependencies": {
"chalk": "*",
"gulp-util": "*"
},
"description": "Run a series of dependent gulp tasks in order",
"devDependencies": {
"gulp": "*",
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "5095a0bebe98733b0140bd08dd80ec030ddacdeb",
"tarball": "https://registry.npmjs.org/run-sequence/-/run-sequence-1.2.2.tgz"
},
"engines": {
"node": ">= 0.8.0"
},
"gitHead": "2238f6aea94c201173a99a4ccc1f2791c38531a1",
"homepage": "https://github.com/OverZealous/run-sequence",
"keywords": [
"gulpfriendly",
"pipe",
"sequence",
"gulp",
"orchestrator"
],
"license": "MIT",
"main": "./index.js",
"maintainers": [
{
"name": "overzealous",
"email": "phil@overzealous.com"
}
],
"name": "run-sequence",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git://github.com/OverZealous/run-sequence.git"
},
"scripts": {
"test": "mocha --reporter spec"
},
"version": "1.2.2"
}