@cmssy/cli 9.10.0 → 10.1.0
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/assets/init/next/app/[[...path]]/page.tsx +1 -11
- package/assets/init/remix/app/routes.ts +0 -2
- package/dist/index.js +4 -10
- package/package.json +2 -2
- package/assets/init/astro/src/pages/robots.txt.ts +0 -5
- package/assets/init/astro/src/pages/sitemap.xml.ts +0 -5
- package/assets/init/next/app/robots.ts +0 -4
- package/assets/init/next/app/sitemap.ts +0 -7
- package/assets/init/remix/app/routes/robots.ts +0 -4
- package/assets/init/remix/app/routes/sitemap.ts +0 -4
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createCmssyPage } from "@cmssy/next/server";
|
|
2
2
|
import { cmssy } from "@/cmssy.config";
|
|
3
3
|
import { blocks } from "@/cmssy/blocks";
|
|
4
4
|
import { CmssyEditor } from "@/cmssy/editor";
|
|
5
5
|
|
|
6
|
-
type PageProps = { params: Promise<{ path?: string[] }> };
|
|
7
|
-
|
|
8
|
-
export async function generateMetadata({ params }: PageProps) {
|
|
9
|
-
const { path } = await params;
|
|
10
|
-
// As routed, prefix and all: the prefix IS the language. Strip it and every
|
|
11
|
-
// translated page gets the default language's title - and a canonical
|
|
12
|
-
// pointing at the default language's URL, which reads as "duplicate".
|
|
13
|
-
return buildCmssyMetadata(cmssy, path);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
6
|
export default createCmssyPage(cmssy, blocks, { editor: CmssyEditor });
|
|
@@ -3,8 +3,6 @@ import { type RouteConfig, index, route } from "@react-router/dev/routes";
|
|
|
3
3
|
// The splat does not match "/", so the homepage needs its own entry - it is the
|
|
4
4
|
// same route module, mounted twice.
|
|
5
5
|
export default [
|
|
6
|
-
route("sitemap.xml", "routes/sitemap.ts"),
|
|
7
|
-
route("robots.txt", "routes/robots.ts"),
|
|
8
6
|
index("routes/page.tsx"),
|
|
9
7
|
route("*", "routes/page.tsx", { id: "cmssy-catch-all" }),
|
|
10
8
|
] satisfies RouteConfig;
|
package/dist/index.js
CHANGED
|
@@ -172,9 +172,7 @@ var FRAMEWORKS = [
|
|
|
172
172
|
"blocks/hero/Hero.tsx",
|
|
173
173
|
"app/[[...path]]/page.tsx",
|
|
174
174
|
"app/cmssy-edit/[[...path]]/page.tsx",
|
|
175
|
-
"app/api/draft/route.ts"
|
|
176
|
-
"app/robots.ts",
|
|
177
|
-
"app/sitemap.ts"
|
|
175
|
+
"app/api/draft/route.ts"
|
|
178
176
|
]
|
|
179
177
|
},
|
|
180
178
|
{
|
|
@@ -191,9 +189,7 @@ var FRAMEWORKS = [
|
|
|
191
189
|
"src/cmssy/hero.tsx",
|
|
192
190
|
"src/components/Blocks.tsx",
|
|
193
191
|
"src/pages/[...path].astro",
|
|
194
|
-
"src/pages/cmssy-edit/[...path].astro"
|
|
195
|
-
"src/pages/robots.txt.ts",
|
|
196
|
-
"src/pages/sitemap.xml.ts"
|
|
192
|
+
"src/pages/cmssy-edit/[...path].astro"
|
|
197
193
|
]
|
|
198
194
|
},
|
|
199
195
|
{
|
|
@@ -208,9 +204,7 @@ var FRAMEWORKS = [
|
|
|
208
204
|
"app/cmssy/blocks.ts",
|
|
209
205
|
"app/cmssy/editor.tsx",
|
|
210
206
|
"app/cmssy/hero.tsx",
|
|
211
|
-
"app/routes/page.tsx"
|
|
212
|
-
"app/routes/robots.ts",
|
|
213
|
-
"app/routes/sitemap.ts"
|
|
207
|
+
"app/routes/page.tsx"
|
|
214
208
|
]
|
|
215
209
|
}
|
|
216
210
|
];
|
|
@@ -577,7 +571,7 @@ function frameworkNotes(framework, root, skipped) {
|
|
|
577
571
|
if (framework.name === "remix" && skipped.includes("app/routes.ts")) {
|
|
578
572
|
notes.push({
|
|
579
573
|
status: "unknown",
|
|
580
|
-
message: "app/routes.ts already existed - mount routes/page.tsx (index + splat)
|
|
574
|
+
message: "app/routes.ts already existed - mount routes/page.tsx (index + splat) there yourself, or rerun with --force"
|
|
581
575
|
});
|
|
582
576
|
}
|
|
583
577
|
return notes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "The cmssy CLI: `cmssy init` wires cmssy into an existing Next.js, Astro or React Router app; `cmssy link` connects it to a workspace and verifies the editor wiring.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"assets"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@cmssy/core": "
|
|
30
|
+
"@cmssy/core": "10.1.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^20.0.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { createCmssySitemap } from "@cmssy/next/server";
|
|
2
|
-
import { cmssy } from "@/cmssy.config";
|
|
3
|
-
|
|
4
|
-
// One entry per language version of every published page, with hreflang and
|
|
5
|
-
// x-default. Rendering products or categories from model records? They are not
|
|
6
|
-
// pages - add them through `extra`.
|
|
7
|
-
export default createCmssySitemap(cmssy);
|