create-template-project 1.1.1 → 1.1.2

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "vite": {
4
- "version": "8.0.2",
4
+ "version": "8.0.3",
5
5
  "description": "Native-ESM powered web dev build tool"
6
6
  },
7
7
  "@vitejs/plugin-react": {
@@ -9,15 +9,15 @@
9
9
  "description": "The default Vite plugin for React projects."
10
10
  },
11
11
  "@vitest/browser": {
12
- "version": "4.1.1",
12
+ "version": "4.1.2",
13
13
  "description": "Run Vitest in the browser."
14
14
  },
15
15
  "@vitest/browser-playwright": {
16
- "version": "4.1.1",
16
+ "version": "4.1.2",
17
17
  "description": "Playwright provider for Vitest browser mode."
18
18
  },
19
19
  "playwright": {
20
- "version": "1.58.2",
20
+ "version": "1.59.1",
21
21
  "description": "Framework for Web-browser automation."
22
22
  },
23
23
  "debug": {
@@ -37,11 +37,11 @@
37
37
  "description": "TypeScript definitions for debug."
38
38
  },
39
39
  "@types/node": {
40
- "version": "25.5.0",
40
+ "version": "25.5.2",
41
41
  "description": "TypeScript definitions for Node.js."
42
42
  },
43
43
  "@vitest/coverage-v8": {
44
- "version": "4.1.1",
44
+ "version": "4.1.2",
45
45
  "description": "V8 coverage provider for Vitest."
46
46
  },
47
47
  "conventional-changelog": {
@@ -53,23 +53,23 @@
53
53
  "description": "Modern native git hooks made easy."
54
54
  },
55
55
  "oxlint": {
56
- "version": "1.56.0",
56
+ "version": "1.58.0",
57
57
  "description": "A JavaScript linter written in Rust."
58
58
  },
59
59
  "oxlint-tsgolint": {
60
- "version": "0.17.1",
60
+ "version": "0.19.0",
61
61
  "description": "TypeScript-specific rules for oxlint."
62
62
  },
63
63
  "oxfmt": {
64
- "version": "0.41.0",
64
+ "version": "0.43.0",
65
65
  "description": "High performance JavaScript / TypeScript formatter."
66
66
  },
67
67
  "typescript": {
68
- "version": "5.9.3",
68
+ "version": "6.0.2",
69
69
  "description": "A superset of JavaScript that compiles to clean JavaScript output."
70
70
  },
71
71
  "vitest": {
72
- "version": "4.1.1",
72
+ "version": "4.1.2",
73
73
  "description": "A Vite-native unit test framework."
74
74
  },
75
75
  "commander": {
@@ -125,23 +125,23 @@
125
125
  "description": "TypeScript definitions for React DOM."
126
126
  },
127
127
  "@playwright/test": {
128
- "version": "1.58.2",
128
+ "version": "1.59.1",
129
129
  "description": "End-to-end testing framework."
130
130
  },
131
131
  "@trpc/server": {
132
- "version": "11.15.0",
132
+ "version": "11.16.0",
133
133
  "description": "tRPC server library."
134
134
  },
135
135
  "@trpc/client": {
136
- "version": "11.15.0",
136
+ "version": "11.16.0",
137
137
  "description": "tRPC client library."
138
138
  },
139
139
  "@trpc/react-query": {
140
- "version": "11.15.0",
140
+ "version": "11.16.0",
141
141
  "description": "tRPC integration for React Query."
142
142
  },
143
143
  "@tanstack/react-query": {
144
- "version": "5.95.2",
144
+ "version": "5.96.2",
145
145
  "description": "Powerful asynchronous state management for TS/JS."
146
146
  },
147
147
  "zod": {
@@ -149,7 +149,7 @@
149
149
  "description": "TypeScript-first schema validation with static type inference."
150
150
  },
151
151
  "react-router-dom": {
152
- "version": "7.13.2",
152
+ "version": "7.14.0",
153
153
  "description": "Declarative routing for React web applications."
154
154
  },
155
155
  "release-it": {
@@ -169,7 +169,7 @@
169
169
  "description": "ESLint plugin for finding regexp mistakes and style guide violations."
170
170
  },
171
171
  "vitest-browser-react": {
172
- "version": "2.1.0",
172
+ "version": "2.2.0",
173
173
  "description": "Native React testing utilities for Vitest browser mode."
174
174
  }
175
175
  }
package/dist/index.js CHANGED
@@ -1001,7 +1001,7 @@ var generateProject = async (opts) => {
1001
1001
  description: config.description
1002
1002
  });
1003
1003
  } else {
1004
- log.warn(`Dependency "${dep}" not found in master configuration. Using empty version.`);
1004
+ log.warn(`Dependency "${dep}" not found in central configuration. Using empty version.`);
1005
1005
  debug$1(`Dependency "${dep}" missing in config`);
1006
1006
  }
1007
1007
  }
@@ -1290,13 +1290,13 @@ var generateProject = async (opts) => {
1290
1290
  if (!await pathExists(path.join(projectDir, ".git"))) {
1291
1291
  debug$1("Initializing Git repository");
1292
1292
  try {
1293
- debug$1("Executing: git init");
1294
- await execa("git", ["init"], {
1293
+ debug$1("Executing: git init --initial-branch=main");
1294
+ await execa("git", ["init", "--initial-branch=main"], {
1295
1295
  cwd: projectDir,
1296
1296
  stdio,
1297
1297
  preferLocal: true
1298
1298
  });
1299
- log.success("Initialized Git repository (git init).");
1299
+ log.success("Initialized Git repository (main branch).");
1300
1300
  states.gitInitialized = true;
1301
1301
  } catch (e) {
1302
1302
  debug$1("Failed to initialize Git: %O", e);
@@ -1450,7 +1450,7 @@ async function generateGeneratedMd(projectDir, opts, pm, states, isUpdate, statu
1450
1450
  `- [x] Scaffold project files and directories`,
1451
1451
  `- [x] Configure \`package.json\` with appropriate dependencies`,
1452
1452
  `- [${states.depsInstalled ? "x" : " "}] Install dependencies using \`${pm}\`${states.depsSkipped ? " *(Skipped)*" : ""}`,
1453
- `- [${states.gitInitialized ? "x" : " "}] Initialize Git repository`,
1453
+ `- [${states.gitInitialized ? "x" : " "}] Initialize Git repository (main branch)`,
1454
1454
  `- [${states.githubCreated ? "x" : " "}] Create and push GitHub repository${states.githubSkipped ? " *(Skipped)*" : states.githubError ? " *(Failed)*" : ""}`,
1455
1455
  `- [${states.ciRun ? "x" : " "}] Run initial CI pipeline (lint, build, test)${states.ciSkipped ? " *(Skipped)*" : ""}`,
1456
1456
  "",
@@ -1,6 +1,9 @@
1
1
  import { defineConfig } from "oxlint";
2
2
  import pluginRegexp from "eslint-plugin-regexp";
3
3
 
4
+ /** Filter out core ESLint rules bundled into eslint-plugin-regexp recommended config */
5
+ const regexpPluginRules = Object.fromEntries(Object.entries(pluginRegexp.configs.recommended.rules ?? {}).filter(([key]) => key.startsWith("regexp/")));
6
+
4
7
  const commonIgnore = [
5
8
  "**/.*",
6
9
  "node_modules/**",
@@ -32,7 +35,7 @@ export const linter = defineConfig({
32
35
  correctness: "error",
33
36
  },
34
37
  rules: {
35
- ...pluginRegexp.configs.recommended.rules,
38
+ ...regexpPluginRules,
36
39
  curly: ["error", "all"],
37
40
  "typescript/no-unused-vars": [
38
41
  "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-template-project",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "private": false,
5
5
  "description": "An ultra-modular, type-safe Node.js CLI tool used to scaffold new project templates (CLI, Webpage, Webapp, Fullstack) with best-practice configurations pre-installed.",
6
6
  "keywords": [
@@ -55,10 +55,10 @@
55
55
  "format": "oxfmt --write src scripts *.config.ts",
56
56
  "format:check": "oxfmt --check src scripts *.config.ts",
57
57
  "test": "vitest run --coverage --exclude '**/*.integration.*.test.ts'",
58
- "integration-test:cli": "rimraf ./temp/cli && node ./dist/index.js create --package-manager=pnpm --build --debug --no-progress --template=cli --name=cli --author=\"Jon Doe\" --github-username=\"jon-doe\" --path=./temp/cli",
59
- "integration-test:web-vanilla": "rimraf ./temp/web-vanilla && node ./dist/index.js create --package-manager=pnpm --build --debug --no-progress --template=web-vanilla --name=web-vanilla --author=\"Jon Doe\" --github-username=\"jon-doe\" --path=./temp/web-vanilla",
60
- "integration-test:web-app": "rimraf ./temp/web-app && node ./dist/index.js create --package-manager=pnpm --build --debug --no-progress --template=web-app --name=web-app --author=\"Jon Doe\" --github-username=\"jon-doe\" --path=./temp/web-app",
61
- "integration-test:web-fullstack": "rimraf ./temp/web-fullstack && node ./dist/index.js create --package-manager=pnpm --build --debug --no-progress --template=web-fullstack --name=web-fullstack --author=\"Jon Doe\" --github-username=\"jon-doe\" --path=./temp/web-fullstack",
58
+ "integration-test:cli": "rimraf --max-retries=3 ./temp/cli && node ./dist/index.js create --package-manager=pnpm --build --debug --no-progress --template=cli --name=cli --author=\"Jon Doe\" --github-username=\"jon-doe\" --path=./temp/cli",
59
+ "integration-test:web-vanilla": "rimraf --max-retries=3 ./temp/web-vanilla && node ./dist/index.js create --package-manager=pnpm --build --debug --no-progress --template=web-vanilla --name=web-vanilla --author=\"Jon Doe\" --github-username=\"jon-doe\" --path=./temp/web-vanilla",
60
+ "integration-test:web-app": "rimraf --max-retries=3 ./temp/web-app && node ./dist/index.js create --package-manager=pnpm --build --debug --no-progress --template=web-app --name=web-app --author=\"Jon Doe\" --github-username=\"jon-doe\" --path=./temp/web-app",
61
+ "integration-test:web-fullstack": "rimraf --max-retries=3 ./temp/web-fullstack && node ./dist/index.js create --package-manager=pnpm --build --debug --no-progress --template=web-fullstack --name=web-fullstack --author=\"Jon Doe\" --github-username=\"jon-doe\" --path=./temp/web-fullstack",
62
62
  "integration-test": "pnpm run integration-test:cli && pnpm run integration-test:web-vanilla && pnpm run integration-test:web-app && pnpm run integration-test:web-fullstack",
63
63
  "ci": "pnpm run lint && pnpm run build && pnpm run test",
64
64
  "create-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
@@ -66,7 +66,7 @@
66
66
  "release": "release-it"
67
67
  },
68
68
  "dependencies": {
69
- "@clack/prompts": "1.1.0",
69
+ "@clack/prompts": "1.2.0",
70
70
  "commander": "14.0.3",
71
71
  "debug": "4.4.3",
72
72
  "execa": "9.6.1",
@@ -77,20 +77,20 @@
77
77
  "@commitlint/config-conventional": "20.5.0",
78
78
  "@types/cli-progress": "3.11.6",
79
79
  "@types/debug": "4.1.13",
80
- "@vitest/coverage-v8": "4.1.1",
80
+ "@vitest/coverage-v8": "4.1.2",
81
81
  "conventional-changelog": "7.2.0",
82
- "conventional-changelog-angular": "8.3.0",
82
+ "conventional-changelog-angular": "8.3.1",
83
83
  "eslint-plugin-regexp": "3.1.0",
84
84
  "husky": "9.1.7",
85
- "oxfmt": "0.42.0",
86
- "oxlint": "1.57.0",
87
- "oxlint-tsgolint": "0.17.3",
88
- "pnpm": "10.32.1",
85
+ "oxfmt": "0.43.0",
86
+ "oxlint": "1.58.0",
87
+ "oxlint-tsgolint": "0.19.0",
88
+ "pnpm": "10.33.0",
89
89
  "release-it": "19.2.4",
90
90
  "rimraf": "6.1.3",
91
- "typescript": "5.9.3",
92
- "vite": "8.0.2",
93
- "vitest": "4.1.1"
91
+ "typescript": "6.0.2",
92
+ "vite": "8.0.3",
93
+ "vitest": "4.1.2"
94
94
  },
95
95
  "engines": {
96
96
  "node": ">=22"