Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
505ddbe6
Commit
505ddbe6
authored
8 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Make build output more chill
parent
d21b7da8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/build.js
+10
-10
scripts/build.js
with
10 additions
and
10 deletions
+10
-10
scripts/build.js
+
10
-
10
View file @
505ddbe6
...
@@ -130,13 +130,13 @@ function build(previousSizeMap) {
...
@@ -130,13 +130,13 @@ function build(previousSizeMap) {
console
.
log
(
'
The
'
+
chalk
.
cyan
(
'
build
'
)
+
'
folder is ready to be deployed.
'
);
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
)
+
'
, run:
'
);
console
.
log
();
console
.
log
();
console
.
log
(
'
'
+
chalk
.
blue
(
'
git
'
)
+
chalk
.
cyan
(
'
commit -am
'
)
+
chalk
.
yellow
(
'
"Save local changes"
'
));
console
.
log
(
'
'
+
chalk
.
cyan
(
'
git
'
)
+
'
commit -am
'
+
chalk
.
yellow
(
'
"Save local changes"
'
));
console
.
log
(
'
'
+
chalk
.
blue
(
'
git
'
)
+
chalk
.
cyan
(
'
checkout -B gh-pages
'
)
)
;
console
.
log
(
'
'
+
chalk
.
cyan
(
'
git
'
)
+
'
checkout -B gh-pages
'
);
console
.
log
(
'
'
+
chalk
.
blue
(
'
git
'
)
+
chalk
.
cyan
(
'
add -f build
'
)
)
;
console
.
log
(
'
'
+
chalk
.
cyan
(
'
git
'
)
+
'
add -f build
'
);
console
.
log
(
'
'
+
chalk
.
blue
(
'
git
'
)
+
chalk
.
cyan
(
'
commit -am
'
+
chalk
.
yellow
(
'
"Rebuild website"
'
))
)
;
console
.
log
(
'
'
+
chalk
.
cyan
(
'
git
'
)
+
'
commit -am
'
+
chalk
.
yellow
(
'
"Rebuild website"
'
));
console
.
log
(
'
'
+
chalk
.
blue
(
'
git
'
)
+
chalk
.
cyan
(
'
filter-branch -f --prune-empty --subdirectory-filter build
'
)
)
;
console
.
log
(
'
'
+
chalk
.
cyan
(
'
git
'
)
+
'
filter-branch -f --prune-empty --subdirectory-filter build
'
);
console
.
log
(
'
'
+
chalk
.
blue
(
'
git
'
)
+
chalk
.
cyan
(
'
push -f origin gh-pages
'
)
)
;
console
.
log
(
'
'
+
chalk
.
cyan
(
'
git
'
)
+
'
push -f origin gh-pages
'
);
console
.
log
(
'
'
+
chalk
.
blue
(
'
git
'
)
+
chalk
.
cyan
(
'
checkout -
'
)
)
;
console
.
log
(
'
'
+
chalk
.
cyan
(
'
git
'
)
+
'
checkout -
'
);
console
.
log
();
console
.
log
();
}
else
if
(
publicPath
!==
'
/
'
)
{
}
else
if
(
publicPath
!==
'
/
'
)
{
// "homepage": "http://mywebsite.com/project"
// "homepage": "http://mywebsite.com/project"
...
@@ -163,9 +163,9 @@ function build(previousSizeMap) {
...
@@ -163,9 +163,9 @@ function build(previousSizeMap) {
console
.
log
(
'
The
'
+
chalk
.
cyan
(
'
build
'
)
+
'
folder is ready to be deployed.
'
);
console
.
log
(
'
The
'
+
chalk
.
cyan
(
'
build
'
)
+
'
folder is ready to be deployed.
'
);
console
.
log
(
'
You may also serve it locally with a static server:
'
)
console
.
log
(
'
You may also serve it locally with a static server:
'
)
console
.
log
();
console
.
log
();
console
.
log
(
'
'
+
chalk
.
blue
(
'
npm
'
)
+
chalk
.
cyan
(
'
install -g pushstate-server
'
)
)
;
console
.
log
(
'
'
+
chalk
.
cyan
(
'
npm
'
)
+
'
install -g pushstate-server
'
);
console
.
log
(
'
'
+
chalk
.
blue
(
'
pushstate-server
'
)
+
chalk
.
cyan
(
'
build
'
)
)
;
console
.
log
(
'
'
+
chalk
.
cyan
(
'
pushstate-server
'
)
+
'
build
'
);
console
.
log
(
'
'
+
chalk
.
blue
(
openCommand
)
+
chalk
.
cyan
(
'
http://localhost:9000
'
)
)
;
console
.
log
(
'
'
+
chalk
.
cyan
(
openCommand
)
+
'
http://localhost:9000
'
);
console
.
log
();
console
.
log
();
}
}
});
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment