@kitschpatrol/create-project 1.1.3 → 1.2.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.
Files changed (74) hide show
  1. package/dist/index.js +26 -8
  2. package/package.json +11 -10
  3. package/readme.md +11 -10
  4. package/templates/cli/.npmrc +0 -12
  5. package/templates/cli/.vscode/settings.json +30 -30
  6. package/templates/cli/license.txt +1 -1
  7. package/templates/cli/package.json +19 -22
  8. package/templates/cli/pnpm-workspace.yaml +14 -0
  9. package/templates/cli+library/.npmrc +0 -12
  10. package/templates/cli+library/.vscode/settings.json +30 -30
  11. package/templates/cli+library/license.txt +1 -1
  12. package/templates/cli+library/package.json +19 -22
  13. package/templates/cli+library/pnpm-workspace.yaml +14 -0
  14. package/templates/electron/.npmrc +0 -12
  15. package/templates/electron/.vscode/settings.json +30 -30
  16. package/templates/electron/cspell.config.js +1 -1
  17. package/templates/electron/electron-builder.ts +2 -0
  18. package/templates/electron/eslint.config.ts +1 -0
  19. package/templates/electron/knip.config.ts +3 -1
  20. package/templates/electron/license.txt +1 -1
  21. package/templates/electron/package.json +17 -17
  22. package/templates/electron/pnpm-workspace.yaml +14 -0
  23. package/templates/electron/src/style.css +3 -4
  24. package/templates/electron/tsconfig.json +1 -1
  25. package/templates/library/.npmrc +0 -12
  26. package/templates/library/.vscode/settings.json +30 -30
  27. package/templates/library/license.txt +1 -1
  28. package/templates/library/package.json +14 -17
  29. package/templates/library/pnpm-workspace.yaml +14 -0
  30. package/templates/minimal/.npmrc +0 -12
  31. package/templates/minimal/.vscode/settings.json +30 -30
  32. package/templates/minimal/license.txt +1 -1
  33. package/templates/minimal/package.json +14 -14
  34. package/templates/minimal/pnpm-workspace.yaml +14 -0
  35. package/templates/unplugin/.github/workflows/github-release.yml +81 -0
  36. package/templates/unplugin/.github/workflows/set-github-metadata.yml +21 -0
  37. package/templates/unplugin/.gitignore +22 -0
  38. package/templates/unplugin/.npmrc +4 -0
  39. package/templates/unplugin/.prettierignore +8 -0
  40. package/templates/unplugin/.remarkrc.js +8 -0
  41. package/templates/unplugin/.vscode/extensions.json +9 -0
  42. package/templates/unplugin/.vscode/settings.json +68 -0
  43. package/templates/unplugin/cspell.config.js +3 -0
  44. package/templates/unplugin/eslint.config.ts +11 -0
  45. package/templates/unplugin/knip.config.ts +5 -0
  46. package/templates/unplugin/license.txt +21 -0
  47. package/templates/unplugin/mdat.config.ts +3 -0
  48. package/templates/unplugin/package.json +82 -0
  49. package/templates/unplugin/pnpm-workspace.yaml +17 -0
  50. package/templates/unplugin/prettier.config.js +3 -0
  51. package/templates/unplugin/readme.md +27 -0
  52. package/templates/unplugin/src/api.ts +2 -0
  53. package/templates/unplugin/src/core/options.ts +28 -0
  54. package/templates/unplugin/src/esbuild.ts +22 -0
  55. package/templates/unplugin/src/farm.ts +22 -0
  56. package/templates/unplugin/src/index.ts +27 -0
  57. package/templates/unplugin/src/rolldown.ts +22 -0
  58. package/templates/unplugin/src/rollup.ts +22 -0
  59. package/templates/unplugin/src/rspack.ts +22 -0
  60. package/templates/unplugin/src/vite.ts +22 -0
  61. package/templates/unplugin/src/webpack.ts +24 -0
  62. package/templates/unplugin/stylelint.config.js +3 -0
  63. package/templates/unplugin/tests/__snapshots__/rollup.test.ts.snap +10 -0
  64. package/templates/unplugin/tests/fixtures/basic.js +1 -0
  65. package/templates/unplugin/tests/rollup.test.ts +16 -0
  66. package/templates/unplugin/tsconfig.build.json +5 -0
  67. package/templates/unplugin/tsconfig.json +7 -0
  68. package/templates/unplugin/tsdown.config.ts +7 -0
  69. package/templates/web/.npmrc +0 -12
  70. package/templates/web/.vscode/settings.json +30 -30
  71. package/templates/web/license.txt +1 -1
  72. package/templates/web/package.json +14 -14
  73. package/templates/web/pnpm-workspace.yaml +14 -0
  74. package/templates/web/src/style.css +3 -4
@@ -0,0 +1,16 @@
1
+ import { rollupBuild, testFixtures } from '@sxzz/test-utils'
2
+ import path from 'node:path'
3
+ import { describe } from 'vitest'
4
+ import starter from '../src/rollup'
5
+
6
+ describe('rollup', async () => {
7
+ const { dirname } = import.meta
8
+ await testFixtures(
9
+ '*.js',
10
+ async (_args, id) => {
11
+ const { snapshot } = await rollupBuild(id, [starter()])
12
+ return snapshot
13
+ },
14
+ { cwd: path.resolve(dirname, 'fixtures'), promise: true },
15
+ )
16
+ })
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "include": ["src"],
4
+ "exclude": ["**/dist/", "**/bin/"]
5
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "@kitschpatrol/typescript-config",
3
+
4
+ // Includes project dot-files files for typescript-eslint integration
5
+ "include": ["**/*", "**/**.*"],
6
+ "exclude": ["**/dist/", "**/bin/"]
7
+ }
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from 'tsdown'
2
+
3
+ export default defineConfig({
4
+ entry: ['./src/*.ts'],
5
+ fixedExtension: false,
6
+ inlineOnly: [],
7
+ })
@@ -1,16 +1,4 @@
1
1
  publish-branch=main
2
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*
14
-
15
3
  # Required for automated local publishing
16
4
  //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
@@ -1,21 +1,30 @@
1
1
  {
2
- "explorer.fileNesting.enabled": true,
3
- "explorer.fileNesting.expand": false,
4
- "explorer.fileNesting.patterns": {
5
- "*.js": "${basename}.ts.map, ${basename}.js.map, ${basename}.d.ts, ${basename}.d.ts.map, ${basename}.d.js.map",
6
- "*.ts": "${basename}.ts.map, ${basename}.d.ts, ${basename}.d.ts.map",
7
- ".env": ".env.*",
8
- "package.json": ".*ignore, .*rc, .*.js, .*.mjs, .*.cjs, .*.ts, .*.mts, .*.cts, .*.json, .*.jsonc, .*.json5, .*.yml, .*.yaml, *config.js, *config.mjs, *config.cjs, *config.ts, *config.mts, *config.cts, *config.json, *config.jsonc, *config.json5, *config.yml, *config.yaml, pnpm*, workspace*, yarn*, lerna.json, netlify.toml, package-lock.json, turbo.json, vercel.json, wrangler.toml, yarn.lock",
9
- "readme.md": "authors*, backers*, changelog*, citation*, code_of_conduct*, contributing*, contributors*, copying*, credits*, governance*, history*, license*, maintainers*, release_notes*, security*, sponsors*"
2
+ "[astro]": {
3
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
10
4
  },
11
- "typescript.enablePromptUseWorkspaceTsdk": true,
12
- "typescript.tsdk": "node_modules/typescript/lib",
5
+ "[gitignore]": {
6
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
7
+ },
8
+ "[ruby]": {
9
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
10
+ },
11
+ "[shellscript]": {
12
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
13
+ },
14
+ "[svelte]": {
15
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
16
+ },
17
+ "cSpell.enabled": true,
18
+ "cSpell.workspaceRootPath": ".",
13
19
  "editor.codeActionsOnSave": {
14
20
  "source.fixAll": "explicit",
15
21
  "source.organizeImports": "never"
16
22
  },
23
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
24
+ "editor.formatOnSave": true,
17
25
  "eslint.enable": true,
18
26
  "eslint.runtime": "node",
27
+ "eslint.useFlatConfig": true,
19
28
  "eslint.validate": [
20
29
  "astro",
21
30
  "html",
@@ -33,26 +42,15 @@
33
42
  "xml",
34
43
  "yaml"
35
44
  ],
36
- "eslint.useFlatConfig": true,
37
- "cSpell.enabled": true,
38
- "cSpell.workspaceRootPath": ".",
39
- "[astro]": {
40
- "editor.defaultFormatter": "esbenp.prettier-vscode"
41
- },
42
- "[gitignore]": {
43
- "editor.defaultFormatter": "esbenp.prettier-vscode"
44
- },
45
- "[ruby]": {
46
- "editor.defaultFormatter": "esbenp.prettier-vscode"
47
- },
48
- "[shellscript]": {
49
- "editor.defaultFormatter": "esbenp.prettier-vscode"
50
- },
51
- "[svelte]": {
52
- "editor.defaultFormatter": "esbenp.prettier-vscode"
45
+ "explorer.fileNesting.enabled": true,
46
+ "explorer.fileNesting.expand": false,
47
+ "explorer.fileNesting.patterns": {
48
+ ".env": ".env.*, .template.env",
49
+ "*.js": "${basename}.ts.map, ${basename}.js.map, ${basename}.d.ts, ${basename}.d.ts.map, ${basename}.d.js.map",
50
+ "*.ts": "${basename}.ts.map, ${basename}.d.ts, ${basename}.d.ts.map",
51
+ "package.json": ".*ignore, .*rc, .*.js, .*.mjs, .*.cjs, .*.ts, .*.mts, .*.cts, .*.json, .*.jsonc, .*.json5, .*.yml, .*.yaml, *config.js, *config.mjs, *config.cjs, *config.ts, *config.mts, *config.cts, *config.json, *config.jsonc, *config.json5, *config.yml, *config.yaml, pnpm*, workspace*, yarn*, lerna.json, netlify.toml, package-lock.json, turbo.json, vercel.json, wrangler.toml, yarn.lock",
52
+ "readme.md": "authors*, backers*, changelog*, citation*, code_of_conduct*, contributing*, contributors*, copying*, credits*, governance*, history*, license*, maintainers*, release_notes*, security*, sponsors*"
53
53
  },
54
- "editor.defaultFormatter": "esbenp.prettier-vscode",
55
- "editor.formatOnSave": true,
56
54
  "prettier.documentSelectors": [
57
55
  "**/.eslintignore",
58
56
  "**/.node-version",
@@ -64,5 +62,7 @@
64
62
  ],
65
63
  "prettier.enable": true,
66
64
  "stylelint.enable": true,
67
- "stylelint.validate": ["css", "html", "svelte", "astro"]
65
+ "stylelint.validate": ["css", "html", "svelte", "astro"],
66
+ "typescript.enablePromptUseWorkspaceTsdk": true,
67
+ "typescript.tsdk": "node_modules/typescript/lib"
68
68
  }
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 {{author-name}}
3
+ Copyright (c) {{{year}}} {{{author-name}}}
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,22 +1,22 @@
1
1
  {
2
- "name": "{{github-repository}}",
2
+ "name": "{{{github-repository}}}",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
- "description": "A {{type}} project.",
5
+ "description": "A {{{type}}} project.",
6
6
  "keywords": [
7
- "{{type}}"
7
+ "{{{type}}}"
8
8
  ],
9
- "homepage": "https://github.com/{{github-owner}}/{{github-repository}}",
10
- "bugs": "https://github.com/{{github-owner}}/{{github-repository}}/issues",
9
+ "homepage": "https://github.com/{{{github-owner}}}/{{{github-repository}}}",
10
+ "bugs": "https://github.com/{{{github-owner}}}/{{{github-repository}}}/issues",
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "git+https://github.com/{{github-owner}}/{{github-repository}}.git"
13
+ "url": "git+https://github.com/{{{github-owner}}}/{{{github-repository}}}.git"
14
14
  },
15
15
  "license": "MIT",
16
16
  "author": {
17
- "name": "{{author-name}}",
18
- "email": "{{author-email}}",
19
- "url": "{{author-url}}"
17
+ "name": "{{{author-name}}}",
18
+ "email": "{{{author-email}}}",
19
+ "url": "{{{author-url}}}"
20
20
  },
21
21
  "type": "module",
22
22
  "scripts": {
@@ -30,17 +30,17 @@
30
30
  "test": "echo \"Error: no test specified\" && exit 1"
31
31
  },
32
32
  "dependencies": {
33
- "@types/node": "^20.19.24"
33
+ "@types/node": "~20.19.27"
34
34
  },
35
35
  "devDependencies": {
36
- "@kitschpatrol/shared-config": "^5.8.1",
37
- "bumpp": "^10.3.1",
38
- "poptab": "^1.0.2",
36
+ "@kitschpatrol/shared-config": "^5.10.0",
37
+ "bumpp": "^10.3.2",
38
+ "poptab": "^1.0.4",
39
39
  "typescript": "~5.9.3",
40
40
  "vite": "npm:rolldown-vite@7.1.17",
41
41
  "vite-plugin-mkcert": "^1.17.9"
42
42
  },
43
- "packageManager": "pnpm@10.20.0",
43
+ "packageManager": "pnpm@10.26.2",
44
44
  "engines": {
45
45
  "node": ">=20.19.0"
46
46
  },
@@ -1,3 +1,17 @@
1
+ # Required by @kitschpatrol/shared-config
2
+
1
3
  onlyBuiltDependencies:
2
4
  - esbuild
3
5
  - unrs-resolver
6
+
7
+ publicHoistPattern:
8
+ - '@kitschpatrol/repo-config'
9
+ - '@kitschpatrol/typescript-config'
10
+ - 'case-police'
11
+ - '*cspell*'
12
+ - '*eslint*'
13
+ - '*knip*'
14
+ - '*mdat*'
15
+ - '*prettier*'
16
+ - '*remark*'
17
+ - '*stylelint*'
@@ -1,15 +1,14 @@
1
1
  :root {
2
2
  font-family: system-ui, Helvetica, Arial, sans-serif;
3
3
  font-weight: 400;
4
- -webkit-font-smoothing: antialiased;
5
- -moz-osx-font-smoothing: grayscale;
4
+ font-synthesis: none;
6
5
  line-height: 1.5;
7
6
  color: rgb(255 255 255 / 87%);
8
7
  text-rendering: optimizelegibility;
9
8
  color-scheme: light dark;
10
9
  background-color: #242424;
11
-
12
- font-synthesis: none;
10
+ -webkit-font-smoothing: antialiased;
11
+ -moz-osx-font-smoothing: grayscale;
13
12
  }
14
13
 
15
14
  a {