@kitschpatrol/create-project 1.3.0 → 1.3.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/package.json +4 -4
- package/templates/cli/.gitignore +3 -1
- package/templates/cli/package.json +2 -2
- package/templates/cli/tsconfig.json +3 -0
- package/templates/cli+library/.gitignore +3 -1
- package/templates/cli+library/package.json +2 -2
- package/templates/cli+library/src/lib/log.ts +6 -4
- package/templates/cli+library/tsconfig.json +3 -0
- package/templates/electron/.gitignore +3 -1
- package/templates/electron/package.json +1 -1
- package/templates/electron/tsconfig.json +1 -1
- package/templates/library/.gitignore +3 -1
- package/templates/library/package.json +2 -2
- package/templates/library/src/log.ts +6 -4
- package/templates/library/tsconfig.json +3 -0
- package/templates/minimal/.gitignore +3 -1
- package/templates/minimal/package.json +2 -2
- package/templates/unplugin/.gitignore +3 -1
- package/templates/unplugin/package.json +2 -2
- package/templates/unplugin/playground/package.json +1 -1
- package/templates/web/.gitignore +3 -1
- package/templates/web/package.json +4 -4
- package/templates/web/pnpm-workspace.yaml +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/create-project",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Kitschpatrol's TypeScript project templates.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"zod": "^3.25.76"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@kitschpatrol/shared-config": "^7.
|
|
38
|
+
"@kitschpatrol/shared-config": "^7.3.0",
|
|
39
39
|
"@types/node": "~20.19.39",
|
|
40
40
|
"bumpp": "^11.0.1",
|
|
41
41
|
"mdat": "^2.2.1",
|
|
42
42
|
"shx": "^0.4.0",
|
|
43
43
|
"taze": "^19.11.0",
|
|
44
44
|
"tsdown": "^0.21.7",
|
|
45
|
-
"typescript": "~
|
|
45
|
+
"typescript": "~6.0.2",
|
|
46
46
|
"vitest": "^4.1.4"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"build": "tsdown",
|
|
62
62
|
"clean": "shx rm -f pnpm-lock.yaml && git clean -fdX -e !.claude/",
|
|
63
63
|
"fix": "ksc fix --skip mdat && mdat readme.md",
|
|
64
|
-
"lint": "ksc
|
|
64
|
+
"lint": "ksc lint --skip mdat && mdat check readme.md",
|
|
65
65
|
"release": "bumpp --commit 'Release: %s' && pnpm build && NPM_AUTH_TOKEN=$(op read 'op://Personal/npm/token') && pnpm publish",
|
|
66
66
|
"test": "vitest run",
|
|
67
67
|
"update-templates": "for dir in ./templates/*; do taze -w --cwd \"$dir\"; done",
|
package/templates/cli/.gitignore
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
# Also used by CSpell, Stylelint, and ESLint
|
|
3
3
|
|
|
4
4
|
# @kitschpatrol/repo-config boilerplate
|
|
5
|
+
!.env.example
|
|
5
6
|
.astro/
|
|
6
7
|
.DS_Store
|
|
7
8
|
.env
|
|
8
9
|
.env.*
|
|
9
|
-
!.env.example
|
|
10
10
|
.eslint-config-inspector
|
|
11
|
+
.pnpm-store/
|
|
11
12
|
.svelte-kit/
|
|
12
13
|
{tmp,temp}/
|
|
13
14
|
**/*.min.js
|
|
@@ -20,3 +21,4 @@ node_modules/
|
|
|
20
21
|
vendor/
|
|
21
22
|
|
|
22
23
|
# Customizations
|
|
24
|
+
.claude/
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"yargs": "^18.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@kitschpatrol/shared-config": "^7.
|
|
46
|
+
"@kitschpatrol/shared-config": "^7.3.0",
|
|
47
47
|
"bumpp": "^11.0.1",
|
|
48
48
|
"mdat-plugin-cli-help": "^2.1.2",
|
|
49
49
|
"publint": "^0.3.18",
|
|
50
50
|
"shx": "^0.4.0",
|
|
51
51
|
"tsdown": "^0.21.7",
|
|
52
|
-
"typescript": "~
|
|
52
|
+
"typescript": "~6.0.2",
|
|
53
53
|
"vitest": "^4.1.4"
|
|
54
54
|
},
|
|
55
55
|
"packageManager": "pnpm@10.33.0",
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
# Also used by CSpell, Stylelint, and ESLint
|
|
3
3
|
|
|
4
4
|
# @kitschpatrol/repo-config boilerplate
|
|
5
|
+
!.env.example
|
|
5
6
|
.astro/
|
|
6
7
|
.DS_Store
|
|
7
8
|
.env
|
|
8
9
|
.env.*
|
|
9
|
-
!.env.example
|
|
10
10
|
.eslint-config-inspector
|
|
11
|
+
.pnpm-store/
|
|
11
12
|
.svelte-kit/
|
|
12
13
|
{tmp,temp}/
|
|
13
14
|
**/*.min.js
|
|
@@ -20,3 +21,4 @@ node_modules/
|
|
|
20
21
|
vendor/
|
|
21
22
|
|
|
22
23
|
# Customizations
|
|
24
|
+
.claude/
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@arethetypeswrong/core": "^0.18.2",
|
|
56
|
-
"@kitschpatrol/shared-config": "^7.
|
|
56
|
+
"@kitschpatrol/shared-config": "^7.3.0",
|
|
57
57
|
"bumpp": "^11.0.1",
|
|
58
58
|
"mdat-plugin-cli-help": "^2.1.2",
|
|
59
59
|
"publint": "^0.3.18",
|
|
60
60
|
"shx": "^0.4.0",
|
|
61
61
|
"tsdown": "^0.21.7",
|
|
62
|
-
"typescript": "~
|
|
62
|
+
"typescript": "~6.0.2",
|
|
63
63
|
"vitest": "^4.1.4"
|
|
64
64
|
},
|
|
65
65
|
"packageManager": "pnpm@10.33.0",
|
|
@@ -8,10 +8,12 @@ import { name } from '../../package.json' with { type: 'json' }
|
|
|
8
8
|
export let log = createLogger(name)
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Set the logger instance for the module.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Set the logger instance for the module. Export this for library consumers to
|
|
12
|
+
* inject their own logger.
|
|
13
|
+
*
|
|
14
|
+
* @param logger - Accepts either a LogLayer instance or a Console- or
|
|
15
|
+
* Stream-like log target
|
|
14
16
|
*/
|
|
15
|
-
export function setLogger(logger?: ILogBasic | ILogLayer) {
|
|
17
|
+
export function setLogger(logger?: ILogBasic | ILogLayer<unknown>) {
|
|
16
18
|
log = injectionHelper(logger)
|
|
17
19
|
}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
# Also used by CSpell, Stylelint, and ESLint
|
|
3
3
|
|
|
4
4
|
# @kitschpatrol/repo-config boilerplate
|
|
5
|
+
!.env.example
|
|
5
6
|
.astro/
|
|
6
7
|
.DS_Store
|
|
7
8
|
.env
|
|
8
9
|
.env.*
|
|
9
|
-
!.env.example
|
|
10
10
|
.eslint-config-inspector
|
|
11
|
+
.pnpm-store/
|
|
11
12
|
.svelte-kit/
|
|
12
13
|
{tmp,temp}/
|
|
13
14
|
**/*.min.js
|
|
@@ -20,5 +21,6 @@ node_modules/
|
|
|
20
21
|
vendor/
|
|
21
22
|
|
|
22
23
|
# Customizations
|
|
24
|
+
.claude/
|
|
23
25
|
dist-electron/
|
|
24
26
|
release/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "@kitschpatrol/typescript-config",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"types": ["vite/client", "vite-plugin-electron/electron-env.d.ts"]
|
|
4
|
+
"types": ["node", "vite/client", "vite-plugin-electron/electron-env.d.ts"]
|
|
5
5
|
},
|
|
6
6
|
// Includes project dot-files files for typescript-eslint integration
|
|
7
7
|
"include": ["**/*", "**/**.*"],
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
# Also used by CSpell, Stylelint, and ESLint
|
|
3
3
|
|
|
4
4
|
# @kitschpatrol/repo-config boilerplate
|
|
5
|
+
!.env.example
|
|
5
6
|
.astro/
|
|
6
7
|
.DS_Store
|
|
7
8
|
.env
|
|
8
9
|
.env.*
|
|
9
|
-
!.env.example
|
|
10
10
|
.eslint-config-inspector
|
|
11
|
+
.pnpm-store/
|
|
11
12
|
.svelte-kit/
|
|
12
13
|
{tmp,temp}/
|
|
13
14
|
**/*.min.js
|
|
@@ -20,3 +21,4 @@ node_modules/
|
|
|
20
21
|
vendor/
|
|
21
22
|
|
|
22
23
|
# Customizations
|
|
24
|
+
.claude/
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@arethetypeswrong/core": "^0.18.2",
|
|
49
|
-
"@kitschpatrol/shared-config": "^7.
|
|
49
|
+
"@kitschpatrol/shared-config": "^7.3.0",
|
|
50
50
|
"bumpp": "^11.0.1",
|
|
51
51
|
"publint": "^0.3.18",
|
|
52
52
|
"shx": "^0.4.0",
|
|
53
53
|
"tsdown": "^0.21.7",
|
|
54
|
-
"typescript": "~
|
|
54
|
+
"typescript": "~6.0.2",
|
|
55
55
|
"vitest": "^4.1.4"
|
|
56
56
|
},
|
|
57
57
|
"packageManager": "pnpm@10.33.0",
|
|
@@ -8,10 +8,12 @@ import { name } from '../package.json' with { type: 'json' }
|
|
|
8
8
|
export let log = createLogger(name)
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Set the logger instance for the module.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Set the logger instance for the module. Export this for library consumers to
|
|
12
|
+
* inject their own logger.
|
|
13
|
+
*
|
|
14
|
+
* @param logger - Accepts either a LogLayer instance or a Console- or
|
|
15
|
+
* Stream-like log target
|
|
14
16
|
*/
|
|
15
|
-
export function setLogger(logger?: ILogBasic | ILogLayer) {
|
|
17
|
+
export function setLogger(logger?: ILogBasic | ILogLayer<unknown>) {
|
|
16
18
|
log = injectionHelper(logger)
|
|
17
19
|
}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
# Also used by CSpell, Stylelint, and ESLint
|
|
3
3
|
|
|
4
4
|
# @kitschpatrol/repo-config boilerplate
|
|
5
|
+
!.env.example
|
|
5
6
|
.astro/
|
|
6
7
|
.DS_Store
|
|
7
8
|
.env
|
|
8
9
|
.env.*
|
|
9
|
-
!.env.example
|
|
10
10
|
.eslint-config-inspector
|
|
11
|
+
.pnpm-store/
|
|
11
12
|
.svelte-kit/
|
|
12
13
|
{tmp,temp}/
|
|
13
14
|
**/*.min.js
|
|
@@ -20,3 +21,4 @@ node_modules/
|
|
|
20
21
|
vendor/
|
|
21
22
|
|
|
22
23
|
# Customizations
|
|
24
|
+
.claude/
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@types/node": "~20.19.39"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@kitschpatrol/shared-config": "^7.
|
|
36
|
+
"@kitschpatrol/shared-config": "^7.3.0",
|
|
37
37
|
"bumpp": "^11.0.1",
|
|
38
38
|
"shx": "^0.4.0",
|
|
39
39
|
"tsx": "^4.21.0",
|
|
40
|
-
"typescript": "~
|
|
40
|
+
"typescript": "~6.0.2"
|
|
41
41
|
},
|
|
42
42
|
"packageManager": "pnpm@10.33.0",
|
|
43
43
|
"engines": {
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
# Also used by CSpell, Stylelint, and ESLint
|
|
3
3
|
|
|
4
4
|
# @kitschpatrol/repo-config boilerplate
|
|
5
|
+
!.env.example
|
|
5
6
|
.astro/
|
|
6
7
|
.DS_Store
|
|
7
8
|
.env
|
|
8
9
|
.env.*
|
|
9
|
-
!.env.example
|
|
10
10
|
.eslint-config-inspector
|
|
11
|
+
.pnpm-store/
|
|
11
12
|
.svelte-kit/
|
|
12
13
|
{tmp,temp}/
|
|
13
14
|
**/*.min.js
|
|
@@ -20,3 +21,4 @@ node_modules/
|
|
|
20
21
|
vendor/
|
|
21
22
|
|
|
22
23
|
# Customizations
|
|
24
|
+
.claude/
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@farmfe/core": ">=1.7.11",
|
|
77
|
-
"@kitschpatrol/shared-config": "^7.
|
|
77
|
+
"@kitschpatrol/shared-config": "^7.3.0",
|
|
78
78
|
"@sxzz/test-utils": "^0.5.16",
|
|
79
79
|
"@vitest/browser-playwright": "^4.1.4",
|
|
80
80
|
"bumpp": "^11.0.1",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"typescript": "~5.9.3",
|
|
87
87
|
"vite": "^7.3.2",
|
|
88
88
|
"vitest": "^4.1.4",
|
|
89
|
-
"webpack": "^5.106.
|
|
89
|
+
"webpack": "^5.106.1"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@farmfe/core": ">=1",
|
package/templates/web/.gitignore
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
# Also used by CSpell, Stylelint, and ESLint
|
|
3
3
|
|
|
4
4
|
# @kitschpatrol/repo-config boilerplate
|
|
5
|
+
!.env.example
|
|
5
6
|
.astro/
|
|
6
7
|
.DS_Store
|
|
7
8
|
.env
|
|
8
9
|
.env.*
|
|
9
|
-
!.env.example
|
|
10
10
|
.eslint-config-inspector
|
|
11
|
+
.pnpm-store/
|
|
11
12
|
.svelte-kit/
|
|
12
13
|
{tmp,temp}/
|
|
13
14
|
**/*.min.js
|
|
@@ -20,3 +21,4 @@ node_modules/
|
|
|
20
21
|
vendor/
|
|
21
22
|
|
|
22
23
|
# Customizations
|
|
24
|
+
.claude/
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"@types/node": "~20.19.39"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@kitschpatrol/shared-config": "^7.
|
|
39
|
+
"@kitschpatrol/shared-config": "^7.3.0",
|
|
40
40
|
"bumpp": "^11.0.1",
|
|
41
41
|
"poptab": "^1.1.0",
|
|
42
42
|
"shx": "^0.4.0",
|
|
43
|
-
"typescript": "~
|
|
44
|
-
"vite": "^
|
|
45
|
-
"vite-plugin-mkcert": "
|
|
43
|
+
"typescript": "~6.0.2",
|
|
44
|
+
"vite": "^8.0.8",
|
|
45
|
+
"vite-plugin-mkcert": "~1.17.12",
|
|
46
46
|
"vitest": "^4.1.4"
|
|
47
47
|
},
|
|
48
48
|
"packageManager": "pnpm@10.33.0",
|