@kitschpatrol/create-project 1.0.3 → 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.
Files changed (28) hide show
  1. package/dist/index.js +3 -5
  2. package/package.json +6 -3
  3. package/templates/cli/.remarkrc.js +4 -2
  4. package/templates/cli/package.json +1 -1
  5. package/templates/cli/src/index.ts +20 -6
  6. package/templates/cli+library/.remarkrc.js +5 -2
  7. 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
  8. 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
  9. 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
  10. package/templates/cli+library/node_modules/@kitschpatrol/repo-config/init/.npmrc +13 -0
  11. package/templates/cli+library/package.json +1 -1
  12. package/templates/cli+library/pnpm-lock.yaml +10094 -0
  13. package/templates/cli+library/src/bin/cli.ts +8 -4
  14. package/templates/library/.remarkrc.js +4 -2
  15. package/templates/library/package.json +2 -4
  16. package/templates/minimal/.remarkrc.js +4 -2
  17. package/templates/minimal/package.json +2 -4
  18. package/templates/web/.remarkrc.js +4 -2
  19. package/templates/web/eslint.config.ts +16 -0
  20. 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
  21. 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
  22. 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
  23. package/templates/web/node_modules/@kitschpatrol/repo-config/init/.npmrc +13 -0
  24. package/templates/web/package.json +8 -8
  25. package/templates/web/pnpm-lock.yaml +10213 -0
  26. package/templates/web/tsconfig.json +3 -1
  27. package/templates/web/vite.config.ts +11 -0
  28. 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",
3
+ "version": "1.0.4",
4
4
  "description": "Kitschpatrol's TypeScript project templates.",
5
5
  "keywords": [
6
6
  "cli",
@@ -33,10 +33,12 @@
33
33
  "bingo-handlebars": "^0.1.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@kitschpatrol/shared-config": "^5.7.2",
36
+ "@kitschpatrol/shared-config": "^5.7.4",
37
+ "@types/node": "^20.19.21",
37
38
  "bumpp": "^10.3.1",
38
39
  "tsdown": "^0.15.7",
39
40
  "typescript": "~5.9.3",
41
+ "vitest": "^3.2.4",
40
42
  "zod": "^3.25.76"
41
43
  },
42
44
  "engines": {
@@ -50,6 +52,7 @@
50
52
  "clean": "git rm -f pnpm-lock.yaml ; git clean -fdX",
51
53
  "fix": "ksc fix",
52
54
  "lint": "ksc lint",
53
- "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"
54
57
  }
55
58
  }
@@ -1,6 +1,8 @@
1
1
  import { remarkConfig } from '@kitschpatrol/remark-config'
2
2
 
3
3
  export default remarkConfig({
4
- // Useful if the repository is not yet pushed to a remote.
5
- rules: [['remarkValidateLinks', { repository: false }]],
4
+ rules: [
5
+ // Useful if the repository is not yet pushed to a remote.
6
+ ['remarkValidateLinks', { repository: false }],
7
+ ],
6
8
  })
@@ -39,7 +39,7 @@
39
39
  "yargs": "^17.7.2"
40
40
  },
41
41
  "devDependencies": {
42
- "@kitschpatrol/shared-config": "^5.7.2",
42
+ "@kitschpatrol/shared-config": "^5.7.4",
43
43
  "bumpp": "^10.3.1",
44
44
  "tsdown": "^0.15.7",
45
45
  "typescript": "~5.9.3"
@@ -15,12 +15,26 @@ await yargsInstance
15
15
  description: 'Run with verbose logging',
16
16
  type: 'boolean',
17
17
  })
18
- .command(['$0', 'do-something'], 'Run the do-something command.', () => {
19
- process.stdout.write('Did something!\n')
20
- })
21
- .command('do-something-else', 'Run the do-something-else command.', () => {
22
- process.stdout.write('Did something else!\n')
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')
@@ -1,6 +1,9 @@
1
1
  import { remarkConfig } from '@kitschpatrol/remark-config'
2
2
 
3
3
  export default remarkConfig({
4
- // Useful if the repository is not yet pushed to a remote.
5
- rules: [['remarkValidateLinks', { repository: false }]],
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*
@@ -47,7 +47,7 @@
47
47
  "yargs": "^17.7.2"
48
48
  },
49
49
  "devDependencies": {
50
- "@kitschpatrol/shared-config": "^5.7.2",
50
+ "@kitschpatrol/shared-config": "^5.7.4",
51
51
  "bumpp": "^10.3.1",
52
52
  "tsdown": "^0.15.7",
53
53
  "typescript": "~5.9.3"