New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

github-pages-publisher

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-pages-publisher

A simple and transparent way to publish your web-resources to Github Pages

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
7
75%
Maintainers
1
Weekly downloads
 
Created
Source

License: MIT

What?

A simple and transparent way to publish your web-resources to Github Pages.

User Story

  • It's very inefficient to run many git commands per release,wish the process to be simple.
  • Every release makes the git repository huge, wish to publish an unhistorical gh-pages branch.

How to use?

npm i -D github-pages-publisher

In the simplest scenario, we want to publish our web resources to the gh-pages branch, just need specifying the path to the web resource using -a or --assetsPath. eg:

npx gp -a 'packages/web/dist'

you will see a worktree directory called .gh-pages created,Now that the release is complete and you can try visiting your page.

Sometimes you want to customize some behavior, such as specifying the path to the working tree,or the name of the gh-pages branch. You can specify this through the following Settings:

-a,--assetsPath	The path of the assets to be deployed to gh-pages branch.
-b,--branch	The branch where the "assetsPath" is located.(default is current branch)
-w,--worktreePath The Path to store the gh-pages worktree.(default is ".gh-pages" relative to "pwd")
-p,--pagesBranch The branch to deploy gh-pages.(default is "gh-pages")

Keywords

git

FAQs

Package last updated on 12 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts