@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.
- package/dist/index.js +26 -8
- package/package.json +11 -10
- package/readme.md +11 -10
- package/templates/cli/.npmrc +0 -12
- package/templates/cli/.vscode/settings.json +30 -30
- package/templates/cli/license.txt +1 -1
- package/templates/cli/package.json +19 -22
- package/templates/cli/pnpm-workspace.yaml +14 -0
- package/templates/cli+library/.npmrc +0 -12
- package/templates/cli+library/.vscode/settings.json +30 -30
- package/templates/cli+library/license.txt +1 -1
- package/templates/cli+library/package.json +19 -22
- package/templates/cli+library/pnpm-workspace.yaml +14 -0
- package/templates/electron/.npmrc +0 -12
- package/templates/electron/.vscode/settings.json +30 -30
- package/templates/electron/cspell.config.js +1 -1
- package/templates/electron/electron-builder.ts +2 -0
- package/templates/electron/eslint.config.ts +1 -0
- package/templates/electron/knip.config.ts +3 -1
- package/templates/electron/license.txt +1 -1
- package/templates/electron/package.json +17 -17
- package/templates/electron/pnpm-workspace.yaml +14 -0
- package/templates/electron/src/style.css +3 -4
- package/templates/electron/tsconfig.json +1 -1
- package/templates/library/.npmrc +0 -12
- package/templates/library/.vscode/settings.json +30 -30
- package/templates/library/license.txt +1 -1
- package/templates/library/package.json +14 -17
- package/templates/library/pnpm-workspace.yaml +14 -0
- package/templates/minimal/.npmrc +0 -12
- package/templates/minimal/.vscode/settings.json +30 -30
- package/templates/minimal/license.txt +1 -1
- package/templates/minimal/package.json +14 -14
- package/templates/minimal/pnpm-workspace.yaml +14 -0
- package/templates/unplugin/.github/workflows/github-release.yml +81 -0
- package/templates/unplugin/.github/workflows/set-github-metadata.yml +21 -0
- package/templates/unplugin/.gitignore +22 -0
- package/templates/unplugin/.npmrc +4 -0
- package/templates/unplugin/.prettierignore +8 -0
- package/templates/unplugin/.remarkrc.js +8 -0
- package/templates/unplugin/.vscode/extensions.json +9 -0
- package/templates/unplugin/.vscode/settings.json +68 -0
- package/templates/unplugin/cspell.config.js +3 -0
- package/templates/unplugin/eslint.config.ts +11 -0
- package/templates/unplugin/knip.config.ts +5 -0
- package/templates/unplugin/license.txt +21 -0
- package/templates/unplugin/mdat.config.ts +3 -0
- package/templates/unplugin/package.json +82 -0
- package/templates/unplugin/pnpm-workspace.yaml +17 -0
- package/templates/unplugin/prettier.config.js +3 -0
- package/templates/unplugin/readme.md +27 -0
- package/templates/unplugin/src/api.ts +2 -0
- package/templates/unplugin/src/core/options.ts +28 -0
- package/templates/unplugin/src/esbuild.ts +22 -0
- package/templates/unplugin/src/farm.ts +22 -0
- package/templates/unplugin/src/index.ts +27 -0
- package/templates/unplugin/src/rolldown.ts +22 -0
- package/templates/unplugin/src/rollup.ts +22 -0
- package/templates/unplugin/src/rspack.ts +22 -0
- package/templates/unplugin/src/vite.ts +22 -0
- package/templates/unplugin/src/webpack.ts +24 -0
- package/templates/unplugin/stylelint.config.js +3 -0
- package/templates/unplugin/tests/__snapshots__/rollup.test.ts.snap +10 -0
- package/templates/unplugin/tests/fixtures/basic.js +1 -0
- package/templates/unplugin/tests/rollup.test.ts +16 -0
- package/templates/unplugin/tsconfig.build.json +5 -0
- package/templates/unplugin/tsconfig.json +7 -0
- package/templates/unplugin/tsdown.config.ts +7 -0
- package/templates/web/.npmrc +0 -12
- package/templates/web/.vscode/settings.json +30 -30
- package/templates/web/license.txt +1 -1
- package/templates/web/package.json +14 -14
- package/templates/web/pnpm-workspace.yaml +14 -0
- 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
|
+
})
|
package/templates/web/.npmrc
CHANGED
|
@@ -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
|
-
"
|
|
3
|
-
|
|
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
|
-
"
|
|
12
|
-
|
|
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
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
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,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": "
|
|
33
|
+
"@types/node": "~20.19.27"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@kitschpatrol/shared-config": "^5.
|
|
37
|
-
"bumpp": "^10.3.
|
|
38
|
-
"poptab": "^1.0.
|
|
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.
|
|
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
|
-
|
|
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-
|
|
10
|
+
-webkit-font-smoothing: antialiased;
|
|
11
|
+
-moz-osx-font-smoothing: grayscale;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
a {
|