Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 12b0972

Browse filesBrowse files
committed
Make build output more chill
1 parent f1d2cd5 commit 12b0972
Copy full SHA for 12b0972

File tree

Expand file treeCollapse file tree

1 file changed

+10
-10
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-10
lines changed

‎scripts/build.js

Copy file name to clipboardExpand all lines: scripts/build.js
+10-10Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.