create-kyro 0.1.1 → 0.1.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/dist/index.js +701 -183
- package/my-kyro-app/README.md +14 -0
- package/my-kyro-app/SPEC.md +21 -0
- package/my-kyro-app/astro.config.mjs +20 -0
- package/my-kyro-app/kyro.config.ts +15 -0
- package/my-kyro-app/package-lock.json +6919 -0
- package/my-kyro-app/package.json +31 -0
- package/package.json +6 -12
- package/templates/blog/collections.ts +7 -6
- package/src/generators/astro.ts +0 -38
- package/src/generators/config.ts +0 -80
- package/src/generators/files.ts +0 -159
- package/src/generators/packagejson.ts +0 -72
- package/src/index.ts +0 -97
- package/src/prompts.ts +0 -164
- package/src/utils/logger.ts +0 -60
- package/src/validators.ts +0 -36
- package/tsconfig.json +0 -15
- package/tsup.config.ts +0 -11
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# my-kyro-app
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This project uses Kyro CMS - an Astro-native headless CMS.
|
|
6
|
+
|
|
7
|
+
## Configuration
|
|
8
|
+
|
|
9
|
+
- **Database**: SQLite (local-first)
|
|
10
|
+
- **APIs**: rest, graphql
|
|
11
|
+
- **Styling**: tailwind
|
|
12
|
+
- **Auth**: Disabled
|
|
13
|
+
- **Versioning**: Enabled
|
|
14
|
+
- **Admin**: Included
|
|
15
|
+
- **Template**: blog
|
|
16
|
+
|
|
17
|
+
## Collections
|
|
18
|
+
|
|
19
|
+
- Posts
|
|
20
|
+
- Categories
|
|
21
|
+
- Media
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineConfig } from "astro/config";
|
|
2
|
+
import react from "@astrojs/react";
|
|
3
|
+
import tailwindcss from "@tailwindcss/vite";
|
|
4
|
+
import node from "@astrojs/node";
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
output: "server",
|
|
8
|
+
adapter: node({
|
|
9
|
+
mode: "standalone",
|
|
10
|
+
}),
|
|
11
|
+
|
|
12
|
+
integrations: [react()],
|
|
13
|
+
vite: {
|
|
14
|
+
plugins: [tailwindcss()],
|
|
15
|
+
},
|
|
16
|
+
server: {
|
|
17
|
+
port: 4321,
|
|
18
|
+
host: true,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineConfig } from "@kyro-cms/core";
|
|
2
|
+
import { createLocalAdapter } from "@kyro-cms/core";
|
|
3
|
+
import { blogCollections } from "@kyro-cms/core";
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
name: "my-kyro-app",
|
|
7
|
+
prefix: "/api",
|
|
8
|
+
adapter: createLocalAdapter({ path: "./data.db" }),
|
|
9
|
+
|
|
10
|
+
collections: Object.values(blogCollections),
|
|
11
|
+
|
|
12
|
+
api: {
|
|
13
|
+
rest: true,
|
|
14
|
+
},
|
|
15
|
+
});
|