@sandboxsonny/ace-kit 0.6.0 → 0.7.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/CHANGELOG.md +7 -0
- package/dist/astro-integration.js +1 -1
- package/dist/{chunk-G5FGBOFT.js → chunk-T7DKI2U3.js} +4 -3
- package/dist/cli.js +2 -2
- package/dist/{environment-T5K5ZJ2M.js → environment-J4VYOHDK.js} +2 -1
- package/dist/{main-YRQQWLHX.js → main-AGLPUGNN.js} +475 -196
- package/dist/react-router-server.d.ts +1 -1
- package/dist/vite.js +1 -1
- package/docs/command-line.md +32 -7
- package/docs/react-router.md +32 -3
- package/docs/react.md +5 -2
- package/package.json +1 -1
- package/templates/react-router/app/ace-kit.generated.d.ts +7 -1
- package/templates/react-router/app/app.css +85 -0
- package/templates/react-router/app/components/page-content.tsx +47 -24
- package/templates/react-router/app/components/sections/faq.schema.ts +17 -0
- package/templates/react-router/app/components/sections/faq.tsx +26 -0
- package/templates/react-router/app/components/sections/gallery.schema.ts +20 -0
- package/templates/react-router/app/components/sections/gallery.tsx +39 -0
- package/templates/react-router/app/components/sections/hero.schema.ts +14 -0
- package/templates/react-router/app/components/sections/hero.tsx +25 -0
- package/templates/react-router/app/routes/page.test.tsx +54 -0
- package/templates/react-router/app/routes.ts +7 -3
- package/templates/react-router.section-types.json +109 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @sandboxsonny/ace-kit
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 909b1a1: Add `ace-kit doctor`: checks Node, that Ace Kit is installed, the CMS and site the settings point at, the login, the Pages content and the section types, and says what to do about each problem.
|
|
8
|
+
- 584dcb1: The React Router starter made by `ace-kit create` now has the hero, FAQ and gallery sections, like the Astro one, and its published date and button. `ace-kit sync`, `ace-kit doctor` and the dev server look for `*.schema.ts` files in `app/` as well as `src/`. The docs now say a React Router site needs an `index` route as well as the `*` route, because `*` doesn't match `/`.
|
|
9
|
+
|
|
3
10
|
## 0.6.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { startDevSite, sectionSync } from './chunk-
|
|
1
|
+
import { startDevSite, sectionSync } from './chunk-T7DKI2U3.js';
|
|
2
2
|
import { domainFromSite, hostedAdminOrigin, hostedApiUrl } from './chunk-N5DIMG3X.js';
|
|
3
3
|
import { envField } from 'astro/config';
|
|
4
4
|
import { fileURLToPath } from 'url';
|
|
@@ -351,8 +351,9 @@ var skippedFolders = /* @__PURE__ */ new Set([
|
|
|
351
351
|
".output",
|
|
352
352
|
"coverage"
|
|
353
353
|
]);
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
var defaultSchemaFolders = ["src", "app"];
|
|
355
|
+
async function findSchemaFiles(root, folder) {
|
|
356
|
+
const folders = defaultSchemaFolders ;
|
|
356
357
|
const found = [];
|
|
357
358
|
async function walk(directory) {
|
|
358
359
|
let entries;
|
|
@@ -370,7 +371,7 @@ async function findSchemaFiles(root, folder = "src") {
|
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
373
|
}
|
|
373
|
-
await walk(
|
|
374
|
+
for (const name of folders) await walk(join(root, name));
|
|
374
375
|
return found.sort((first, second) => {
|
|
375
376
|
const [firstName, secondName] = [relative(root, first), relative(root, second)];
|
|
376
377
|
return firstName < secondName ? -1 : firstName > secondName ? 1 : 0;
|
package/dist/cli.js
CHANGED
|
@@ -9,8 +9,8 @@ if (major < 22 || major === 22 && minor < 12) {
|
|
|
9
9
|
process.exit(1);
|
|
10
10
|
}
|
|
11
11
|
try {
|
|
12
|
-
const { createRealEnvironment } = await import("./environment-
|
|
13
|
-
const { runCli } = await import("./main-
|
|
12
|
+
const { createRealEnvironment } = await import("./environment-J4VYOHDK.js");
|
|
13
|
+
const { runCli } = await import("./main-AGLPUGNN.js");
|
|
14
14
|
const environment = await createRealEnvironment();
|
|
15
15
|
process.exit(await runCli(process.argv.slice(2), environment));
|
|
16
16
|
} catch (error) {
|
|
@@ -145,7 +145,7 @@ function createLastApiUrl(path) {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
// src/cli/version.ts
|
|
148
|
-
var aceKitVersion = true ? "0.
|
|
148
|
+
var aceKitVersion = true ? "0.7.0" : "development";
|
|
149
149
|
|
|
150
150
|
// src/cli/environment.ts
|
|
151
151
|
var runCommand = (command, commandArguments, input) => new Promise((resolve, reject) => {
|
|
@@ -201,6 +201,7 @@ async function createRealEnvironment() {
|
|
|
201
201
|
platform,
|
|
202
202
|
hostname: hostname(),
|
|
203
203
|
version: aceKitVersion,
|
|
204
|
+
nodeVersion: process.versions.node,
|
|
204
205
|
out: (text) => process.stdout.write(`${text}
|
|
205
206
|
`),
|
|
206
207
|
error: (text) => console.error(text),
|