create-smoodly-app 0.0.52 → 0.0.53
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/dist/index.js +3 -4
- package/package.json +1 -1
- package/templates/astro-blank/_gitignore +1 -0
- package/templates/astro-blank/package.json +1 -1
- package/templates/astro-blank-intl/_gitignore +1 -0
- package/templates/astro-blank-intl/package.json +1 -1
- package/templates/astro-lorem/_gitignore +1 -0
- package/templates/astro-lorem/package.json +1 -1
- package/templates/astro-lorem-intl/_gitignore +1 -0
- package/templates/astro-lorem-intl/package.json +1 -1
- package/templates/blank/_gitignore +1 -0
- package/templates/blank/package.json +1 -1
- package/templates/blank-intl/_gitignore +1 -0
- package/templates/blank-intl/package.json +1 -1
- package/templates/lorem/_gitignore +1 -0
- package/templates/lorem/package.json +1 -1
- package/templates/lorem/smoodly/config.ts +1 -1
- package/templates/lorem-intl/_gitignore +1 -0
- package/templates/lorem-intl/package.json +1 -1
- package/templates/lorem-intl/smoodly/config.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -242,9 +242,8 @@ function typedValues(flags2) {
|
|
|
242
242
|
if (publishableKey !== void 0) checked(publishableKey, checkPublishableKey);
|
|
243
243
|
return { spaceId, secretKey, publishableKey };
|
|
244
244
|
}
|
|
245
|
-
async function spaceValues(flags2) {
|
|
245
|
+
async function spaceValues(flags2, typed) {
|
|
246
246
|
const hidden = flags2.apiUrl ? { apiUrl: flags2.apiUrl } : {};
|
|
247
|
-
const typed = typedValues(flags2);
|
|
248
247
|
if (typed.spaceId !== void 0 && typed.secretKey !== void 0 && typed.publishableKey !== void 0) {
|
|
249
248
|
return { spaceId: typed.spaceId, secretKey: typed.secretKey, publishableKey: typed.publishableKey, ...hidden };
|
|
250
249
|
}
|
|
@@ -257,7 +256,7 @@ async function spaceValues(flags2) {
|
|
|
257
256
|
return { spaceId, secretKey, publishableKey, ...hidden };
|
|
258
257
|
}
|
|
259
258
|
async function resolveAnswers(flags2, ctx) {
|
|
260
|
-
typedValues(flags2);
|
|
259
|
+
const typedFlags = typedValues(flags2);
|
|
261
260
|
const folderName = (typed2) => nameFromDir(resolve2(ctx.cwd, typed2));
|
|
262
261
|
const typed = flags2.name ?? await answer(p.text({ message: "Project folder", placeholder: "my-site", validate: (v) => v ? validName(folderName(v)) ?? void 0 : "A folder name or path." }));
|
|
263
262
|
const dir = resolve2(ctx.cwd, typed);
|
|
@@ -296,7 +295,7 @@ async function resolveAnswers(flags2, ctx) {
|
|
|
296
295
|
]
|
|
297
296
|
})
|
|
298
297
|
));
|
|
299
|
-
const space = await spaceValues(flags2);
|
|
298
|
+
const space = await spaceValues(flags2, typedFlags);
|
|
300
299
|
return { name, dir, space, smoodlyDep: flags2.smoodlyDep, locales, starter, framework };
|
|
301
300
|
}
|
|
302
301
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-smoodly-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.53",
|
|
4
4
|
"description": "Create a Smoodly site: a fresh Astro or Next.js app with the admin mounted, its env file on a space's three values, its schema pushed and its starter content seeded.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -44,6 +44,6 @@ export const config = defineConfig({
|
|
|
44
44
|
// The custom section (spec 2026-09-14 §6): the editor's own rows of
|
|
45
45
|
// columns. The columns take the article toolset (headings, lists,
|
|
46
46
|
// images, Callout and Cta); smoodly/views.ts binds the RichText that
|
|
47
|
-
// renders them, so body images
|
|
47
|
+
// renders them, so body images are cuts from Smoodly's media host like every other image.
|
|
48
48
|
custom: { toolset: article },
|
|
49
49
|
});
|
|
@@ -48,6 +48,6 @@ export const config = defineConfig({
|
|
|
48
48
|
// The custom section (spec 2026-09-14 §6): the editor's own rows of
|
|
49
49
|
// columns. The columns take the article toolset (headings, lists,
|
|
50
50
|
// images, Callout and Cta); smoodly/views.ts binds the RichText that
|
|
51
|
-
// renders them, so body images
|
|
51
|
+
// renders them, so body images are cuts from Smoodly's media host like every other image.
|
|
52
52
|
custom: { toolset: article },
|
|
53
53
|
});
|