-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new github docs folder hosting option #520
Changes from 1 commit
f8cc3b7
50e8f77
650bd43
abebfca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,7 +128,7 @@ function build(previousSizeMap) { | |
console.log('You can control this with the ' + chalk.green('homepage') + ' field in your ' + chalk.cyan('package.json') + '.'); | ||
console.log(); | ||
console.log('The ' + chalk.cyan('build') + ' folder is ready to be deployed.'); | ||
console.log('To publish it at ' + chalk.green(homepagePath) + ', run:'); | ||
console.log('To publish it at ' + chalk.green(homepagePath) + ' using the gh-pages branch, run:'); | ||
console.log(); | ||
console.log(' ' + chalk.cyan('git') + ' commit -am ' + chalk.yellow('"Save local changes"')); | ||
console.log(' ' + chalk.cyan('git') + ' checkout -B gh-pages'); | ||
|
@@ -138,6 +138,16 @@ function build(previousSizeMap) { | |
console.log(' ' + chalk.cyan('git') + ' push -f origin gh-pages'); | ||
console.log(' ' + chalk.cyan('git') + ' checkout -'); | ||
console.log(); | ||
console.log('To publish it at ' + chalk.green(homepagePath) + ' using the docs/ folder, run:'); | ||
console.log(); | ||
console.log(' ' + chalk.cyan('git') + ' commit -am ' + chalk.yellow('"Save local changes"')); | ||
console.log(' ' + chalk.cyan('rm') + ' -r docs/'); | ||
console.log(' ' + chalk.cyan('mv') + ' build/ docs/'); | ||
console.log(' ' + chalk.cyan('git') + ' add -f docs'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need |
||
console.log(' ' + chalk.cyan('git') + ' commit -am ' + chalk.yellow('"Rebuild website"')); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fine to keep for consistency so people don’t think it matters and stress over it. |
||
console.log(' ' + chalk.cyan('git') + ' filter-branch -f --prune-empty --subdirectory-filter docs'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need this command? I think it's only necessary for |
||
console.log(' ' + chalk.cyan('git') + ' push -f origin master'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, it seems like no need for |
||
console.log(); | ||
} else if (publicPath !== '/') { | ||
// "homepage": "http://mywebsite.com/project" | ||
console.log('The project was built assuming it is hosted at ' + chalk.green(publicPath) + '.'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don’t we need
-rf
here?