Merge pull request #68 from zys-contribs/master
highlight command line to get started
This commit is contained in:
parent
4e3a9be44e
commit
834223e3cc
3 changed files with 12 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
'use strict'
|
||||
|
||||
const path = require('path')
|
||||
const chalk = require('chalk')
|
||||
const program = require('commander')
|
||||
const { version } = require('../package')
|
||||
|
||||
|
@ -60,10 +61,10 @@ module.exports = async () => {
|
|||
Your module has been created at ${dest}.
|
||||
|
||||
To get started, in one tab, run:
|
||||
$ cd ${params.shortName} && ${params.manager} start
|
||||
$ ${chalk.cyan(`cd ${params.shortName} && ${params.manager} start`)}
|
||||
|
||||
And in another tab, run the create-react-app dev server:
|
||||
$ cd ${path.join(params.shortName, 'example')} && ${params.manager} start
|
||||
$ ${chalk.cyan(`cd ${path.join(params.shortName, 'example')} && ${params.manager} start`)}
|
||||
`)
|
||||
|
||||
return dest
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
"publish"
|
||||
],
|
||||
"dependencies": {
|
||||
"chalk": "2.4.1",
|
||||
"commander": "^2.16.0",
|
||||
"conf": "^2.0.0",
|
||||
"cp-file": "^6.0.0",
|
||||
|
|
|
@ -996,6 +996,14 @@ center-align@^0.1.1:
|
|||
align-text "^0.1.3"
|
||||
lazy-cache "^1.0.3"
|
||||
|
||||
chalk@2.4.1:
|
||||
version "2.4.1"
|
||||
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
|
||||
dependencies:
|
||||
ansi-styles "^3.2.1"
|
||||
escape-string-regexp "^1.0.5"
|
||||
supports-color "^5.3.0"
|
||||
|
||||
chalk@^0.4.0:
|
||||
version "0.4.0"
|
||||
resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.4.0.tgz#5199a3ddcd0c1efe23bc08c1b027b06176e0c64f"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue