create-astro 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -7
- package/dist/index.js +15 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,13 +40,14 @@ May be provided in place of prompts
|
|
|
40
40
|
|
|
41
41
|
| Name | Description |
|
|
42
42
|
|:-------------|:----------------------------------------------------|
|
|
43
|
-
| `--template <name
|
|
44
|
-
| `--install /
|
|
45
|
-
| `--git /
|
|
46
|
-
| `--yes (
|
|
47
|
-
| `--no (
|
|
48
|
-
| `--dry-run | Walk through steps without executing. |
|
|
49
|
-
| `--skip-houston | Skip Houston animation. |
|
|
43
|
+
| `--template <name>` | Specify your template. |
|
|
44
|
+
| `--install` / `--no-install` | Install dependencies (or not). |
|
|
45
|
+
| `--git` / `--no-git` | Initialize git repo (or not). |
|
|
46
|
+
| `--yes` (`-y`) | Skip all prompt by accepting defaults. |
|
|
47
|
+
| `--no` (`-n`) | Skip all prompt by declining defaults. |
|
|
48
|
+
| `--dry-run` | Walk through steps without executing. |
|
|
49
|
+
| `--skip-houston` | Skip Houston animation. |
|
|
50
|
+
| `--typescript <option>` | TypeScript option: `strict` / `strictest` / `relaxed`. |
|
|
50
51
|
|
|
51
52
|
[examples]: https://github.com/withastro/astro/tree/main/examples
|
|
52
53
|
[typescript]: https://github.com/withastro/astro/tree/main/packages/astro/tsconfigs
|
package/dist/index.js
CHANGED
|
@@ -362,7 +362,7 @@ function printHelp({
|
|
|
362
362
|
if (headline) {
|
|
363
363
|
message.push(
|
|
364
364
|
linebreak(),
|
|
365
|
-
`${title(commandName)} ${color.green(`v${"3.0.
|
|
365
|
+
`${title(commandName)} ${color.green(`v${"3.0.4"}`)} ${headline}`
|
|
366
366
|
);
|
|
367
367
|
}
|
|
368
368
|
if (usage) {
|
|
@@ -568,13 +568,17 @@ function help() {
|
|
|
568
568
|
headline: "Scaffold Astro projects.",
|
|
569
569
|
tables: {
|
|
570
570
|
Flags: [
|
|
571
|
+
["--help (-h)", "See all available flags."],
|
|
571
572
|
["--template <name>", "Specify your template."],
|
|
572
573
|
["--install / --no-install", "Install dependencies (or not)."],
|
|
573
574
|
["--git / --no-git", "Initialize git repo (or not)."],
|
|
574
575
|
["--yes (-y)", "Skip all prompt by accepting defaults."],
|
|
575
576
|
["--no (-n)", "Skip all prompt by declining defaults."],
|
|
576
577
|
["--dry-run", "Walk through steps without executing."],
|
|
577
|
-
["--skip-houston", "Skip Houston animation."]
|
|
578
|
+
["--skip-houston", "Skip Houston animation."],
|
|
579
|
+
["--ref", "Choose astro branch (default: latest)."],
|
|
580
|
+
["--fancy", "Enable full unicode support for Windows."],
|
|
581
|
+
["--typescript <option>", "TypeScript option: strict | strictest | relaxed."]
|
|
578
582
|
]
|
|
579
583
|
}
|
|
580
584
|
});
|
|
@@ -987,7 +991,15 @@ async function main() {
|
|
|
987
991
|
help();
|
|
988
992
|
return;
|
|
989
993
|
}
|
|
990
|
-
const steps = [
|
|
994
|
+
const steps = [
|
|
995
|
+
intro,
|
|
996
|
+
projectName,
|
|
997
|
+
template,
|
|
998
|
+
dependencies,
|
|
999
|
+
typescript,
|
|
1000
|
+
git,
|
|
1001
|
+
next
|
|
1002
|
+
];
|
|
991
1003
|
for (const step of steps) {
|
|
992
1004
|
await step(ctx);
|
|
993
1005
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astro",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "withastro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/which-pm-runs": "^1.0.0",
|
|
36
36
|
"arg": "^5.0.2",
|
|
37
|
-
"astro-scripts": "0.0.
|
|
37
|
+
"astro-scripts": "0.0.12",
|
|
38
38
|
"strip-ansi": "^7.0.1",
|
|
39
39
|
"strip-json-comments": "^5.0.0",
|
|
40
40
|
"which-pm-runs": "^1.1.0"
|