@igniter-js/cli 0.4.6 → 0.4.8
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.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/templates/templates/add-ons/auth/better-auth/auth.hbs +0 -37
- package/dist/templates/templates/add-ons/bots/nextjs/route-handler.hbs +0 -10
- package/dist/templates/templates/add-ons/bots/sample-bot.hbs +0 -26
- package/dist/templates/templates/add-ons/bots/tanstack-start/route-handler.hbs +0 -15
- package/dist/templates/templates/add-ons/database/prisma/lib.hbs +0 -11
- package/dist/templates/templates/add-ons/database/prisma/prisma.config.hbs +0 -13
- package/dist/templates/templates/add-ons/database/prisma/schema.hbs +0 -15
- package/dist/templates/templates/add-ons/jobs/jobs.ts.hbs +0 -32
- package/dist/templates/templates/add-ons/jobs/redis.ts.hbs +0 -13
- package/dist/templates/templates/add-ons/jobs/store.ts.hbs +0 -12
- package/dist/templates/templates/add-ons/logging/logger.ts.hbs +0 -14
- package/dist/templates/templates/add-ons/mcp/mcp.ts.hbs +0 -21
- package/dist/templates/templates/add-ons/mcp/nextjs/route-handler.hbs +0 -11
- package/dist/templates/templates/add-ons/mcp/tanstack-start/route-handler.hbs +0 -19
- package/dist/templates/templates/add-ons/store/redis.ts.hbs +0 -13
- package/dist/templates/templates/add-ons/store/store.ts.hbs +0 -12
- package/dist/templates/templates/add-ons/telemetry/telemetry.ts.hbs +0 -20
- package/dist/templates/templates/generate/feature/empty.controller.hbs +0 -20
- package/dist/templates/templates/generate/feature/empty.interfaces.hbs +0 -5
- package/dist/templates/templates/generate/feature/procedure.hbs +0 -23
- package/dist/templates/templates/generate/feature/schema.controller.hbs +0 -73
- package/dist/templates/templates/generate/feature/schema.interfaces.hbs +0 -23
- package/dist/templates/templates/generate/feature/schema.procedure.hbs +0 -23
- package/dist/templates/templates/scaffold/example-feature/example.controller.hbs +0 -23
- package/dist/templates/templates/scaffold/example-feature/example.interfaces.hbs +0 -14
- package/dist/templates/templates/scaffold/example-feature/example.procedure.hbs +0 -28
- package/dist/templates/templates/scaffold/igniter.schema.hbs +0 -21
- package/dist/templates/templates/starters/igniter.client.hbs +0 -52
- package/dist/templates/templates/starters/igniter.context.hbs +0 -10
- package/dist/templates/templates/starters/igniter.hbs +0 -43
- package/dist/templates/templates/starters/igniter.router.hbs +0 -14
- package/dist/templates/templates/starters/nextjs/route-handler.hbs +0 -8
- package/dist/templates/templates/starters/nextjs/tsconfig.hbs +0 -35
- package/dist/templates/templates/starters/open-api.hbs +0 -45
- package/dist/templates/templates/starters/tanstack-start/route-handler.hbs +0 -13
- package/dist/templates/templates/starters/tanstack-start/tsconfig.hbs +0 -15
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Igniter } from '@igniter-js/core'
|
|
2
|
-
import { createIgniterAppContext } from "./igniter.context"
|
|
3
|
-
import openapi from './docs/openapi.json'
|
|
4
|
-
{{#if (includes enabledAddOns "store") }}
|
|
5
|
-
import { store } from "@/services/store"
|
|
6
|
-
{{/if}}
|
|
7
|
-
{{#if (includes enabledAddOns "jobs") }}
|
|
8
|
-
import { REGISTERED_JOBS } from "@/services/jobs"
|
|
9
|
-
{{/if}}
|
|
10
|
-
{{#if (includes enabledAddOns "logger") }}
|
|
11
|
-
import { logger } from "@/services/logger"
|
|
12
|
-
{{/if}}
|
|
13
|
-
{{#if (includes enabledAddOns "telemetry") }}
|
|
14
|
-
import { telemetry } from "@/services/telemetry"
|
|
15
|
-
{{/if}}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @description Initialize the Igniter.js
|
|
19
|
-
* @see https://igniterjs.com/docs/core/builder
|
|
20
|
-
*/
|
|
21
|
-
export const igniter = Igniter
|
|
22
|
-
.context(createIgniterAppContext())
|
|
23
|
-
{{#if (includes enabledAddOns "store") }}
|
|
24
|
-
.store(store)
|
|
25
|
-
{{/if}}
|
|
26
|
-
{{#if (includes enabledAddOns "jobs") }}
|
|
27
|
-
.jobs(REGISTERED_JOBS)
|
|
28
|
-
{{/if}}
|
|
29
|
-
{{#if (includes enabledAddOns "logger") }}
|
|
30
|
-
.logger(logger)
|
|
31
|
-
{{/if}}
|
|
32
|
-
{{#if (includes enabledAddOns "telemetry") }}
|
|
33
|
-
.telemetry(telemetry)
|
|
34
|
-
{{/if}}
|
|
35
|
-
.docs({
|
|
36
|
-
openapi,
|
|
37
|
-
info: {
|
|
38
|
-
title: '{{capitalizeSlug projectName}}',
|
|
39
|
-
version: '1.0.0',
|
|
40
|
-
description: 'Just another Igniter.js REST API',
|
|
41
|
-
}
|
|
42
|
-
})
|
|
43
|
-
.create()
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { igniter } from '@/igniter'
|
|
2
|
-
import { ExampleController } from '@/features/example/controllers/example.controller'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @description Main application router configuration
|
|
6
|
-
* @see https://igniterjs.com/docs/core/router
|
|
7
|
-
*/
|
|
8
|
-
export const AppRouter = igniter.router({
|
|
9
|
-
controllers: {
|
|
10
|
-
example: ExampleController
|
|
11
|
-
}
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
export type AppRouterType = typeof AppRouter
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AppRouter } from '@/igniter.router'
|
|
2
|
-
import { nextRouteHandlerAdapter } from '@igniter-js/core/adapters'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @description Next.js route handler adapter for Igniter.js
|
|
6
|
-
* @see https://igniterjs.com/docs/core/nextjs
|
|
7
|
-
*/
|
|
8
|
-
export const { GET, POST, PUT, DELETE, PATCH } = nextRouteHandlerAdapter(AppRouter)
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2017",
|
|
4
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"strict": true,
|
|
8
|
-
"noEmit": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"jsx": "react-jsx",
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"plugins": [
|
|
17
|
-
{
|
|
18
|
-
"name": "next"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"paths": {
|
|
22
|
-
"@/*": ["./src/*"]
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"include": [
|
|
26
|
-
"next-env.d.ts",
|
|
27
|
-
"**/*.ts",
|
|
28
|
-
"**/*.tsx",
|
|
29
|
-
".next/types/**/*.ts",
|
|
30
|
-
".next/dev/types/**/*.ts",
|
|
31
|
-
"**/*.mts",
|
|
32
|
-
"prisma/client/**/*"
|
|
33
|
-
],
|
|
34
|
-
"exclude": ["node_modules"]
|
|
35
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"openapi": "3.0.0",
|
|
3
|
-
"info": {
|
|
4
|
-
"title": "{{capitalizeSlug projectName}}",
|
|
5
|
-
"version": "1.0.0",
|
|
6
|
-
"description": "Just another Igniter.js REST API"
|
|
7
|
-
},
|
|
8
|
-
"servers": [
|
|
9
|
-
{
|
|
10
|
-
"url": "http://localhost:3000/api/v1",
|
|
11
|
-
"description": "Default server"
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"tags": [
|
|
15
|
-
{
|
|
16
|
-
"name": "Example"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"paths": {
|
|
20
|
-
"/example": {
|
|
21
|
-
"get": {
|
|
22
|
-
"summary": "Health check",
|
|
23
|
-
"operationId": "health",
|
|
24
|
-
"tags": [
|
|
25
|
-
"Example"
|
|
26
|
-
],
|
|
27
|
-
"parameters": [],
|
|
28
|
-
"responses": {
|
|
29
|
-
"200": {
|
|
30
|
-
"description": "Success",
|
|
31
|
-
"content": {
|
|
32
|
-
"application/json": {
|
|
33
|
-
"schema": {}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"components": {
|
|
42
|
-
"schemas": {},
|
|
43
|
-
"securitySchemes": {}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from '@tanstack/react-router'
|
|
2
|
-
import { AppRouter } from '@/igniter.router'
|
|
3
|
-
import { tanstackStartRouteHandlerAdapter } from '@igniter-js/core/adapters'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @description TanStack Start route handler adapter for Igniter.js
|
|
7
|
-
* @see https://igniterjs.com/docs/core/tanstack-start
|
|
8
|
-
*/
|
|
9
|
-
export const Route = createFileRoute('/api/v1/$')({
|
|
10
|
-
server: {
|
|
11
|
-
handlers: tanstackStartRouteHandlerAdapter(AppRouter),
|
|
12
|
-
}
|
|
13
|
-
})
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"include": ["**/*.ts", "**/*.tsx"],
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"jsx": "react-jsx",
|
|
5
|
-
"moduleResolution": "Bundler",
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"target": "ES2022",
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
"strictNullChecks": true,
|
|
10
|
-
"baseUrl": ".",
|
|
11
|
-
"paths": {
|
|
12
|
-
"@/*": ["./src/*"]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|