1
1
#!/usr/bin/env node
2
2
3
- const ghpages = require ( '../lib/index.js' ) ;
3
+ const plpages = require ( '../lib/index.js' ) ;
4
4
const { Command} = require ( 'commander' ) ;
5
5
const path = require ( 'path' ) ;
6
6
const pkg = require ( '../package.json' ) ;
@@ -9,7 +9,7 @@ const addr = require('email-addresses');
9
9
function publish ( dist , config ) {
10
10
return new Promise ( ( resolve , reject ) => {
11
11
const basePath = path . resolve ( process . cwd ( ) , dist ) ;
12
- ghpages . publish ( basePath , config , ( err ) => {
12
+ plpages . publish ( basePath , config , ( err ) => {
13
13
if ( err ) {
14
14
return reject ( err ) ;
15
15
}
@@ -29,39 +29,34 @@ function main(args) {
29
29
. option (
30
30
'-s, --src <src>' ,
31
31
'Pattern used to select which files to publish' ,
32
- ghpages . defaults . src
32
+ plpages . defaults . src
33
33
)
34
34
. option (
35
35
'-b, --branch <branch>' ,
36
36
'Name of the branch you are pushing to' ,
37
- ghpages . defaults . branch
37
+ plpages . defaults . branch
38
38
)
39
39
. option (
40
40
'-e, --dest <dest>' ,
41
41
'Target directory within the destination branch (relative to the root)' ,
42
- ghpages . defaults . dest
42
+ plpages . defaults . dest
43
43
)
44
44
. option ( '-a, --add' , 'Only add, and never remove existing files' )
45
45
. option ( '-x, --silent' , 'Do not output the repository url' )
46
46
. option (
47
47
'-m, --message <message>' ,
48
48
'commit message' ,
49
- ghpages . defaults . message
49
+ plpages . defaults . message
50
50
)
51
51
. option ( '-g, --tag <tag>' , 'add tag to commit' )
52
- . option ( '--git <git>' , 'Path to git executable' , ghpages . defaults . git )
52
+ . option ( '--git <git>' , 'Path to git executable' , plpages . defaults . git )
53
53
. option ( '-t, --dotfiles' , 'Include dotfiles' )
54
- . option ( '--nojekyll' , 'Add a .nojekyll file to disable Jekyll' )
55
- . option (
56
- '--cname <CNAME>' ,
57
- 'Add a CNAME file with the name of your custom domain'
58
- )
59
54
. option ( '-r, --repo <repo>' , 'URL of the repository you are pushing to' )
60
- . option ( '-p, --depth <depth>' , 'depth for clone' , ghpages . defaults . depth )
55
+ . option ( '-p, --depth <depth>' , 'depth for clone' , plpages . defaults . depth )
61
56
. option (
62
57
'-o, --remote <name>' ,
63
58
'The name of the remote' ,
64
- ghpages . defaults . remote
59
+ plpages . defaults . remote
65
60
)
66
61
. option (
67
62
'-u, --user <address>' ,
@@ -71,7 +66,7 @@ function main(args) {
71
66
'-v, --remove <pattern>' ,
72
67
'Remove files that match the given pattern ' +
73
68
'(ignored if used together with --add).' ,
74
- ghpages . defaults . remove
69
+ plpages . defaults . remove
75
70
)
76
71
. option ( '-n, --no-push' , 'Commit only (with no push)' )
77
72
. option (
@@ -126,7 +121,6 @@ function main(args) {
126
121
git : options . git ,
127
122
depth : options . depth ,
128
123
dotfiles : ! ! options . dotfiles ,
129
- nojekyll : ! ! options . nojekyll ,
130
124
add : ! ! options . add ,
131
125
remove : options . remove ,
132
126
remote : options . remote ,
0 commit comments