vigetlabs / blendid

A delicious blend of gulp tasks combined into a configurable asset pipeline and static site builder
MIT License
4.97k stars 682 forks source link

Task 'ghPages' is not in your gulpfile - Error #454

Closed light-flight closed 6 years ago

light-flight commented 7 years ago

yarn run blendid -- gh-pages still works

oldsaltpro commented 7 years ago
const ghPages = require('gulp-gh-pages')
const gulp    = require('gulp')
const os      = require('os')
const path    = require('path')

const ghPagesTask = function() {
  const pkg = require(path.resolve(process.env.PWD, 'package.json'))

  const settings = {
    src: path.resolve(process.env.PWD, PATH_CONFIG.finalDest, '**/*')
  }

  return gulp.src(settings.src)
    .pipe(ghPages(TASK_CONFIG.ghPages))
}

gulp.task('gh-pages', ['build'], ghPagesTask) // <--- Should be "ghPages"
module.exports = ghPagesTask
ccchwang commented 7 years ago

One more vote for yarn run blendid -- gh-pages. ghPages does not work. Might need to simply change README.

benjtinsley commented 6 years ago

yep, looks like the command was incorrect in the docs. updated now: https://github.com/vigetlabs/blendid/wiki/Commands