Add production dependencies
This commit is contained in:
parent
5a0114f3e2
commit
579ccdc29f
12113 changed files with 978046 additions and 3 deletions
21
node_modules/default-resolution/LICENSE
generated
vendored
Normal file
21
node_modules/default-resolution/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Blaine Bublitz, Eric Schoffstall and other contributors
|
||||
|
||||
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.
|
70
node_modules/default-resolution/README.md
generated
vendored
Normal file
70
node_modules/default-resolution/README.md
generated
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
<p align="center">
|
||||
<a href="http://gulpjs.com">
|
||||
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
# default-resolution
|
||||
|
||||
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
|
||||
|
||||
Get the default resolution time based on the current node version, optionally overridable.
|
||||
|
||||
Originally implemented by [@dinoboff][dinoboff] in [gulpjs/undertaker#17][original].
|
||||
|
||||
Split out for standalone use.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var defaultResolution = require('default-resolution');
|
||||
|
||||
defaultResolution();
|
||||
//-> 1000 (1 second) in node 0.10
|
||||
//-> 1 (millisecond) in node 0.11+
|
||||
|
||||
// use a different value
|
||||
defaultResolution(12);
|
||||
//-> 12 always
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `defaultResolution([resolution])`
|
||||
|
||||
Returns the default resolution, based on the node platform. See [Default resolution table][default-table] below for resolutions.
|
||||
|
||||
Optionally takes a resolution number to force override any platform resolutions.
|
||||
|
||||
### Default resolutions
|
||||
|
||||
| node version | resolution |
|
||||
|--------------|------------|
|
||||
| 0.10 | 1s |
|
||||
| 0.11+ | 1ms |
|
||||
|
||||
More information at https://github.com/gulpjs/undertaker/pull/17#issuecomment-82374512
|
||||
|
||||
# License
|
||||
|
||||
MIT
|
||||
|
||||
[dinoboff]: https://github.com/dinoboff
|
||||
[original]: https://github.com/gulpjs/undertaker/pull/17
|
||||
[default-table]: #default-resolutions
|
||||
|
||||
[downloads-image]: http://img.shields.io/npm/dm/default-resolution.svg
|
||||
[npm-url]: https://www.npmjs.com/package/default-resolution
|
||||
[npm-image]: http://img.shields.io/npm/v/default-resolution.svg
|
||||
|
||||
[travis-url]: https://travis-ci.org/gulpjs/default-resolution
|
||||
[travis-image]: http://img.shields.io/travis/gulpjs/default-resolution.svg?label=travis-ci
|
||||
|
||||
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/default-resolution
|
||||
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/default-resolution.svg?label=appveyor
|
||||
|
||||
[coveralls-url]: https://coveralls.io/r/gulpjs/default-resolution
|
||||
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/default-resolution/master.svg
|
||||
|
||||
[gitter-url]: https://gitter.im/gulpjs/gulp
|
||||
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
|
17
node_modules/default-resolution/index.js
generated
vendored
Normal file
17
node_modules/default-resolution/index.js
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
var nodeVersion = require('./node-version');
|
||||
|
||||
function defaultResolution(customResolution) {
|
||||
var resolution = parseInt(customResolution, 10);
|
||||
|
||||
if (resolution) {
|
||||
return resolution;
|
||||
}
|
||||
|
||||
return (nodeVersion.major === 0 && nodeVersion.minor <= 10) ? 1000 : 1;
|
||||
}
|
||||
|
||||
defaultResolution.nodeVersion = nodeVersion;
|
||||
|
||||
module.exports = defaultResolution;
|
10
node_modules/default-resolution/node-version.js
generated
vendored
Normal file
10
node_modules/default-resolution/node-version.js
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
var match = process.version.match(/v(\d+)\.(\d+)\.(\d+)/);
|
||||
var nodeVersion = {
|
||||
major: parseInt(match[1], 10),
|
||||
minor: parseInt(match[2], 10),
|
||||
patch: parseInt(match[3], 10),
|
||||
};
|
||||
|
||||
module.exports = nodeVersion;
|
43
node_modules/default-resolution/package.json
generated
vendored
Normal file
43
node_modules/default-resolution/package.json
generated
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"name": "default-resolution",
|
||||
"version": "2.0.0",
|
||||
"description": "Get the default resolution time based on the current node version, optionally overridable",
|
||||
"author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
|
||||
"contributors": [
|
||||
"Blaine Bublitz <blaine.bublitz@gmail.com>",
|
||||
"Damien Lebrun <dinoboff@hotmail.com>"
|
||||
],
|
||||
"repository": "gulpjs/default-resolution",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
},
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"index.js",
|
||||
"node-version.js"
|
||||
],
|
||||
"scripts": {
|
||||
"lint": "eslint . && jscs index.js node-version.js test/",
|
||||
"pretest": "npm run lint",
|
||||
"test": "mocha --async-only",
|
||||
"cover": "istanbul cover _mocha --report lcovonly",
|
||||
"coveralls": "npm run cover && istanbul-coveralls"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"eslint": "^1.7.3",
|
||||
"eslint-config-gulp": "^2.0.0",
|
||||
"expect": "^1.19.0",
|
||||
"istanbul": "^0.4.3",
|
||||
"istanbul-coveralls": "^1.0.3",
|
||||
"jscs": "^2.4.0",
|
||||
"jscs-preset-gulp": "^1.0.0",
|
||||
"mocha": "^2.4.5"
|
||||
},
|
||||
"keywords": [
|
||||
"resolution",
|
||||
"timing"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue