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
989fd856
Commit
989fd856
authored
8 years ago
by
Brandon Newton
Committed by
Ville Immonen
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Improve the output of scripts/init.js (#629)
* Improve the output of scripts/init.js * Add semi-colons;
parent
341d4597
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/init.js
+14
-5
scripts/init.js
with
14 additions
and
5 deletions
+14
-5
scripts/init.js
+
14
-
5
View file @
989fd856
...
...
@@ -96,15 +96,24 @@ module.exports = function(appPath, appName, verbose, originalDirectory) {
console
.
log
(
'
Success! Created
'
+
appName
+
'
at
'
+
appPath
+
'
.
'
);
console
.
log
(
'
Inside that directory, you can run several commands:
'
);
console
.
log
();
console
.
log
(
'
* npm start: Starts the development server.
'
);
console
.
log
(
'
* npm test: Starts the test runner.
'
);
console
.
log
(
'
* npm run build: Bundles the app into static files for production.
'
);
console
.
log
(
'
* npm run eject: Removes this tool. If you do this, you can’t go back!
'
);
console
.
log
(
chalk
.
cyan
(
'
npm start
'
));
console
.
log
(
'
Starts the development server.
'
);
console
.
log
();
console
.
log
(
chalk
.
cyan
(
'
npm test
'
));
console
.
log
(
'
Starts the test runner.
'
);
console
.
log
();
console
.
log
(
chalk
.
cyan
(
'
npm run build
'
));
console
.
log
(
'
Bundles the app into static files for production.
'
);
console
.
log
();
console
.
log
(
chalk
.
cyan
(
'
npm run eject
'
));
console
.
log
(
'
Removes this tool and copies build dependencies, configs,
'
);
console
.
log
(
'
and scripts into the app directory.
'
);
console
.
log
(
'
If you do this, you can’t go back!
'
);
console
.
log
();
console
.
log
(
'
We suggest that you begin by typing:
'
);
console
.
log
();
console
.
log
(
'
cd
'
,
cdpath
);
console
.
log
(
'
npm start
'
);
console
.
log
(
'
'
+
chalk
.
cyan
(
'
npm start
'
)
)
;
if
(
readmeExists
)
{
console
.
log
();
console
.
log
(
chalk
.
yellow
(
'
You had a `README.md` file, we renamed it to `README.old.md`
'
));
...
...
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