@nexusts/cli 0.9.6 → 0.9.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/core/index.d.ts +1 -0
- package/dist/core/naming.d.ts +20 -0
- package/dist/core/prompts.d.ts +14 -0
- package/dist/index.js +618 -631
- package/dist/index.js.map +32 -24
- package/dist/templates/auth/auth-instance.d.ts +14 -0
- package/dist/templates/auth/env-example.d.ts +9 -0
- package/dist/templates/index.d.ts +11 -0
- package/dist/templates/listener/listener.d.ts +9 -0
- package/dist/templates/model/drizzle-dialect.d.ts +12 -0
- package/dist/templates/queue/job.d.ts +9 -0
- package/dist/templates/queue/worker.d.ts +9 -0
- package/dist/templates/schedule/task.d.ts +9 -0
- package/dist/templates/session/session.d.ts +9 -0
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auth instance template — used by `nx make:auth`.
|
|
3
|
+
*
|
|
4
|
+
* Context keys:
|
|
5
|
+
* jwt — boolean, enable JWT plugin
|
|
6
|
+
* passkey — boolean, enable passkey (WebAuthn) plugin
|
|
7
|
+
* passkeyRpName — string, passkey relying party name
|
|
8
|
+
* passkeyRpId — string, passkey relying party ID
|
|
9
|
+
* passkeyOrigin — string, passkey origin URL
|
|
10
|
+
* providers — boolean, whether social providers are included
|
|
11
|
+
* entries — array of { name, envVar } objects
|
|
12
|
+
*/
|
|
13
|
+
declare const _default: string;
|
|
14
|
+
export default _default;
|
|
@@ -10,7 +10,18 @@ export declare const templates: {
|
|
|
10
10
|
adonis: string;
|
|
11
11
|
functional: string;
|
|
12
12
|
};
|
|
13
|
+
auth: {
|
|
14
|
+
instance: string;
|
|
15
|
+
"env.example": string;
|
|
16
|
+
};
|
|
17
|
+
listener: string;
|
|
18
|
+
queue: {
|
|
19
|
+
worker: string;
|
|
20
|
+
job: string;
|
|
21
|
+
};
|
|
22
|
+
schedule: string;
|
|
13
23
|
service: string;
|
|
24
|
+
session: string;
|
|
14
25
|
repository: {
|
|
15
26
|
drizzle: string;
|
|
16
27
|
kysely: string;
|
|
@@ -26,3 +26,15 @@ export declare function renderDrizzleDialect(dialect: string): string;
|
|
|
26
26
|
export declare function mapDrizzleType(dialect: string, type: string): string;
|
|
27
27
|
/** Whether the column needs a notNull() modifier by default. */
|
|
28
28
|
export declare function shouldBeNotNull(type: string): boolean;
|
|
29
|
+
/** Map a generic type name to a SQL column type (dialect-aware). */
|
|
30
|
+
export declare function mapSqlType(t: string, dialect: string): string;
|
|
31
|
+
/** Map a generic type name to a Kysely column type. */
|
|
32
|
+
export declare function mapKyselyType(type: string): string;
|
|
33
|
+
/** Render SQL column definitions (dialect-aware). */
|
|
34
|
+
export declare function renderSqlColumns(cols: Array<[string, string]>, dialect: string): string;
|
|
35
|
+
/** Render Kysely column definitions. */
|
|
36
|
+
export declare function renderKyselyColumns(cols: Array<[string, string]>): string;
|
|
37
|
+
/** Render Drizzle column definitions (dialect-aware). */
|
|
38
|
+
export declare function renderDrizzleColumns(cols: Array<[string, string]>, dialect: string): string;
|
|
39
|
+
/** Check if a dialect string is valid for Drizzle. */
|
|
40
|
+
export declare function isValidDialect(d: string): d is "postgres" | "mysql" | "sqlite" | "bun-sqlite" | "d1";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Queue job enqueue helper template — used by `nx make:queue`.
|
|
3
|
+
*
|
|
4
|
+
* Context keys:
|
|
5
|
+
* name — PascalCase class name (e.g. "SendWelcomeEmail")
|
|
6
|
+
* kebab — kebab-case file name (e.g. "send-welcome-email")
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: string;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Queue worker template — used by `nx make:queue`.
|
|
3
|
+
*
|
|
4
|
+
* Context keys:
|
|
5
|
+
* name — PascalCase class name (e.g. "SendWelcomeEmail")
|
|
6
|
+
* kebab — kebab-case file name (e.g. "send-welcome-email")
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: string;
|
|
9
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexusts/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.8",
|
|
4
4
|
"description": "CLI command runner (nx)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nexusts/core": "^0.9.
|
|
32
|
+
"@nexusts/core": "^0.9.8"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|