@karmaniverous/smoz 0.2.9 → 0.2.11
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/LICENSE +28 -28
- package/README.md +82 -81
- package/dist/cjs/index.js +20 -10
- package/dist/cli/index.cjs +262 -278
- package/dist/index.d.ts +44 -36
- package/dist/mjs/index.js +20 -10
- package/package.json +36 -37
- package/templates/default/.vscode/extensions.json +8 -8
- package/templates/default/README.md +98 -96
- package/templates/default/app/config/app.config.ts +3 -2
- package/templates/default/app/generated/openapi.json +8 -8
- package/templates/default/eslint.config.ts +0 -1
- package/templates/default/gitignore +42 -42
- package/templates/default/package.json +6 -7
- package/templates/default/tsconfig.base.json +21 -21
- package/templates/default/tsconfig.downstream.json +13 -13
- package/templates/default/tsconfig.eslint.json +2 -2
- package/templates/default/tsconfig.json +25 -25
- package/templates/default/tsdoc.json +46 -46
- package/templates/default/typedoc.json +14 -14
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
# Dependencies
|
|
2
|
-
node_modules/
|
|
3
|
-
|
|
4
|
-
# Build outputs and caches
|
|
5
|
-
dist/
|
|
6
|
-
.tsbuild/
|
|
7
|
-
**/.tsbuild/
|
|
8
|
-
*.tsbuildinfo
|
|
9
|
-
**/.rollup.cache/
|
|
10
|
-
|
|
11
|
-
# Serverless packaging
|
|
12
|
-
.serverless/
|
|
13
|
-
|
|
14
|
-
# Test coverage
|
|
15
|
-
coverage/
|
|
16
|
-
|
|
17
|
-
# Generated artifacts
|
|
18
|
-
# Teams often keep registers tracked for typecheck stability,
|
|
19
|
-
# but the OpenAPI JSON is usually untracked.
|
|
20
|
-
app/generated/openapi.json
|
|
21
|
-
|
|
22
|
-
# Environment files (local only; do not commit secrets)
|
|
23
|
-
.env
|
|
24
|
-
.env.local
|
|
25
|
-
.env.*.local
|
|
26
|
-
|
|
27
|
-
# Logs
|
|
28
|
-
*.log
|
|
29
|
-
npm-debug.log*
|
|
30
|
-
yarn-debug.log*
|
|
31
|
-
yarn-error.log*
|
|
32
|
-
pnpm-debug.log*
|
|
33
|
-
|
|
34
|
-
# OS / editor files
|
|
35
|
-
.DS_Store
|
|
36
|
-
Thumbs.db
|
|
37
|
-
.idea/
|
|
38
|
-
.vscode/
|
|
39
|
-
|
|
40
|
-
# Misc
|
|
41
|
-
*.swp
|
|
42
|
-
*.swo
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules/
|
|
3
|
+
|
|
4
|
+
# Build outputs and caches
|
|
5
|
+
dist/
|
|
6
|
+
.tsbuild/
|
|
7
|
+
**/.tsbuild/
|
|
8
|
+
*.tsbuildinfo
|
|
9
|
+
**/.rollup.cache/
|
|
10
|
+
|
|
11
|
+
# Serverless packaging
|
|
12
|
+
.serverless/
|
|
13
|
+
|
|
14
|
+
# Test coverage
|
|
15
|
+
coverage/
|
|
16
|
+
|
|
17
|
+
# Generated artifacts
|
|
18
|
+
# Teams often keep registers tracked for typecheck stability,
|
|
19
|
+
# but the OpenAPI JSON is usually untracked.
|
|
20
|
+
app/generated/openapi.json
|
|
21
|
+
|
|
22
|
+
# Environment files (local only; do not commit secrets)
|
|
23
|
+
.env
|
|
24
|
+
.env.local
|
|
25
|
+
.env.*.local
|
|
26
|
+
|
|
27
|
+
# Logs
|
|
28
|
+
*.log
|
|
29
|
+
npm-debug.log*
|
|
30
|
+
yarn-debug.log*
|
|
31
|
+
yarn-error.log*
|
|
32
|
+
pnpm-debug.log*
|
|
33
|
+
|
|
34
|
+
# OS / editor files
|
|
35
|
+
.DS_Store
|
|
36
|
+
Thumbs.db
|
|
37
|
+
.idea/
|
|
38
|
+
.vscode/
|
|
39
|
+
|
|
40
|
+
# Misc
|
|
41
|
+
*.swp
|
|
42
|
+
*.swo
|
|
@@ -33,16 +33,15 @@
|
|
|
33
33
|
},
|
|
34
34
|
"name": "smoz-template-default",
|
|
35
35
|
"scripts": {
|
|
36
|
-
"register": "smoz register",
|
|
37
|
-
"openapi": "smoz register && tsx app/config/openapi && prettier -w app/generated/openapi.json",
|
|
38
|
-
"package": "smoz register && serverless package",
|
|
39
36
|
"dev": "smoz dev",
|
|
40
|
-
"
|
|
41
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
42
|
-
"lint": "eslint .",
|
|
37
|
+
"docs": "typedoc",
|
|
43
38
|
"lint:fix": "eslint --fix .",
|
|
39
|
+
"lint": "eslint .",
|
|
40
|
+
"openapi": "smoz openapi",
|
|
41
|
+
"package": "serverless package",
|
|
42
|
+
"register": "smoz register",
|
|
44
43
|
"test": "vitest run",
|
|
45
|
-
"
|
|
44
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
46
45
|
},
|
|
47
46
|
"type": "module",
|
|
48
47
|
"version": "0.0.0",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"allowSyntheticDefaultImports": true,
|
|
4
|
-
"emitDeclarationOnly": false,
|
|
5
|
-
"exactOptionalPropertyTypes": true,
|
|
6
|
-
"module": "esnext",
|
|
7
|
-
"moduleDetection": "force",
|
|
8
|
-
"moduleResolution": "bundler",
|
|
9
|
-
"noEmit": true,
|
|
10
|
-
"noUncheckedIndexedAccess": true,
|
|
11
|
-
"noUncheckedSideEffectImports": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"rootDir": ".",
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"strict": true,
|
|
16
|
-
"stripInternal": true,
|
|
17
|
-
"target": "esnext",
|
|
18
|
-
"types": ["node"],
|
|
19
|
-
"verbatimModuleSyntax": true
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowSyntheticDefaultImports": true,
|
|
4
|
+
"emitDeclarationOnly": false,
|
|
5
|
+
"exactOptionalPropertyTypes": true,
|
|
6
|
+
"module": "esnext",
|
|
7
|
+
"moduleDetection": "force",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"noUncheckedIndexedAccess": true,
|
|
11
|
+
"noUncheckedSideEffectImports": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"rootDir": ".",
|
|
14
|
+
"skipLibCheck": true,
|
|
15
|
+
"strict": true,
|
|
16
|
+
"stripInternal": true,
|
|
17
|
+
"target": "esnext",
|
|
18
|
+
"types": ["node"],
|
|
19
|
+
"verbatimModuleSyntax": true
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"outDir": ".tsbuild",
|
|
5
|
-
"paths": {
|
|
6
|
-
"@/*": ["*"]
|
|
7
|
-
},
|
|
8
|
-
"tsBuildInfoFile": ".tsbuild/tsconfig.tsbuildinfo"
|
|
9
|
-
},
|
|
10
|
-
"exclude": [".serverless/**", "node_modules/**", "app/generated/**"],
|
|
11
|
-
"extends": "./tsconfig.base.json",
|
|
12
|
-
"include": ["**/*", "**/*.json"]
|
|
13
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"outDir": ".tsbuild",
|
|
5
|
+
"paths": {
|
|
6
|
+
"@/*": ["*"]
|
|
7
|
+
},
|
|
8
|
+
"tsBuildInfoFile": ".tsbuild/tsconfig.tsbuildinfo"
|
|
9
|
+
},
|
|
10
|
+
"exclude": [".serverless/**", "node_modules/**", "app/generated/**"],
|
|
11
|
+
"extends": "./tsconfig.base.json",
|
|
12
|
+
"include": ["**/*", "**/*.json"]
|
|
13
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json"
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json"
|
|
3
3
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"outDir": ".tsbuild",
|
|
5
|
-
"paths": {
|
|
6
|
-
"@/*": ["*"],
|
|
7
|
-
"@karmaniverous/smoz": [
|
|
8
|
-
"../../dist/index",
|
|
9
|
-
"../../dist/index.d.ts"
|
|
10
|
-
]
|
|
11
|
-
},
|
|
12
|
-
"typeRoots": [
|
|
13
|
-
"./types",
|
|
14
|
-
"../../node_modules/@types"
|
|
15
|
-
],
|
|
16
|
-
"tsBuildInfoFile": ".tsbuild/tsconfig.tsbuildinfo"
|
|
17
|
-
},
|
|
18
|
-
"exclude": [
|
|
19
|
-
".serverless/**",
|
|
20
|
-
"node_modules/**",
|
|
21
|
-
"app/generated/**",
|
|
22
|
-
"dist/**"
|
|
23
|
-
],
|
|
24
|
-
"extends": "./tsconfig.base.json",
|
|
25
|
-
"include": ["**/*", "**/*.json"]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"outDir": ".tsbuild",
|
|
5
|
+
"paths": {
|
|
6
|
+
"@/*": ["*"],
|
|
7
|
+
"@karmaniverous/smoz": [
|
|
8
|
+
"../../dist/index",
|
|
9
|
+
"../../dist/index.d.ts"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"typeRoots": [
|
|
13
|
+
"./types",
|
|
14
|
+
"../../node_modules/@types"
|
|
15
|
+
],
|
|
16
|
+
"tsBuildInfoFile": ".tsbuild/tsconfig.tsbuildinfo"
|
|
17
|
+
},
|
|
18
|
+
"exclude": [
|
|
19
|
+
".serverless/**",
|
|
20
|
+
"node_modules/**",
|
|
21
|
+
"app/generated/**",
|
|
22
|
+
"dist/**"
|
|
23
|
+
],
|
|
24
|
+
"extends": "./tsconfig.base.json",
|
|
25
|
+
"include": ["**/*", "**/*.json"]
|
|
26
26
|
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
|
|
3
|
-
"noStandardTags": false,
|
|
4
|
-
"tagDefinitions": [
|
|
5
|
-
{ "tagName": "@author", "syntaxKind": "block" },
|
|
6
|
-
{ "tagName": "@module", "syntaxKind": "block" },
|
|
7
|
-
{ "tagName": "@type", "syntaxKind": "block" },
|
|
8
|
-
{ "tagName": "@typedef", "syntaxKind": "block" },
|
|
9
|
-
{ "tagName": "@callback", "syntaxKind": "block" },
|
|
10
|
-
{ "tagName": "@prop", "syntaxKind": "block", "allowMultiple": true },
|
|
11
|
-
{ "tagName": "@property", "syntaxKind": "block", "allowMultiple": true },
|
|
12
|
-
{ "tagName": "@group", "syntaxKind": "block", "allowMultiple": true },
|
|
13
|
-
{ "tagName": "@groupDescription", "syntaxKind": "block", "allowMultiple": true },
|
|
14
|
-
{ "tagName": "@category", "syntaxKind": "block", "allowMultiple": true },
|
|
15
|
-
{ "tagName": "@categoryDescription", "syntaxKind": "block", "allowMultiple": true },
|
|
16
|
-
{ "tagName": "@hidden", "syntaxKind": "modifier" },
|
|
17
|
-
{ "tagName": "@ignore", "syntaxKind": "modifier" },
|
|
18
|
-
{ "tagName": "@class", "syntaxKind": "modifier" },
|
|
19
|
-
{ "tagName": "@document", "syntaxKind": "block" },
|
|
20
|
-
{ "tagName": "@default", "syntaxKind": "block" },
|
|
21
|
-
{ "tagName": "@extends", "syntaxKind": "block" },
|
|
22
|
-
{ "tagName": "@augments", "syntaxKind": "block" },
|
|
23
|
-
{ "tagName": "@return", "syntaxKind": "block" },
|
|
24
|
-
{ "tagName": "@yields", "syntaxKind": "block" },
|
|
25
|
-
{ "tagName": "@enum", "syntaxKind": "modifier" },
|
|
26
|
-
{ "tagName": "@event", "syntaxKind": "modifier" },
|
|
27
|
-
{ "tagName": "@template", "syntaxKind": "block", "allowMultiple": true },
|
|
28
|
-
{ "tagName": "@linkcode", "syntaxKind": "inline", "allowMultiple": true },
|
|
29
|
-
{ "tagName": "@linkplain", "syntaxKind": "inline", "allowMultiple": true },
|
|
30
|
-
{ "tagName": "@private", "syntaxKind": "modifier" },
|
|
31
|
-
{ "tagName": "@protected", "syntaxKind": "modifier" },
|
|
32
|
-
{ "tagName": "@satisfies", "syntaxKind": "block" },
|
|
33
|
-
{ "tagName": "@since", "syntaxKind": "block" },
|
|
34
|
-
{ "tagName": "@license", "syntaxKind": "block" },
|
|
35
|
-
{ "tagName": "@import", "syntaxKind": "block" },
|
|
36
|
-
{ "tagName": "@overload", "syntaxKind": "modifier" },
|
|
37
|
-
{ "tagName": "@namespace", "syntaxKind": "modifier" },
|
|
38
|
-
{ "tagName": "@interface", "syntaxKind": "modifier" },
|
|
39
|
-
{ "tagName": "@showCategories", "syntaxKind": "modifier" },
|
|
40
|
-
{ "tagName": "@hideCategories", "syntaxKind": "modifier" },
|
|
41
|
-
{ "tagName": "@showGroups", "syntaxKind": "modifier" },
|
|
42
|
-
{ "tagName": "@hideGroups", "syntaxKind": "modifier" },
|
|
43
|
-
{ "tagName": "@hideconstructor", "syntaxKind": "modifier" },
|
|
44
|
-
{ "tagName": "@jsx", "syntaxKind": "block" }
|
|
45
|
-
]
|
|
46
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
|
|
3
|
+
"noStandardTags": false,
|
|
4
|
+
"tagDefinitions": [
|
|
5
|
+
{ "tagName": "@author", "syntaxKind": "block" },
|
|
6
|
+
{ "tagName": "@module", "syntaxKind": "block" },
|
|
7
|
+
{ "tagName": "@type", "syntaxKind": "block" },
|
|
8
|
+
{ "tagName": "@typedef", "syntaxKind": "block" },
|
|
9
|
+
{ "tagName": "@callback", "syntaxKind": "block" },
|
|
10
|
+
{ "tagName": "@prop", "syntaxKind": "block", "allowMultiple": true },
|
|
11
|
+
{ "tagName": "@property", "syntaxKind": "block", "allowMultiple": true },
|
|
12
|
+
{ "tagName": "@group", "syntaxKind": "block", "allowMultiple": true },
|
|
13
|
+
{ "tagName": "@groupDescription", "syntaxKind": "block", "allowMultiple": true },
|
|
14
|
+
{ "tagName": "@category", "syntaxKind": "block", "allowMultiple": true },
|
|
15
|
+
{ "tagName": "@categoryDescription", "syntaxKind": "block", "allowMultiple": true },
|
|
16
|
+
{ "tagName": "@hidden", "syntaxKind": "modifier" },
|
|
17
|
+
{ "tagName": "@ignore", "syntaxKind": "modifier" },
|
|
18
|
+
{ "tagName": "@class", "syntaxKind": "modifier" },
|
|
19
|
+
{ "tagName": "@document", "syntaxKind": "block" },
|
|
20
|
+
{ "tagName": "@default", "syntaxKind": "block" },
|
|
21
|
+
{ "tagName": "@extends", "syntaxKind": "block" },
|
|
22
|
+
{ "tagName": "@augments", "syntaxKind": "block" },
|
|
23
|
+
{ "tagName": "@return", "syntaxKind": "block" },
|
|
24
|
+
{ "tagName": "@yields", "syntaxKind": "block" },
|
|
25
|
+
{ "tagName": "@enum", "syntaxKind": "modifier" },
|
|
26
|
+
{ "tagName": "@event", "syntaxKind": "modifier" },
|
|
27
|
+
{ "tagName": "@template", "syntaxKind": "block", "allowMultiple": true },
|
|
28
|
+
{ "tagName": "@linkcode", "syntaxKind": "inline", "allowMultiple": true },
|
|
29
|
+
{ "tagName": "@linkplain", "syntaxKind": "inline", "allowMultiple": true },
|
|
30
|
+
{ "tagName": "@private", "syntaxKind": "modifier" },
|
|
31
|
+
{ "tagName": "@protected", "syntaxKind": "modifier" },
|
|
32
|
+
{ "tagName": "@satisfies", "syntaxKind": "block" },
|
|
33
|
+
{ "tagName": "@since", "syntaxKind": "block" },
|
|
34
|
+
{ "tagName": "@license", "syntaxKind": "block" },
|
|
35
|
+
{ "tagName": "@import", "syntaxKind": "block" },
|
|
36
|
+
{ "tagName": "@overload", "syntaxKind": "modifier" },
|
|
37
|
+
{ "tagName": "@namespace", "syntaxKind": "modifier" },
|
|
38
|
+
{ "tagName": "@interface", "syntaxKind": "modifier" },
|
|
39
|
+
{ "tagName": "@showCategories", "syntaxKind": "modifier" },
|
|
40
|
+
{ "tagName": "@hideCategories", "syntaxKind": "modifier" },
|
|
41
|
+
{ "tagName": "@showGroups", "syntaxKind": "modifier" },
|
|
42
|
+
{ "tagName": "@hideGroups", "syntaxKind": "modifier" },
|
|
43
|
+
{ "tagName": "@hideconstructor", "syntaxKind": "modifier" },
|
|
44
|
+
{ "tagName": "@jsx", "syntaxKind": "block" }
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"entryPoints": ["./app"],
|
|
3
|
-
"entryPointStrategy": "expand",
|
|
4
|
-
"exclude": ["**/*.test.ts", "**/*.d.ts", "**/generated/**"],
|
|
5
|
-
"excludeInternal": false,
|
|
6
|
-
"out": "./docs/",
|
|
7
|
-
"searchInComments": true,
|
|
8
|
-
"searchInDocuments": true,
|
|
9
|
-
"highlightLanguages": ["bash", "console", "json", "typescript"],
|
|
10
|
-
"navigation": {
|
|
11
|
-
"excludeReferences": true
|
|
12
|
-
},
|
|
13
|
-
"projectDocuments": []
|
|
14
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"entryPoints": ["./app"],
|
|
3
|
+
"entryPointStrategy": "expand",
|
|
4
|
+
"exclude": ["**/*.test.ts", "**/*.d.ts", "**/generated/**"],
|
|
5
|
+
"excludeInternal": false,
|
|
6
|
+
"out": "./docs/",
|
|
7
|
+
"searchInComments": true,
|
|
8
|
+
"searchInDocuments": true,
|
|
9
|
+
"highlightLanguages": ["bash", "console", "json", "typescript"],
|
|
10
|
+
"navigation": {
|
|
11
|
+
"excludeReferences": true
|
|
12
|
+
},
|
|
13
|
+
"projectDocuments": []
|
|
14
|
+
}
|