Skip to content

Commit d974de0

Browse files
committed
cli
1 parent 0a85e58 commit d974de0

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

packages/create-cosmos-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
},
8080
"dependencies": {
8181
"@babel/runtime": "^7.11.2",
82+
"ansi-colors": "4.1.3",
8283
"dargs": "7.0.0",
8384
"fuzzy": "0.1.3",
8485
"inquirerer": "0.1.3",

packages/create-cosmos-app/src/git-cca-template.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as shell from 'shelljs';
2+
import * as c from 'ansi-colors';
23
import { prompt } from './prompt';
34
import { join, dirname } from 'path';
45
import { sync as mkdirp } from 'mkdirp';
@@ -71,6 +72,9 @@ export const createGitApp = (repo: string) => {
7172
shell.rm('-rf', dir);
7273
shell.cd(`./${name}`);
7374
shell.exec(`yarn`);
75+
shell.cd(currentDirecotry);
76+
const cmd = `cd ./${name} && yarn dev`;
77+
7478
console.log(`
7579
7680
| _ _
@@ -82,7 +86,7 @@ ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-
8286
8387
Now, run this command:
8488
85-
yarn dev
89+
${c.bold.whiteBright(cmd)}
8690
`);
8791
};
8892
};

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5669,6 +5669,11 @@ ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4:
56695669
json-schema-traverse "^0.4.1"
56705670
uri-js "^4.2.2"
56715671

5672+
5673+
version "4.1.3"
5674+
resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b"
5675+
integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==
5676+
56725677
ansi-escapes@^2.0.0:
56735678
version "2.0.0"
56745679
resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-2.0.0.tgz"

0 commit comments

Comments
 (0)