create-kyro 0.3.1 → 0.4.1
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/README.md +16 -13
- package/dist/index.js +67 -664
- package/package.json +1 -1
- package/src/generators/astro.ts +7 -70
- package/src/generators/config.ts +39 -40
- package/src/generators/files.ts +18 -509
- package/src/generators/packagejson.ts +6 -35
- package/src/index.ts +5 -5
- package/src/prompts.ts +1 -62
- package/test/generators.test.ts +13 -100
- package/test/validators.test.ts +0 -1
package/README.md
CHANGED
|
@@ -18,33 +18,36 @@ npx create-kyro
|
|
|
18
18
|
|
|
19
19
|
1. **Interactive Setup** - Prompts for:
|
|
20
20
|
- Project name
|
|
21
|
-
- Database (SQLite, PostgreSQL,
|
|
22
|
-
-
|
|
23
|
-
- Styling (Tailwind, CSS Modules, Styled Components, None)
|
|
24
|
-
- Authentication
|
|
25
|
-
- Versioning/Drafts
|
|
26
|
-
- Admin dashboard
|
|
27
|
-
- Starting template (Minimal, Blog, E-commerce)
|
|
21
|
+
- Database (SQLite, PostgreSQL, MongoDB)
|
|
22
|
+
- Starting template (Minimal, Blog, E-commerce, Kitchen Sink)
|
|
28
23
|
|
|
29
24
|
2. **Project Generation** - Creates:
|
|
30
|
-
- `package.json` with
|
|
31
|
-
- `kyro.config.ts` with your selections
|
|
32
|
-
- `astro.config.mjs`
|
|
25
|
+
- `package.json` with dependencies (`@kyro-cms/core`, `@kyro-cms/admin`, `astro`)
|
|
26
|
+
- `kyro.config.ts` with your selections (collections, globals, database adapter, auth)
|
|
27
|
+
- `astro.config.mjs` with `kyro()` and `kyroAdmin()` integrations configured
|
|
33
28
|
- `tsconfig.json`
|
|
34
|
-
-
|
|
35
|
-
-
|
|
29
|
+
- `.env.example` with configuration hints
|
|
30
|
+
- Welcome page and project structure
|
|
36
31
|
|
|
37
32
|
3. **Installation** - Runs `npm install`
|
|
38
33
|
|
|
39
34
|
4. **Git Init** - Initializes git repository with first commit
|
|
40
35
|
|
|
36
|
+
## What you get
|
|
37
|
+
|
|
38
|
+
- **Kyro Core** - Full CMS backend (REST, GraphQL, auth, sessions, keys, audit, webhooks)
|
|
39
|
+
- **Kyro Admin** - Modern admin dashboard via Astro integration
|
|
40
|
+
- **Zero boilerplate** - No manual auth routes, no middleware, no admin page setup
|
|
41
|
+
- **Built-in auth** - JWT-based authentication with session management, API keys, RBAC
|
|
42
|
+
- **First-user super admin** - The first registered user automatically gets super admin privileges
|
|
43
|
+
|
|
41
44
|
## Programmatic Usage
|
|
42
45
|
|
|
43
46
|
```typescript
|
|
44
47
|
import { promptUser } from 'create-kyro';
|
|
45
48
|
|
|
46
49
|
const answers = await promptUser();
|
|
47
|
-
// { projectName, database,
|
|
50
|
+
// { projectName, database, template }
|
|
48
51
|
```
|
|
49
52
|
|
|
50
53
|
## License
|