first commit
This commit is contained in:
24
build/node_modules/vinyl-assign/index.js
generated
vendored
Normal file
24
build/node_modules/vinyl-assign/index.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
var objectAssign = require('object-assign');
|
||||
var Transform = require('readable-stream/transform');
|
||||
|
||||
module.exports = function (opts) {
|
||||
opts = opts || {};
|
||||
|
||||
return new Transform({
|
||||
objectMode: true,
|
||||
transform: function (file, enc, cb) {
|
||||
if (file.isNull()) {
|
||||
cb(null, file);
|
||||
return;
|
||||
}
|
||||
|
||||
if (file.isStream()) {
|
||||
cb(new Error('Streaming is not supported'));
|
||||
return;
|
||||
}
|
||||
|
||||
cb(null, objectAssign(file, opts));
|
||||
}
|
||||
});
|
||||
};
|
||||
21
build/node_modules/vinyl-assign/license
generated
vendored
Normal file
21
build/node_modules/vinyl-assign/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.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.
|
||||
65
build/node_modules/vinyl-assign/package.json
generated
vendored
Normal file
65
build/node_modules/vinyl-assign/package.json
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"vinyl-assign@1.2.1",
|
||||
"/Users/asciidisco/Desktop/asciidisco.com/build"
|
||||
]
|
||||
],
|
||||
"_from": "vinyl-assign@1.2.1",
|
||||
"_id": "vinyl-assign@1.2.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-TRmIkbVRWRHXcajNnFSApGoHSkU=",
|
||||
"_location": "/vinyl-assign",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "vinyl-assign@1.2.1",
|
||||
"name": "vinyl-assign",
|
||||
"escapedName": "vinyl-assign",
|
||||
"rawSpec": "1.2.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.2.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/decompress"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/vinyl-assign/-/vinyl-assign-1.2.1.tgz",
|
||||
"_spec": "1.2.1",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build",
|
||||
"author": {
|
||||
"name": "Kevin Mårtensson",
|
||||
"email": "kevinmartensson@gmail.com",
|
||||
"url": "https://github.com/kevva"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/kevva/vinyl-assign/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"object-assign": "^4.0.1",
|
||||
"readable-stream": "^2.0.0"
|
||||
},
|
||||
"description": "Apply custom attributes to vinyl files",
|
||||
"devDependencies": {
|
||||
"ava": "^0.0.4",
|
||||
"vinyl-file": "^1.1.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/kevva/vinyl-assign#readme",
|
||||
"keywords": [],
|
||||
"license": "MIT",
|
||||
"name": "vinyl-assign",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/kevva/vinyl-assign.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js"
|
||||
},
|
||||
"version": "1.2.1"
|
||||
}
|
||||
29
build/node_modules/vinyl-assign/readme.md
generated
vendored
Normal file
29
build/node_modules/vinyl-assign/readme.md
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# vinyl-assign [](https://travis-ci.org/kevva/vinyl-assign)
|
||||
|
||||
> Assign custom attributes to vinyl files
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save vinyl-assign
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var gulp = require('gulp');
|
||||
var vinylAssign = require('vinyl-assign');
|
||||
|
||||
gulp.task('default', function () {
|
||||
return gulp.src('foo.txt')
|
||||
.pipe(vinylAssign({foo: 'bar'}))
|
||||
.pipe(gulp.dest('dest'));
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Kevin Mårtensson](https://github.com/kevva)
|
||||
Reference in New Issue
Block a user