@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
|
@@ -20,16 +20,20 @@ await yargsInstance
|
|
|
20
20
|
.command(
|
|
21
21
|
['$0', 'do-something'],
|
|
22
22
|
'Run the do-something command.',
|
|
23
|
-
() => {
|
|
24
|
-
|
|
23
|
+
() => {
|
|
24
|
+
// Options go here
|
|
25
|
+
},
|
|
26
|
+
() => {
|
|
25
27
|
process.stdout.write(doSomething())
|
|
26
28
|
},
|
|
27
29
|
)
|
|
28
30
|
.command(
|
|
29
31
|
'do-something-else',
|
|
30
32
|
'Run the do-something-else command.',
|
|
31
|
-
() => {
|
|
32
|
-
|
|
33
|
+
() => {
|
|
34
|
+
// Options go here
|
|
35
|
+
},
|
|
36
|
+
() => {
|
|
33
37
|
process.stdout.write(doSomethingElse())
|
|
34
38
|
},
|
|
35
39
|
)
|
|
@@ -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
|
})
|
|
@@ -38,12 +38,10 @@
|
|
|
38
38
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@types/node": "^20.19.21"
|
|
42
|
-
"@types/yargs": "^17.0.33",
|
|
43
|
-
"yargs": "^17.7.2"
|
|
41
|
+
"@types/node": "^20.19.21"
|
|
44
42
|
},
|
|
45
43
|
"devDependencies": {
|
|
46
|
-
"@kitschpatrol/shared-config": "^5.7.
|
|
44
|
+
"@kitschpatrol/shared-config": "^5.7.4",
|
|
47
45
|
"bumpp": "^10.3.1",
|
|
48
46
|
"tsdown": "^0.15.7",
|
|
49
47
|
"typescript": "~5.9.3"
|
|
@@ -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
|
})
|
|
@@ -29,12 +29,10 @@
|
|
|
29
29
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@types/node": "^20.19.21"
|
|
33
|
-
"@types/yargs": "^17.0.33",
|
|
34
|
-
"yargs": "^17.7.2"
|
|
32
|
+
"@types/node": "^20.19.21"
|
|
35
33
|
},
|
|
36
34
|
"devDependencies": {
|
|
37
|
-
"@kitschpatrol/shared-config": "^5.7.
|
|
35
|
+
"@kitschpatrol/shared-config": "^5.7.4",
|
|
38
36
|
"bumpp": "^10.3.1",
|
|
39
37
|
"tsx": "^4.20.6",
|
|
40
38
|
"typescript": "~5.9.3"
|
|
@@ -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
|
})
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { eslintConfig } from '@kitschpatrol/eslint-config'
|
|
2
2
|
|
|
3
3
|
export default eslintConfig({
|
|
4
|
+
ts: {
|
|
5
|
+
overrides: {
|
|
6
|
+
'import/no-unresolved': [
|
|
7
|
+
'error',
|
|
8
|
+
{
|
|
9
|
+
ignore: [
|
|
10
|
+
'^astro:',
|
|
11
|
+
'^@astrojs',
|
|
12
|
+
'^virtual:',
|
|
13
|
+
// Public Vite assets...
|
|
14
|
+
'^/',
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
},
|
|
4
20
|
type: 'lib',
|
|
5
21
|
})
|
|
@@ -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*
|
|
@@ -20,25 +20,25 @@
|
|
|
20
20
|
},
|
|
21
21
|
"type": "module",
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "
|
|
23
|
+
"build": "vite build",
|
|
24
24
|
"clean": "git rm -f pnpm-lock.yaml ; git clean -fdX",
|
|
25
|
-
"dev": "vite",
|
|
25
|
+
"dev": "poptab ; vite",
|
|
26
26
|
"fix": "ksc fix",
|
|
27
27
|
"lint": "ksc lint",
|
|
28
|
-
"preview": "vite preview",
|
|
28
|
+
"preview": "poptab ; vite preview",
|
|
29
29
|
"release": "bumpp --commit 'Release: %s'",
|
|
30
30
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@types/node": "^20.19.21"
|
|
34
|
-
"@types/yargs": "^17.0.33",
|
|
35
|
-
"yargs": "^17.7.2"
|
|
33
|
+
"@types/node": "^20.19.21"
|
|
36
34
|
},
|
|
37
35
|
"devDependencies": {
|
|
38
|
-
"@kitschpatrol/shared-config": "^5.7.
|
|
36
|
+
"@kitschpatrol/shared-config": "^5.7.4",
|
|
39
37
|
"bumpp": "^10.3.1",
|
|
38
|
+
"poptab": "^1.0.1",
|
|
40
39
|
"typescript": "~5.9.3",
|
|
41
|
-
"vite": "npm:rolldown-vite@7.1.
|
|
40
|
+
"vite": "npm:rolldown-vite@7.1.17",
|
|
41
|
+
"vite-plugin-mkcert": "^1.17.9"
|
|
42
42
|
},
|
|
43
43
|
"packageManager": "pnpm@10.18.3",
|
|
44
44
|
"engines": {
|