1
0
Fork 0

Merge pull request #68 from zys-contribs/master

highlight command line to get started
This commit is contained in:
Travis Fischer 2018-10-01 15:39:59 -04:00 committed by Joost De Cock
parent 4e3a9be44e
commit 834223e3cc
3 changed files with 12 additions and 2 deletions

View file

@ -2,6 +2,7 @@
'use strict' 'use strict'
const path = require('path') const path = require('path')
const chalk = require('chalk')
const program = require('commander') const program = require('commander')
const { version } = require('../package') const { version } = require('../package')
@ -60,10 +61,10 @@ module.exports = async () => {
Your module has been created at ${dest}. Your module has been created at ${dest}.
To get started, in one tab, run: 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: 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 return dest

View file

@ -30,6 +30,7 @@
"publish" "publish"
], ],
"dependencies": { "dependencies": {
"chalk": "2.4.1",
"commander": "^2.16.0", "commander": "^2.16.0",
"conf": "^2.0.0", "conf": "^2.0.0",
"cp-file": "^6.0.0", "cp-file": "^6.0.0",

View file

@ -996,6 +996,14 @@ center-align@^0.1.1:
align-text "^0.1.3" align-text "^0.1.3"
lazy-cache "^1.0.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: chalk@^0.4.0:
version "0.4.0" version "0.4.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.4.0.tgz#5199a3ddcd0c1efe23bc08c1b027b06176e0c64f" resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.4.0.tgz#5199a3ddcd0c1efe23bc08c1b027b06176e0c64f"