create-astro 1.2.1 → 1.2.3
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/create-astro.mjs +1 -0
- package/dist/index.js +5 -3
- package/dist/messages.js +1 -1
- package/package.json +2 -2
package/create-astro.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ async function main() {
|
|
|
112
112
|
type: "text",
|
|
113
113
|
name: "directory",
|
|
114
114
|
message: "Where would you like to create your new project?",
|
|
115
|
-
initial:
|
|
115
|
+
initial: generateProjectName(),
|
|
116
116
|
validate(value) {
|
|
117
117
|
if (!isValidProjectDirectory(value)) {
|
|
118
118
|
return notEmptyMsg(value);
|
|
@@ -139,7 +139,7 @@ async function main() {
|
|
|
139
139
|
],
|
|
140
140
|
{ onCancel: () => ora().info(dim("Operation cancelled. See you later, astronaut!")) }
|
|
141
141
|
);
|
|
142
|
-
if (!options.template) {
|
|
142
|
+
if (!options.template || options.template === true) {
|
|
143
143
|
ora().info(dim("No template provided. See you later, astronaut!"));
|
|
144
144
|
process.exit(1);
|
|
145
145
|
}
|
|
@@ -302,7 +302,9 @@ ${bold(
|
|
|
302
302
|
let projectDir = path.relative(process.cwd(), cwd);
|
|
303
303
|
const devCmd = pkgManager === "npm" ? "npm run dev" : `${pkgManager} dev`;
|
|
304
304
|
await nextSteps({ projectDir, devCmd });
|
|
305
|
-
|
|
305
|
+
if (!args.skipHouston) {
|
|
306
|
+
await say(["Good luck out there, astronaut!"]);
|
|
307
|
+
}
|
|
306
308
|
}
|
|
307
309
|
function emojiWithFallback(char, fallback) {
|
|
308
310
|
return process.platform !== "win32" ? char : fallback;
|
package/dist/messages.js
CHANGED
|
@@ -12,7 +12,7 @@ const welcome = [
|
|
|
12
12
|
`Let's make the web weird!`,
|
|
13
13
|
`Let's make the web a better place!`,
|
|
14
14
|
`Let's create a new project!`,
|
|
15
|
-
`Let's create something
|
|
15
|
+
`Let's create something unique!`,
|
|
16
16
|
`Time to build a new website.`,
|
|
17
17
|
`Time to build a faster website.`,
|
|
18
18
|
`Time to build a sweet new website.`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astro",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "withastro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"tsconfigs"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@astrojs/cli-kit": "^0.1.
|
|
26
|
+
"@astrojs/cli-kit": "^0.1.4",
|
|
27
27
|
"chalk": "^5.0.1",
|
|
28
28
|
"comment-json": "^4.2.3",
|
|
29
29
|
"execa": "^6.1.0",
|