• Stars
    star
    607
  • Rank 73,845 (Top 2 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 10 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A gulp 4 plugin to publish contents to Github pages

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@next 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 {src, task}= require('gulp');
const ghPages = require('gulp-gh-pages');

task('deploy', () => 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 the URL of the remote designated by origin. 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.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

More Repositories

1

isogram

Generate Google Analytics tracking code with any isogrammic parameters you like
JavaScript
404
star
2

gulp-front-matter

Extract front-matter header from files
JavaScript
76
star
3

github-username-regex

A regular expression that only matches a currently valid Github username
JavaScript
73
star
4

vscode-alex

A Visual Studio Code extension to find unequal phrasing in your text with alex
JavaScript
60
star
5

uglify-save-license

A support module for UglifyJS to detect and preserve license comments
JavaScript
59
star
6

fs-readfile-promise

Promisified version of fs.readFile
JavaScript
49
star
7

array-to-sentence

Join all elements of an array and create a human-readable string
JavaScript
33
star
8

gulp-svelte

A gulp 4 plugin to compile Svelte template to vanilla JavaScript
JavaScript
25
star
9

AudioContext-Polyfill

Polyfill for 'AudioContext' of Web Audio API
JavaScript
24
star
10

rmfr

Node.js implementation of rm -fr โ€“ recursive removal of files and directories
JavaScript
23
star
11

chrome-paths

Possible paths or binary names of Chrome, Chrome Canary and Chromium in the current platform
JavaScript
21
star
12

istanbul-coveralls

A simple alias for istanbul + node-coveralls
JavaScript
21
star
13

image-size-stream

Detect the width and height of images in a stream
JavaScript
17
star
14

is-resolvable

Check if a given module ID is resolvable with require()
JavaScript
16
star
15

get-chrome-tabs

Get information of the currently opened Chrome tabs, for example URLs and titles
JavaScript
15
star
16

sum-up

Summarize package information
JavaScript
15
star
17

run-eslint

Execute ESLint with a simplified API
JavaScript
14
star
18

output-file-sync

Synchronously write a file and create its ancestor directories if needed
JavaScript
14
star
19

is-var-name

Check if a string can be used as a JavaScript variable name
JavaScript
14
star
20

read-multiple-files

Read multiple files Observable way
JavaScript
13
star
21

location-origin.js

Polyfill for window.location.origin
JavaScript
13
star
22

broccoli-clean-css

A Broccoli plugin to minify CSS with clean-css
JavaScript
12
star
23

coverage

Collect and report code coverage of a JavaScript program
JavaScript
12
star
24

vscode-swiftlint

A Visual Studio Code extension to lint Swift with SwiftLint
JavaScript
12
star
25

gulpur

gulp with ES.next
JavaScript
10
star
26

node-flex-svg

Creates SVG of flexible width and height
JavaScript
10
star
27

neat-stack

Make a color-coded stack trace from an error
JavaScript
9
star
28

inline-source-map-comment

Create an inline source map comment from a source map object or string
JavaScript
9
star
29

read-json-sync

Read and parse a JSON file synchronously
JavaScript
9
star
30

node-strip-dirs

Remove leading directory components from a path, like tar(1)'s --strip-components option
JavaScript
8
star
31

fs-readdir-promise

Promises/A+ version of fs.readdir
JavaScript
8
star
32

metalsmith-svelte

Svelte plugin for Metalsmith
JavaScript
7
star
33

script-fallback-from-urls

Create script tags to load a JavaScript file safely
JavaScript
7
star
34

frontmost-app

Get information of the frontmost app โ€“ the app that receives key events
JavaScript
7
star
35

is-natural-number.js

Check if a value is natural number
JavaScript
6
star
36

exec-series

Run commands in order
JavaScript
6
star
37

fetch-cheerio-object

Fetch an HTML and parse it as a cheerio object
JavaScript
6
star
38

fettuccine

HTTP client with every imaginable option and small file size
JavaScript
6
star
39

modify-event

Modify the value of the specific object's event
JavaScript
6
star
40

gh-account-exists

Check if a Github account with the given username exists or not
JavaScript
6
star
41

grunt-merge-data

Merge multiple data into a single JSON file or Grunt config, based on their basename
JavaScript
5
star
42

array-has-duplicates

Check if an array includes duplicated values or not
JavaScript
5
star
43

mkcert-prebuilt

An npm package to install a mkcert prebuilt binary
JavaScript
5
star
44

vinyl-yaml-data

Convert vinyl objects of YAML files into plain objects
JavaScript
5
star
45

list-directories

List all directories in a given directory
JavaScript
5
star
46

re-a-ct

Sound Interaction Expreriment with HTML5 Web Audio API
JavaScript
5
star
47

readdir-sorted

Like `fs.promises.readdir()`, but sorts the result based on `String#localeCompare()`
JavaScript
4
star
48

lstat-dir

Run `fs.lstat()` for all contents in a given directory
JavaScript
4
star
49

is-file-utf8

Check if a file is UTF-8-encoded
JavaScript
4
star
50

get-exif

Get Exif data from JPEG
JavaScript
4
star
51

vinyl-bufferstream

Deal with vinyl file contents, regardless of whether they are a buffer or stream
JavaScript
4
star
52

gh-user-events

Get the list of events on Github performed by a user
JavaScript
4
star
53

outdated-pods

Extract outdated Pod information from the output of `pod outdated` command
JavaScript
4
star
54

all-eslint-rules

Get all available ESLint rules
JavaScript
4
star
55

pretend-platform

Pretend the current process is running on a given platform
JavaScript
4
star
56

node-read-glob

Search files with glob pattern and read them asynchronously
JavaScript
4
star
57

vscode-standard

A VS Code extension to lint JavaScript with Standard
JavaScript
4
star
58

vfile-glob

Search files with glob pattern and create VFile objects from them
JavaScript
4
star
59

pkg-bin

Get a command name from a package.json object
JavaScript
3
star
60

node-font-cmap

Parse CMap of a font file buffer
JavaScript
3
star
61

cancelable-pipeline

Cancelable `stream.pipeline()`
JavaScript
3
star
62

parse-zonetab

Parse zone.tab file
JavaScript
3
star
63

watchexec-bin

An npm package to install a watchexec prebuilt binary
JavaScript
3
star
64

pause-fn

Pause/resume execution of a function
JavaScript
3
star
65

audio-support-level.js

Check if the given audio format is supported on the browser, and return the compatibility level as a number
JavaScript
3
star
66

create-symlink

Create a symbolic link
JavaScript
3
star
67

write-file-atomically

Promisified version of write-file-atomic
JavaScript
3
star
68

parse-m3u8

Parse M3U8
JavaScript
3
star
69

purs

Spawn a new process using PureScript CLI
JavaScript
3
star
70

tty-truncate

Truncate a string to the current text terminal width
JavaScript
3
star
71

is-cwebp-readable

Check if a Buffer/Uint8Array is available for cwebp image source
JavaScript
3
star
72

fallback-stream

Create a readable stream that swithes to the fallback on error
JavaScript
3
star
73

tz-ids

An array of time zone IDs
JavaScript
3
star
74

generator-jade-frontmatter

[WORK IN PROGRESS] A static website boilerplate with Jade, CoffeeScript, Compass
CoffeeScript
2
star
75

gulp-assign-to-pug

Assign file contents to the Pug template as a local variable
JavaScript
2
star
76

unconfigured-eslint-rules

Detect unconfigured ESLint rules
JavaScript
2
star
77

tty-width-frame

Generate simple framed text fitting for the current text terminal
JavaScript
2
star
78

ghify-request

Create a Request wrapper to interact with the GitHub API
JavaScript
2
star
79

npm-cli-version

Get the currently installed npm version
JavaScript
2
star
80

get-tz-ids

Get an array of time zone IDs from IANA time zone database
JavaScript
2
star
81

read-glob-promise

Promise to read files with glob pattern
JavaScript
2
star
82

read-files-promise

Promise to read multiple files
JavaScript
2
star
83

calendar-date-regex

Regular expression for matching ISO 8601 calendar dates
JavaScript
2
star
84

gulp-flex-svg

flex-svg plugin for gulp
JavaScript
2
star
85

max-code-point

The maximum code point available in JavaScript
JavaScript
2
star
86

optback.js

Extract options and a callback function from arguments
JavaScript
2
star
87

to-protocol-relative-url.js

Change a URL into protocol-relative URL
JavaScript
2
star
88

read-yaml-promise

Promise to read and parse a YAML file
JavaScript
2
star
89

smallest-jpeg

A `Buffer` of the theoretically smallest JPEG
JavaScript
2
star
90

gh-user-pushes

Get the list of recent pushes to Github repositories by a user
JavaScript
2
star
91

parse-flow-error-position.js

Parse the error position from Flow error message
JavaScript
2
star
92

code-points.js

Get the code points of each character in the string
JavaScript
2
star
93

read-bplist

Parse a Binary macOS Plist (.bplist) file
JavaScript
2
star
94

find-pkg-dir

Find the root directory of a Node.js project from a given path
JavaScript
2
star
95

platform-name

Convert a Node.js platform identifier to the human-readable platform name
JavaScript
2
star
96

node-font2svg

Create a SVG subset font from a font file
JavaScript
2
star
97

node-read-remove-file

Read a file, then remove it
JavaScript
2
star
98

eslint-config

shinnn's ESLint config for both client-side and Node.js-based projects
JavaScript
2
star
99

read-font-cmap

Parse CMap of a TrueType/OpenType font file
JavaScript
2
star
100

reiwa

A command-line tool to show the current year in the new Japanese period ไปคๅ’Œ (Reiwa)
JavaScript
2
star