create-acmekit-app 2.13.3 → 2.13.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/.turbo/turbo-build.log +1 -0
- package/CHANGELOG.md +10 -0
- package/dist/utils/prepare-project.js +18 -9
- package/package.json +3 -3
- package/src/utils/prepare-project.ts +21 -11
package/.turbo/turbo-build.log
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -157,15 +157,24 @@ async function prepareProject({ directory, projectName, dbName, dbConnectionStri
|
|
|
157
157
|
// TODO for now we just seed the default data
|
|
158
158
|
// we should add onboarding seeding again if it makes
|
|
159
159
|
// since once we re-introduce the onboarding flow.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
160
|
+
const packageJsonForSeed = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"));
|
|
161
|
+
if (packageJsonForSeed.scripts?.seed) {
|
|
162
|
+
factBoxOptions.interval = displayFactBox({
|
|
163
|
+
...factBoxOptions,
|
|
164
|
+
title: "Seeding database...",
|
|
165
|
+
});
|
|
166
|
+
await packageManager.runCommand("seed", execOptions);
|
|
167
|
+
displayFactBox({
|
|
168
|
+
...factBoxOptions,
|
|
169
|
+
message: "Seeded database with demo data",
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
displayFactBox({
|
|
174
|
+
...factBoxOptions,
|
|
175
|
+
message: "Skipped seeding (starter has no seed script)",
|
|
176
|
+
});
|
|
177
|
+
}
|
|
169
178
|
}
|
|
170
179
|
// if installation includes Next.js, retrieve the publishable API key
|
|
171
180
|
// from the backend and add it as an enviornment variable
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-acmekit-app",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.4",
|
|
4
4
|
"description": "Create a AcmeKit project using a single command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"test": "../../../node_modules/.bin/jest --passWithNoTests src"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@acmekit/deps": "2.13.
|
|
18
|
-
"@acmekit/telemetry": "2.13.
|
|
17
|
+
"@acmekit/deps": "2.13.4",
|
|
18
|
+
"@acmekit/telemetry": "2.13.4",
|
|
19
19
|
"boxen": "^5.0.1",
|
|
20
20
|
"chalk": "^4.1.2",
|
|
21
21
|
"commander": "^11.0.0",
|
|
@@ -279,17 +279,27 @@ async function prepareProject({
|
|
|
279
279
|
// TODO for now we just seed the default data
|
|
280
280
|
// we should add onboarding seeding again if it makes
|
|
281
281
|
// since once we re-introduce the onboarding flow.
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
282
|
+
const packageJsonForSeed = JSON.parse(
|
|
283
|
+
fs.readFileSync(packageJsonPath, "utf-8")
|
|
284
|
+
)
|
|
285
|
+
if (packageJsonForSeed.scripts?.seed) {
|
|
286
|
+
factBoxOptions.interval = displayFactBox({
|
|
287
|
+
...factBoxOptions,
|
|
288
|
+
title: "Seeding database...",
|
|
289
|
+
})
|
|
290
|
+
|
|
291
|
+
await packageManager.runCommand("seed", execOptions)
|
|
292
|
+
|
|
293
|
+
displayFactBox({
|
|
294
|
+
...factBoxOptions,
|
|
295
|
+
message: "Seeded database with demo data",
|
|
296
|
+
})
|
|
297
|
+
} else {
|
|
298
|
+
displayFactBox({
|
|
299
|
+
...factBoxOptions,
|
|
300
|
+
message: "Skipped seeding (starter has no seed script)",
|
|
301
|
+
})
|
|
302
|
+
}
|
|
293
303
|
}
|
|
294
304
|
|
|
295
305
|
// if installation includes Next.js, retrieve the publishable API key
|