Skip to content

Commit 31b9547

Browse files
committed
chore: tidy-up template files
1 parent df0c90f commit 31b9547

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ create('create-greet', {
263263
prompt: 'if-no-arg',
264264
},
265265
},
266-
caveat: async ({ answers }) => {
267-
const plugin = answers.plugin;
268-
await execa('npm', ['install', '-S', plugin]);
269-
console.log(`${plugin} has been added`);
266+
caveat: async ({ packageDir, answers }) => {
267+
const { plugin } = answers;
268+
await execa('npm', ['install', '--prefix', packageDir, '-S', plugin]);
269+
console.log(`"${plugin}" has been added`);
270270
},
271271
});
272272
```

src/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ cd ${chalk.bold.green(name)}
1313
switch (template) {
1414
case 'typescript':
1515
text += `
16-
Inside that directory, you can run several commands:
16+
Inside the directory, you can run several commands:
1717
1818
${chalk.bold.cyan('npm run dev')}
1919
${chalk.gray("Starts 'tsc -w'.")}
2020
${chalk.bold.cyan('npm run build')}
2121
${chalk.gray('Build the app for production.')}
2222
2323
After the build, run ${chalk.cyan(
24-
'node lib/cli.js <package>'
24+
'node dist/cli.js <name>'
2525
)} to test your app.
2626
`;
2727
break;
2828
default:
29-
text += `node src/cli.js <package>
29+
text += `node src/cli.js <name>
3030
`;
3131
}
3232

templates/default/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{{description}}
44

5-
> created by [create-create-app](https://github.com/uetchy/create-create-app/blob/master/README.md).
5+
> created by [create-create-app](https://github.com/uetchy/create-create-app).
66
77
## Use
88

templates/default/src/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This is a caveat!
1010
You can change this in \`src/cli.js\`.
1111
`;
1212

13-
// See https://github.com/uetchy/create-create-app/blob/master/README.md for the all options.
13+
// See https://github.com/uetchy/create-create-app/blob/master/README.md for other options.
1414

1515
create('{{kebab name}}', {
1616
templateRoot,

templates/typescript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{{description}}
44

5-
> created by [create-create-app](https://github.com/uetchy/create-create-app/blob/master/README.md).
5+
> created by [create-create-app](https://github.com/uetchy/create-create-app).
66
77
## Use
88

templates/typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"create-create-app": "^7.0.0"
1919
},
2020
"devDependencies": {
21-
"tsup": "^3.6.1",
22-
"typescript": "^4.0.2"
21+
"tsup": "^4.6.1",
22+
"typescript": "^4.2.3"
2323
},
2424
"license": "{{license}}"
2525
}

templates/typescript/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This is a caveat!
1010
You can change this in \`src/cli.ts\`.
1111
`;
1212

13-
// See https://github.com/uetchy/create-create-app/blob/master/README.md for the all options.
13+
// See https://github.com/uetchy/create-create-app/blob/master/README.md for other options.
1414

1515
create('{{kebab name}}', {
1616
templateRoot,

0 commit comments

Comments
 (0)