Socket
Socket
Sign inDemoInstall

gh-pages

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-pages - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

LICENSE

25

bin/gh-pages.js

@@ -29,3 +29,3 @@ #!/usr/bin/env node

'Pattern used to select which files to publish',
'**/*'
ghpages.defaults.src
)

@@ -35,3 +35,3 @@ .option(

'Name of the branch you are pushing to',
'gh-pages'
ghpages.defaults.branch
)

@@ -41,14 +41,22 @@ .option(

'Target directory within the destination branch (relative to the root)',
'.'
ghpages.defaults.dest
)
.option('-a, --add', 'Only add, and never remove existing files')
.option('-x, --silent', 'Do not output the repository url')
.option('-m, --message <message>', 'commit message', 'Updates')
.option(
'-m, --message <message>',
'commit message',
ghpages.defaults.message
)
.option('-g, --tag <tag>', 'add tag to commit')
.option('--git <git>', 'Path to git executable')
.option('--git <git>', 'Path to git executable', ghpages.defaults.git)
.option('-t, --dotfiles', 'Include dotfiles')
.option('-r, --repo <repo>', 'URL of the repository you are pushing to')
.option('-p, --depth <depth>', 'depth for clone', 1)
.option('-o, --remote <name>', 'The name of the remote', 'origin')
.option('-p, --depth <depth>', 'depth for clone', ghpages.defaults.depth)
.option(
'-o, --remote <name>',
'The name of the remote',
ghpages.defaults.remote
)
.option(
'-u, --user <address>',

@@ -61,3 +69,3 @@ 'The name and email of the user (defaults to the git config). Format is "Your Name <email@example.com>".'

'(ignored if used together with --add).',
'.'
ghpages.defaults.only
)

@@ -88,2 +96,3 @@ .option('-n, --no-push', 'Commit only (with no push)')

git: program.git,
depth: program.depth,
dotfiles: !!program.dotfiles,

@@ -90,0 +99,0 @@ add: !!program.add,

@@ -1,3 +0,7 @@

## v2.1.0
## v2.1.1
* [#312](https://github.com/tschaub/gh-pages/pull/312) - Add default for '--git' option ([@tschaub](https://github.com/tschaub))
## v2.1.0
* [#307](https://github.com/tschaub/gh-pages/pull/307) - Dev dependency updates ([@tschaub](https://github.com/tschaub))

@@ -4,0 +8,0 @@ * [#303](https://github.com/tschaub/gh-pages/pull/303) - Support '--git' CLI option ([@JRJurman](https://github.com/JRJurman))

@@ -25,2 +25,17 @@ const Git = require('./git');

exports.defaults = {
dest: '.',
add: false,
git: 'git',
depth: 1,
dotfiles: false,
branch: 'gh-pages',
remote: 'origin',
src: '**/*',
only: '.',
push: true,
message: 'Updates',
silent: false
};
/**

@@ -38,19 +53,4 @@ * Push a git branch to a remote (pushes gh-pages by default).

const defaults = {
dest: '.',
add: false,
git: 'git',
depth: 1,
dotfiles: false,
branch: 'gh-pages',
remote: 'origin',
src: '**/*',
only: '.',
push: true,
message: 'Updates',
silent: false
};
const options = Object.assign({}, exports.defaults, config);
const options = Object.assign({}, defaults, config);
if (!callback) {

@@ -57,0 +57,0 @@ callback = function(err) {

{
"name": "gh-pages",
"version": "2.1.0",
"version": "2.1.1",
"description": "Publish to a gh-pages branch on GitHub (or any other branch on any other remote)",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc