File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 2
2
'use strict'
3
3
4
4
const path = require ( 'path' )
5
+ const chalk = require ( 'chalk' )
5
6
const program = require ( 'commander' )
6
7
const { version } = require ( '../package' )
7
8
@@ -60,10 +61,10 @@ module.exports = async () => {
60
61
Your module has been created at ${ dest } .
61
62
62
63
To get started, in one tab, run:
63
- $ \x1B[36mcd ${ params . shortName } && ${ params . manager } start\x1B[39m
64
+ $ ${ chalk . cyan ( `cd ${ params . shortName } && ${ params . manager } start` ) }
64
65
65
66
And in another tab, run the create-react-app dev server:
66
- $ \x1B[36mcd ${ path . join ( params . shortName , 'example' ) } && ${ params . manager } start\x1B[39m
67
+ $ ${ chalk . cyan ( `cd ${ path . join ( params . shortName , 'example' ) } && ${ params . manager } start` ) }
67
68
` )
68
69
69
70
return dest
Original file line number Diff line number Diff line change 30
30
" publish"
31
31
],
32
32
"dependencies" : {
33
+ "chalk" : " 2.4.1" ,
33
34
"commander" : " ^2.16.0" ,
34
35
"conf" : " ^2.0.0" ,
35
36
"cp-file" : " ^6.0.0" ,
Original file line number Diff line number Diff line change @@ -996,6 +996,14 @@ center-align@^0.1.1:
996
996
align-text "^0.1.3"
997
997
lazy-cache "^1.0.3"
998
998
999
+
1000
+ version "2.4.1"
1001
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
1002
+ dependencies :
1003
+ ansi-styles "^3.2.1"
1004
+ escape-string-regexp "^1.0.5"
1005
+ supports-color "^5.3.0"
1006
+
999
1007
chalk@^0.4.0 :
1000
1008
version "0.4.0"
1001
1009
resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.4.0.tgz#5199a3ddcd0c1efe23bc08c1b027b06176e0c64f"
You can’t perform that action at this time.
0 commit comments