Skip to content

Commit 505ddbe

Browse files
committed
Make build output more chill
1 parent d21b7da commit 505ddbe

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

scripts/build.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ function build(previousSizeMap) {
130130
console.log('The ' + chalk.cyan('build') + ' folder is ready to be deployed.');
131131
console.log('To publish it at ' + chalk.green(homepagePath) + ', run:');
132132
console.log();
133-
console.log(' ' + chalk.blue('git') + chalk.cyan(' commit -am ') + chalk.yellow('"Save local changes"'));
134-
console.log(' ' + chalk.blue('git') + chalk.cyan(' checkout -B gh-pages'));
135-
console.log(' ' + chalk.blue('git') + chalk.cyan(' add -f build'));
136-
console.log(' ' + chalk.blue('git') + chalk.cyan(' commit -am ' + chalk.yellow('"Rebuild website"')));
137-
console.log(' ' + chalk.blue('git') + chalk.cyan(' filter-branch -f --prune-empty --subdirectory-filter build'));
138-
console.log(' ' + chalk.blue('git') + chalk.cyan(' push -f origin gh-pages'));
139-
console.log(' ' + chalk.blue('git') + chalk.cyan(' checkout -'));
133+
console.log(' ' + chalk.cyan('git') + ' commit -am ' + chalk.yellow('"Save local changes"'));
134+
console.log(' ' + chalk.cyan('git') + ' checkout -B gh-pages');
135+
console.log(' ' + chalk.cyan('git') + ' add -f build');
136+
console.log(' ' + chalk.cyan('git') + ' commit -am ' + chalk.yellow('"Rebuild website"'));
137+
console.log(' ' + chalk.cyan('git') + ' filter-branch -f --prune-empty --subdirectory-filter build');
138+
console.log(' ' + chalk.cyan('git') + ' push -f origin gh-pages');
139+
console.log(' ' + chalk.cyan('git') + ' checkout -');
140140
console.log();
141141
} else if (publicPath !== '/') {
142142
// "homepage": "http://mywebsite.com/project"
@@ -163,9 +163,9 @@ function build(previousSizeMap) {
163163
console.log('The ' + chalk.cyan('build') + ' folder is ready to be deployed.');
164164
console.log('You may also serve it locally with a static server:')
165165
console.log();
166-
console.log(' ' + chalk.blue('npm') + chalk.cyan(' install -g pushstate-server'));
167-
console.log(' ' + chalk.blue('pushstate-server') + chalk.cyan(' build'));
168-
console.log(' ' + chalk.blue(openCommand) + chalk.cyan(' http://localhost:9000'));
166+
console.log(' ' + chalk.cyan('npm') + ' install -g pushstate-server');
167+
console.log(' ' + chalk.cyan('pushstate-server') + ' build');
168+
console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:9000');
169169
console.log();
170170
}
171171
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy