gulp-gh-pages
Advanced tools
Comparing version 0.6.0-2 to 0.6.0-3
14
index.js
@@ -8,2 +8,4 @@ 'use strict'; | ||
const git = require('./lib.js'); | ||
const inspectWithKind = require('inspect-with-kind'); | ||
const {isVinyl} = require('vinyl'); | ||
const PluginError = require('plugin-error'); | ||
@@ -37,2 +39,14 @@ const vinylFs = require('vinyl-fs'); | ||
transform(file, enc, cb) { | ||
if (!isVinyl(file)) { | ||
if (file !== null && typeof file === 'object' && typeof file.isNull === 'function') { | ||
cb(new PluginError('gulp-gh-pages', 'gulp-gh-pages doesn\'t support gulp <= v3.x. Update your project to use gulp >= v4.0.0.')); | ||
return; | ||
} | ||
cb(new PluginError('gulp-gh-pages', `Expected a stream created by gulp-gh-pages to receive Vinyl objects https://github.com/gulpjs/vinyl, but got ${ | ||
inspectWithKind(file) | ||
}.`)); | ||
return; | ||
} | ||
if (file.isNull()) { | ||
@@ -39,0 +53,0 @@ cb(null, file); |
{ | ||
"name": "gulp-gh-pages", | ||
"version": "0.6.0-2", | ||
"version": "0.6.0-3", | ||
"description": "gulp plugin to publish contents to Github pages", | ||
@@ -38,4 +38,6 @@ "repository": "shinnn/gulp-gh-pages", | ||
"gift": "^0.10.2", | ||
"inspect-with-kind": "^1.0.4", | ||
"plugin-error": "^1.0.1", | ||
"rimraf": "^2.6.2", | ||
"vinyl": "^2.2.0", | ||
"vinyl-fs": "^3.0.3" | ||
@@ -46,7 +48,7 @@ }, | ||
"eslint": "^5.2.0", | ||
"lodash": "^4.17.10", | ||
"mocha": "^5.2.0", | ||
"nyc": "^12.0.2", | ||
"octonode": "^0.9.3", | ||
"read-remove-file": "^5.0.1", | ||
"vinyl": "^2.2.0" | ||
"read-remove-file": "^5.0.1" | ||
}, | ||
@@ -53,0 +55,0 @@ "eslintConfig": { |
@@ -15,3 +15,3 @@ # gulp-gh-pages | ||
``` | ||
npm install --save-dev gulp-gh-pages | ||
npm install --save-dev gulp@next gulp-gh-pages | ||
``` | ||
@@ -24,6 +24,6 @@ | ||
```javascript | ||
const gulp = require('gulp'); | ||
const {src, task}= require('gulp'); | ||
const ghPages = require('gulp-gh-pages'); | ||
gulp.task('deploy', () => gulp.src('./dist/**/*').pipe(ghPages())); | ||
task('deploy', () => src('./dist/**/*').pipe(ghPages())); | ||
``` | ||
@@ -92,3 +92,3 @@ | ||
Type: `String` | ||
Type: `string` | ||
Default: `"Update [timestamp]"` | ||
@@ -95,0 +95,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12348
212
0
7
+ Addedinspect-with-kind@^1.0.4
+ Addedvinyl@^2.2.0
+ Addedinspect-with-kind@1.0.5(transitive)
+ Addedkind-of@6.0.3(transitive)