Comparing version 2.1.0 to 2.1.1
@@ -23,4 +23,8 @@ 'use strict'; | ||
var mapStream = sourcemaps.write(opt.sourcemaps); | ||
var saveStream = through2.obj(saveFile); | ||
if (!opt.sourcemaps) { | ||
return saveStream; | ||
} | ||
var mapStream = sourcemaps.write(opt.sourcemaps.path, opt.sourcemaps); | ||
var outputStream = duplexify.obj(mapStream, saveStream); | ||
@@ -27,0 +31,0 @@ mapStream.pipe(saveStream); |
{ | ||
"name": "vinyl-fs", | ||
"description": "Vinyl adapter for the file system", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"homepage": "http://github.com/wearefractal/vinyl-fs", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/wearefractal/vinyl-fs.git", |
# vinyl-fs [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] | ||
## Information | ||
<table><br><tr><br><td>Package</td><td>vinyl-fs</td><br></tr><br><tr><br><td>Description</td><br><td>Vinyl adapter for the file system</td><br></tr><br><tr><br><td>Node Version</td><br><td>>= 0.10</td><br></tr><br></table> | ||
<table><br><tr><br><td>Package</td><td>vinyl-fs</td><br></tr><br><tr><br><td>Description</td><br><td>Vinyl adapter for the file system</td><br></tr><br><tr><br><td>Node Version</td><br><td>>= 0.10</td><br></tr><br></table> | ||
@@ -53,3 +53,2 @@ ## Usage | ||
- since - `Date` or `number` if you only want files that have been modified since the time specified. | ||
- stripBOM - `true` or `false` if you want the BOM to be stripped on UTF-8 encoded files. | ||
@@ -101,4 +100,10 @@ - Default value is `true`. | ||
- Default is `null` aka do not write sourcemaps. | ||
- Use `.` to write sourcemaps as files | ||
- Uses `gulp-sourcemaps` under the hood | ||
- Examples: | ||
- Write as inline comments | ||
- fs.dest('./', {sourcemaps: true}) | ||
- Write as files in the same folder | ||
- fs.dest('./', {<br> sourcemaps: {<br> path: '.'<br> }<br>}) | ||
- Any other options are passed through to `gulp-sourcemaps` | ||
- fs.dest('./', {<br> sourcemaps: {<br> path: '.',<br> addComment: false,<br> includeContent: false<br> }<br>}) | ||
@@ -105,0 +110,0 @@ - Returns a Readable/Writable stream. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20477
393
150