• Stars
    star
    212
  • Rank 186,122 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 10 years ago
  • Updated over 5 years ago

Reviews

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

Repository Details

publish to gh-pages from package.json

GH-pages-deploy

NPM

Deploy straight to github pages with one simple command.

Usage

# install it from npm and symlink it into your PATH
npm install gh-pages-deploy -g

# now run it!
gh-pages-deploy

You can also use npm run to package it with your app without installing it globally.

First add this to your scripts section of package.json:

  "scripts": {
    "deploy": "gh-pages-deploy",
    "clean-source": "rimraf README.md src webroot package.json"
  },

And then install gh-pages-deploy as a devDependency:

npm install gh-pages-deploy --save-dev

And now you can run npm run deploy to run the gh-pages-deploy installed in the local node_modules folder (even if you have never done npm install gh-pages-deploy -g).

You can also provide a custom commit message via command line argument:

  "scripts": {
    "deploy": "gh-pages-deploy -- 'A custom commit message'",
  },

Options

To configure gh-pages-deploy all you need to do is specify a couple of things in your package.json (all of which are optional)

  "gh-pages-deploy": {
    "staticpath": "dist",
    "cname": "nope.org",
    "prep": [
      "build-sass",
      "optimize-img"
    ],
    "commit": "a custom commit message",
    "post": [
      "clean-source"
    ],
    "noprompt": false
  },
  • "staticpath" path to your files to be copied over to the root directory
  • "cname" content for CNAME file
  • "prep" an array of script names to run before pushing to github, this can be any script that you have declared in your "scripts" object in your package.json.
  • "commit" a custom commit message to be used when committing to git
  • "post" an array of script names to run after "prep", but before add/commit/push
  • "noprompt" if this is set to true, the prompt will be bypassed and you will never need to confirm the commands before deploying.

About

This repo uses gh-pages-deploy. Checkout the gh-pages branch and the result at http://davejustice.com/gh-pages-deploy/.

This was inspired after a conversation with max ogden regarding the setup of the Code For Portland Jekyll Pages. Inspired by the leveldb.org repository, I wanted an easier way for people to generate static pages and deploy to github without being tied to just jekyll.

LICENSE

MIT

More Repositories

1

min-vid

Popout video player in Firefox
JavaScript
182
star
2

web-audio-modules

a collection of modules to use with the web audio api
HTML
62
star
3

metastaseis

in browser audio editor in the vein of audacity
JavaScript
30
star
4

draw-wave

draw waveform to canvas from audiobuffer
JavaScript
29
star
5

pin-tweet-to-ipfs

Web extension to Save tweets in a verifiable way to IPFS
JavaScript
20
star
6

audio-clock

Keep time in browser for audio applications
JavaScript
14
star
7

canvas-grid

Simple canvas grid that you can actually interact with
JavaScript
13
star
8

simple-sampler

A simple MPC type sampler using the WebAudio API
JavaScript
11
star
9

audio_programming_book

C
9
star
10

wave-edit

UI component for editing waveforms
JavaScript
7
star
11

extreme-sound-stretch

Stretch any audio to extreme lengths
Python
6
star
12

dsp-talk

Materials for digital signal processing talk
JavaScript
6
star
13

free-music-archive

Node.js wrapper around the free music archive API
JavaScript
6
star
14

merge-audio-buffers

JavaScript
5
star
15

clinton-emails

Hillary Rodham Clinton's emails
5
star
16

creating_web_audio

Slides for a talk I gave at a pdx-node meetup group
JavaScript
5
star
17

anarchist-ipsum

anarchism in your mockups
JavaScript
4
star
18

sequencer-component

JavaScript
4
star
19

canvas-pixel-color

pass an event and canvas context and get back rgba and hex data.
JavaScript
4
star
20

pdx-shows

Portland, Oregon punk show listings in your terminal
JavaScript
4
star
21

pdx-parks

find a park near you -- web
CSS
4
star
22

encodeWAV

encode wav fileblobs from web audio data
JavaScript
3
star
23

audio-fft

JavaScript
3
star
24

feedback-machine

JavaScript
3
star
25

ziggy-soundcloud

soundcloud plugin for ziggy irc bots
JavaScript
3
star
26

butts

(_|_)
JavaScript
3
star
27

Portland-park-data

park data in JSON for PDX
3
star
28

wav2mp3

JavaScript
3
star
29

ipfs-mv3-prototype

2
star
30

justaudio

pass a url or file/directory path and stream audio
JavaScript
2
star
31

npr-stream

self-contained cli for pulling in npr-streams
JavaScript
2
star
32

vis

JavaScript
2
star
33

xkcd-now

client side xkcd/now
JavaScript
2
star
34

sampler-polymer

Polymer element for a webaudio sample pad
JavaScript
2
star
35

helia-http

TypeScript
2
star
36

draft-dodger

Temporarily add jekyll post drafts to your .gitignore
JavaScript
1
star
37

man-modules

Generate man pages for all of your node_modules
JavaScript
1
star
38

butts-gm

add ascii butts to an image buffer
JavaScript
1
star
39

sequencer

audio sequencer app
JavaScript
1
star
40

bin

my ~/bin
Python
1
star
41

slskr

JavaScript
1
star
42

audiograph

Generate audio nodes and connect them into a graph.
JavaScript
1
star
43

DAW

examples of an in browser digital audio workstation
JavaScript
1
star
44

blog

HTML
1
star
45

ubu

JavaScript
1
star
46

sk-8

JavaScript
1
star
47

csvvv

A dead simple csv editor for the desktop.
JavaScript
1
star
48

react-bpm

JavaScript
1
star
49

audio-graph-editor

https://davejustice.com/audio-graph-editor
JavaScript
1
star
50

node-resolver.el

elisp package to talk to node-resolver process(install node modules in background)
Emacs Lisp
1
star
51

dotfiles

Shell
1
star
52

canvas2blob

convert canvas to file blob
JavaScript
1
star
53

node-resolver

watch for file changes and install node_modules in background
JavaScript
1
star
54

midi-bored

JavaScript
1
star
55

sequencer-too

JavaScript
1
star
56

radial-progress

fork of radial-progress d3 component
JavaScript
1
star
57

art-project

JavaScript
1
star
58

harp

JavaScript
1
star
59

colorplane-react

reactjs port of colorplane colorpicker
JavaScript
1
star
60

philipgrass

CSS
1
star