@kitschpatrol/create-project 1.0.2 → 1.0.4
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.js +3 -5
- package/package.json +8 -4
- package/templates/cli/.npmrc +13 -0
- package/templates/cli/.remarkrc.js +4 -2
- package/templates/cli/package.json +1 -1
- package/templates/cli/pnpm-workspace.yaml +4 -0
- package/templates/cli/src/index.ts +20 -6
- package/templates/cli+library/.npmrc +13 -0
- package/templates/cli+library/.remarkrc.js +5 -2
- package/templates/cli+library/node_modules/.pnpm/@kitschpatrol+repo-config@5.7.4_@types+node@20.19.21_typescript@5.9.3/node_modules/@kitschpatrol/repo-config/init/.gitignore +22 -0
- package/templates/cli+library/node_modules/.pnpm/@kitschpatrol+repo-config@5.7.4_@types+node@20.19.21_typescript@5.9.3/node_modules/@kitschpatrol/repo-config/init/.npmrc +13 -0
- package/templates/cli+library/node_modules/.pnpm/@kitschpatrol+shared-config@5.7.4_@types+estree@1.0.8_@types+node@20.19.21_@typescript-_2447bd682c28a4894c15b76c356f369c/node_modules/@kitschpatrol/repo-config/init/.npmrc +13 -0
- package/templates/cli+library/node_modules/@kitschpatrol/repo-config/init/.npmrc +13 -0
- package/templates/cli+library/package.json +1 -1
- package/templates/cli+library/pnpm-lock.yaml +10094 -0
- package/templates/cli+library/pnpm-workspace.yaml +4 -0
- package/templates/cli+library/src/bin/cli.ts +8 -4
- package/templates/library/.npmrc +13 -0
- package/templates/library/.remarkrc.js +4 -2
- package/templates/library/package.json +2 -4
- package/templates/library/pnpm-workspace.yaml +4 -0
- package/templates/minimal/.npmrc +13 -0
- package/templates/minimal/.remarkrc.js +4 -2
- package/templates/minimal/package.json +2 -4
- package/templates/minimal/pnpm-workspace.yaml +4 -0
- package/templates/web/.npmrc +13 -0
- package/templates/web/.remarkrc.js +4 -2
- package/templates/web/eslint.config.ts +16 -0
- package/templates/web/node_modules/.pnpm/@kitschpatrol+repo-config@5.7.4_@types+node@20.19.21_typescript@5.9.3/node_modules/@kitschpatrol/repo-config/init/.gitignore +22 -0
- package/templates/web/node_modules/.pnpm/@kitschpatrol+repo-config@5.7.4_@types+node@20.19.21_typescript@5.9.3/node_modules/@kitschpatrol/repo-config/init/.npmrc +13 -0
- package/templates/web/node_modules/.pnpm/@kitschpatrol+shared-config@5.7.4_@types+estree@1.0.8_@types+node@20.19.21_@typescript-_2447bd682c28a4894c15b76c356f369c/node_modules/@kitschpatrol/repo-config/init/.npmrc +13 -0
- package/templates/web/node_modules/@kitschpatrol/repo-config/init/.npmrc +13 -0
- package/templates/web/package.json +8 -8
- package/templates/web/pnpm-lock.yaml +10213 -0
- package/templates/web/pnpm-workspace.yaml +4 -0
- package/templates/web/tsconfig.json +3 -1
- package/templates/web/vite.config.ts +11 -0
- package/templates/web/tsconfig.build.json +0 -8
package/dist/index.js
CHANGED
|
@@ -3587,17 +3587,15 @@ var template_default = createTemplate({
|
|
|
3587
3587
|
],
|
|
3588
3588
|
phase: 0,
|
|
3589
3589
|
silent: true
|
|
3590
|
-
}]
|
|
3590
|
+
}],
|
|
3591
|
+
suggestions: ["git commit --amend -m 'Initial commit.'"]
|
|
3591
3592
|
};
|
|
3592
3593
|
}
|
|
3593
3594
|
});
|
|
3594
3595
|
|
|
3595
3596
|
//#endregion
|
|
3596
3597
|
//#region src/index.ts
|
|
3597
|
-
process.exitCode = await runTemplateCLI(template_default
|
|
3598
|
-
name: "new-project",
|
|
3599
|
-
version: "0.0.0"
|
|
3600
|
-
});
|
|
3598
|
+
process.exitCode = await runTemplateCLI(template_default);
|
|
3601
3599
|
|
|
3602
3600
|
//#endregion
|
|
3603
3601
|
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/create-project",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Kitschpatrol's TypeScript project templates.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
"dist",
|
|
26
26
|
"templates",
|
|
27
|
-
"templates/**/.gitignore"
|
|
27
|
+
"templates/**/.gitignore",
|
|
28
|
+
"templates/**/.npmrc"
|
|
28
29
|
],
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"bingo": "^0.5.16",
|
|
@@ -32,10 +33,12 @@
|
|
|
32
33
|
"bingo-handlebars": "^0.1.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@kitschpatrol/shared-config": "^5.7.
|
|
36
|
+
"@kitschpatrol/shared-config": "^5.7.4",
|
|
37
|
+
"@types/node": "^20.19.21",
|
|
36
38
|
"bumpp": "^10.3.1",
|
|
37
39
|
"tsdown": "^0.15.7",
|
|
38
40
|
"typescript": "~5.9.3",
|
|
41
|
+
"vitest": "^3.2.4",
|
|
39
42
|
"zod": "^3.25.76"
|
|
40
43
|
},
|
|
41
44
|
"engines": {
|
|
@@ -49,6 +52,7 @@
|
|
|
49
52
|
"clean": "git rm -f pnpm-lock.yaml ; git clean -fdX",
|
|
50
53
|
"fix": "ksc fix",
|
|
51
54
|
"lint": "ksc lint",
|
|
52
|
-
"release": "bumpp --commit 'Release: %s' && pnpm run build && pnpm publish --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')"
|
|
55
|
+
"release": "bumpp --commit 'Release: %s' && pnpm run build && pnpm publish --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
|
|
56
|
+
"test": "vitest run"
|
|
53
57
|
}
|
|
54
58
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
publish-branch=main
|
|
2
|
+
|
|
3
|
+
# Required for using @kitschpatrol/shared-config and the ksc command with pnpm
|
|
4
|
+
public-hoist-pattern[]=@kitschpatrol/repo-config
|
|
5
|
+
public-hoist-pattern[]=@kitschpatrol/typescript-config
|
|
6
|
+
public-hoist-pattern[]=case-police
|
|
7
|
+
public-hoist-pattern[]=*cspell*
|
|
8
|
+
public-hoist-pattern[]=*eslint*
|
|
9
|
+
public-hoist-pattern[]=*knip*
|
|
10
|
+
public-hoist-pattern[]=*mdat*
|
|
11
|
+
public-hoist-pattern[]=*prettier*
|
|
12
|
+
public-hoist-pattern[]=*remark*
|
|
13
|
+
public-hoist-pattern[]=*stylelint*
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { remarkConfig } from '@kitschpatrol/remark-config'
|
|
2
2
|
|
|
3
3
|
export default remarkConfig({
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
rules: [
|
|
5
|
+
// Useful if the repository is not yet pushed to a remote.
|
|
6
|
+
['remarkValidateLinks', { repository: false }],
|
|
7
|
+
],
|
|
6
8
|
})
|
|
@@ -15,12 +15,26 @@ await yargsInstance
|
|
|
15
15
|
description: 'Run with verbose logging',
|
|
16
16
|
type: 'boolean',
|
|
17
17
|
})
|
|
18
|
-
.command(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
.command(
|
|
19
|
+
['$0', 'do-something'],
|
|
20
|
+
'Run the do-something command.',
|
|
21
|
+
() => {
|
|
22
|
+
// Options go here
|
|
23
|
+
},
|
|
24
|
+
() => {
|
|
25
|
+
process.stdout.write('Did something!\n')
|
|
26
|
+
},
|
|
27
|
+
)
|
|
28
|
+
.command(
|
|
29
|
+
'do-something-else',
|
|
30
|
+
'Run the do-something-else command.',
|
|
31
|
+
() => {
|
|
32
|
+
// Options go here
|
|
33
|
+
},
|
|
34
|
+
() => {
|
|
35
|
+
process.stdout.write('Did something else!\n')
|
|
36
|
+
},
|
|
37
|
+
)
|
|
24
38
|
.alias('h', 'help')
|
|
25
39
|
.version(version)
|
|
26
40
|
.alias('v', 'version')
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
publish-branch=main
|
|
2
|
+
|
|
3
|
+
# Required for using @kitschpatrol/shared-config and the ksc command with pnpm
|
|
4
|
+
public-hoist-pattern[]=@kitschpatrol/repo-config
|
|
5
|
+
public-hoist-pattern[]=@kitschpatrol/typescript-config
|
|
6
|
+
public-hoist-pattern[]=case-police
|
|
7
|
+
public-hoist-pattern[]=*cspell*
|
|
8
|
+
public-hoist-pattern[]=*eslint*
|
|
9
|
+
public-hoist-pattern[]=*knip*
|
|
10
|
+
public-hoist-pattern[]=*mdat*
|
|
11
|
+
public-hoist-pattern[]=*prettier*
|
|
12
|
+
public-hoist-pattern[]=*remark*
|
|
13
|
+
public-hoist-pattern[]=*stylelint*
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { remarkConfig } from '@kitschpatrol/remark-config'
|
|
2
2
|
|
|
3
3
|
export default remarkConfig({
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
rules: [
|
|
5
|
+
// Useful if the repository is not yet pushed to a remote.
|
|
6
|
+
['remarkValidateLinks', { repository: false }],
|
|
7
|
+
['remark-lint-no-duplicate-headings', false],
|
|
8
|
+
],
|
|
6
9
|
})
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Git Ignore
|
|
2
|
+
# Also used by CSpell, Stylelint, and ESLint
|
|
3
|
+
|
|
4
|
+
# @kitschpatrol/repo-config boilerplate
|
|
5
|
+
.astro/
|
|
6
|
+
.DS_Store
|
|
7
|
+
.env
|
|
8
|
+
.env.*
|
|
9
|
+
!.env.example
|
|
10
|
+
.eslint-config-inspector
|
|
11
|
+
.svelte-kit/
|
|
12
|
+
{tmp,temp}/
|
|
13
|
+
**/*.min.js
|
|
14
|
+
/scratch/
|
|
15
|
+
bower_components/
|
|
16
|
+
build/
|
|
17
|
+
coverage/
|
|
18
|
+
dist/
|
|
19
|
+
node_modules/
|
|
20
|
+
vendor/
|
|
21
|
+
|
|
22
|
+
# Customizations
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
publish-branch=main
|
|
2
|
+
|
|
3
|
+
# Required for using @kitschpatrol/shared-config and the ksc command with pnpm
|
|
4
|
+
public-hoist-pattern[]=@kitschpatrol/repo-config
|
|
5
|
+
public-hoist-pattern[]=@kitschpatrol/typescript-config
|
|
6
|
+
public-hoist-pattern[]=case-police
|
|
7
|
+
public-hoist-pattern[]=*cspell*
|
|
8
|
+
public-hoist-pattern[]=*eslint*
|
|
9
|
+
public-hoist-pattern[]=*knip*
|
|
10
|
+
public-hoist-pattern[]=*mdat*
|
|
11
|
+
public-hoist-pattern[]=*prettier*
|
|
12
|
+
public-hoist-pattern[]=*remark*
|
|
13
|
+
public-hoist-pattern[]=*stylelint*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
publish-branch=main
|
|
2
|
+
|
|
3
|
+
# Required for using @kitschpatrol/shared-config and the ksc command with pnpm
|
|
4
|
+
public-hoist-pattern[]=@kitschpatrol/repo-config
|
|
5
|
+
public-hoist-pattern[]=@kitschpatrol/typescript-config
|
|
6
|
+
public-hoist-pattern[]=case-police
|
|
7
|
+
public-hoist-pattern[]=*cspell*
|
|
8
|
+
public-hoist-pattern[]=*eslint*
|
|
9
|
+
public-hoist-pattern[]=*knip*
|
|
10
|
+
public-hoist-pattern[]=*mdat*
|
|
11
|
+
public-hoist-pattern[]=*prettier*
|
|
12
|
+
public-hoist-pattern[]=*remark*
|
|
13
|
+
public-hoist-pattern[]=*stylelint*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
publish-branch=main
|
|
2
|
+
|
|
3
|
+
# Required for using @kitschpatrol/shared-config and the ksc command with pnpm
|
|
4
|
+
public-hoist-pattern[]=@kitschpatrol/repo-config
|
|
5
|
+
public-hoist-pattern[]=@kitschpatrol/typescript-config
|
|
6
|
+
public-hoist-pattern[]=case-police
|
|
7
|
+
public-hoist-pattern[]=*cspell*
|
|
8
|
+
public-hoist-pattern[]=*eslint*
|
|
9
|
+
public-hoist-pattern[]=*knip*
|
|
10
|
+
public-hoist-pattern[]=*mdat*
|
|
11
|
+
public-hoist-pattern[]=*prettier*
|
|
12
|
+
public-hoist-pattern[]=*remark*
|
|
13
|
+
public-hoist-pattern[]=*stylelint*
|