0.5.4 • Published 6 years ago

gulp-gh-pages v0.5.4

Weekly downloads
4,683
License
MIT
Repository
github
Last release
6 years ago

gulp-gh-pages

npm version Build Status Build status Coverage Status

gulp plugin to publish contents to Github pages

Installation

Use npm.

npm install --save-dev gulp-gh-pages

Usage

Define a deploy task in your gulpfile.js (as below) which can be used to push to gh-pages going forward.

const gulp = require('gulp');
const ghPages = require('gulp-gh-pages');

gulp.task('deploy', () => gulp.src('./dist/**/*').pipe(ghPages()));

Now, you should be able to call your task by doing:

gulp deploy

API

const ghPages = require('gulp-gh-pages');

ghPages(options)

options: Object
Return: stream.Transform

options.remoteUrl

Type: string
Default: URL for the remote of the current dir (assumes a git repository)

By default gulp-gh-pages assumes the current working directory is a git repository and uses its remote url. If your gulpfile.js is not in a git repository, or if you want to push to a different remote url, you can specify it. Ensure you have write access to the repository.

options.origin

Type: string
Default: "origin"

Git remote.

options.branch

Type: string
Default: "gh-pages"

The branch where deploy will by done. Change to "master" for username.github.io projects.

options.cacheDir

Type: string
Default: .publish

Set the directory path to keep a cache of the repository. If it doesn't exist, gulp-gh-pages automatically create it.

options.push

Type: boolean
Default: true

Allow you to make a build on the defined branch without pushing it to master. Useful for dry run.

options.force

Type: boolean
Default: false

Force adding files to the gh-pages branch, even if they are ignored by .gitignore or .gitignore_global.

options.message

Type: String
Default: "Update [timestamp]"

Edit commit message.

License

MIT License © 2014 Micheal Benedict, 2015 - 2018 Shinnosuke Watanabe

yuyu-gulp-samplejoyer@infinitebrahmanuniverse/nolb-gulp-g@everything-registry/sub-chunk-1807amazeui-gulp-tasksaldo-react-component-gulp-tasksadventurine-testaexo1000-packagesaxperiencebinary-live-apibrick-gulp-tasksdata-quality-dashboardmdgpmilibroohu-scriptsnayrationnf-workflow-ui-5nf-workflow-ui-devax-web-builderniehues-assetsniehues-assets-dupmvf-patternslsv-componentsdaybed.jspages-taskspages-cheng-clipattern-library-utilitiesdoctoq5-react-component-gulp-tasksyuyu-gulp-flowytxd-clix-pagesxbm-user@y-pkgs/yj-gulp@danievds/ng-material-extensionsblendmeblendidblendid-ftblendamedblogwarebook-notesrightfereact-component-toolslori-pagescolossal-buildersecret-blendid@fourkitchens/emulsify-gulpdynaware-gulp-tasksqueo-blendidqueo-gulp-starterreact-gulp-task-bundlerreact-component-gulp-tasksreact-component-gulp-tasks-accountzreact-packsamsao-blendidsnazziesketch-previewfishlyn-pagessrs-pagesgenerator-ionic-appgh-pages-deploy-cmdgh-release-managergitbook-setupgitbook-setup-deploy-gh-pagesstarter-gulpgenagongye-pagegitbook-start-heroku-localstrategy-noejaco17gitbook-start-heroku-token-oauth-noejaco17gitbook-start-https-noejacogitbook-start-mongo-noejacogitbook-start-plugin-general-noejaco17gitbook-start-plugin-heroku-noejaco2017gitbook-start-plugin-iaas-ull-es-noejaco2017gitbook-start-proyectofinal-noejacogitbook-start-proyectofinal-noejaco17gitbook-start-team-noejaco2017gitbook-start-team-noejaco2017-1.0gitbook-start-team-noejaco2017-2.0gitbook-start-team-noejaco2017-3.0gitbook-start-team-noejaco2017-4.0gulp-tasks-buildgulp-ng-recipesgulp-sky-component-helper@momsfriendlydevco/vote-tallygulp-armadillogulp-modulargulp-poolehzzh-utils-scriptsgulp-webpack-hmr-sass-boilerplategulp-auto-angularinkpad-blogup-deployusercenter_sdkutils-scriptsviu-launchpadlc-base-serverlamiakickup-toolkit
0.6.0-6

6 years ago

0.6.0-5

6 years ago

0.6.0-4

6 years ago

0.6.0-3

6 years ago

0.6.0-2

6 years ago

0.6.0-1

6 years ago

0.6.0-0

6 years ago

0.5.4

9 years ago

0.5.3

9 years ago

0.5.2

9 years ago

0.5.1

9 years ago

0.5.0

9 years ago

0.4.0

10 years ago

0.3.4

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago