vgh

0.0.1 • Public • Published

vgh-pages

What

CLI to quickly deploy VueJS projects to GitHub Pages. This is pretty useful for quick mocks and prototypes.

Why

why not?

How

Installation
If you don't have them already, please install the following dependencies:

Then you can install vgh-pages through a package manager of your preference:

# using yarn 
yarn add global vgh-pages
# using npm 
npm i -g vgh-pages
Usage
# case your project goes directly in the root 
# or your publicPath is already properly set inside the vue.config.js 
vgh
# or else 
# don't forguet to set your public path, the project name that appears after the slash. 
# (e.g.: https://[your-username].github.io/[your-project-name]) 
vgh --public-path [your-project-name]
 
flag Usage example Default
--public-path [string] -p [path] or --public-path [path] vgh -p your-project-name '/'
--dir [string] -d [dir] or --dir [dir] vgh -d dist /dist
--add [bool] -a or --add-dotfiles vgh -a false
--branch [string] -b [branch] or --branch [branch] vgh -b gh-pages gh-pages
--email [string] -e [email] or --email [email] vgh -e you@email.com Implyied from your Git Global variables or undefined
--keep-existing-files [bool] -k or --keep-existing-files vgh -k false
--message [string] -m [message] or --message [message] vgh -m 'your commit message' 'Updates for GitHub Pages'
--name [string] -n [name] or --name [name] vgh -n 'your-user-name' Implyied from your Git Global variables or undefined
--skip-build [bool] -s or --skip-build vgh -s false
--tag [string] -t [tag] or --tag [tag] vgh -t tag-name ''

Don't forget to handle the relative paths ♡

@ instead of ..

Package Sidebar

Install

npm i vgh

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

8.29 kB

Total Files

5

Last publish

Collaborators

  • taliescher