create-template-project 1.2.3 → 1.2.5

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.
@@ -25,11 +25,11 @@
25
25
  "description": "A tiny JavaScript debugging utility modelled after Node.js core debugging technique."
26
26
  },
27
27
  "@commitlint/cli": {
28
- "version": "20.5.0",
28
+ "version": "20.5.3",
29
29
  "description": "Lint commit messages to ensure they follow conventional commits."
30
30
  },
31
31
  "@commitlint/config-conventional": {
32
- "version": "20.5.0",
32
+ "version": "20.5.3",
33
33
  "description": "Shareable commitlint config enforcing conventional commits."
34
34
  },
35
35
  "@types/debug": {
package/dist/index.js CHANGED
File without changes
@@ -82,6 +82,7 @@ export const linter = defineConfig({
82
82
  'import/no-named-export': 'off',
83
83
  'import/no-namespace': 'off', // TODO: consider enabling
84
84
  'import/no-nodejs-modules': 'off',
85
+ 'import/no-unassigned-import': ['error', {'allow': ['**/*.css']}],
85
86
  'import/prefer-default-export': 'off',
86
87
  'import/no-default-export': 'off',
87
88
  'jest/consistent-test-it': 'off',
@@ -116,6 +117,7 @@ export const linter = defineConfig({
116
117
  'jest/prefer-called-with': 'off',
117
118
  'jest/prefer-comparison-matcher': 'off',
118
119
  'jest/prefer-each': 'off',
120
+ 'jest/prefer-ending-with-an-expect': 'off',
119
121
  'jest/prefer-equality-matcher': 'off',
120
122
  'jest/prefer-expect-assertions': 'off',
121
123
  'jest/prefer-expect-resolves': 'off',
@@ -153,9 +155,11 @@ export const linter = defineConfig({
153
155
  'unicorn/no-process-exit': 'off', // TODO: consider enabling
154
156
  'unicorn/no-typeof-undefined': 'off', // TODO: consider enabling
155
157
  'unicorn/prefer-module': 'off', // TODO: consider enabling
156
- 'react/jsx-filename-extension': 'off',
158
+ 'react/jsx-filename-extension': ['error', {extensions: ['.tsx']}],
159
+ 'react/jsx-max-depth': ['error', {max: 5}],
157
160
  'react/react-in-jsx-scope': 'off',
158
161
  'vitest/max-expects': 'off',
162
+ 'vitest/no-conditional-in-test': 'off',
159
163
  'vitest/no-hooks': 'off',
160
164
  'vitest/no-importing-vitest-globals': 'off',
161
165
  'vitest/prefer-describe-function-title': 'off',
package/package.json CHANGED
@@ -1,105 +1,104 @@
1
1
  {
2
- "name": "create-template-project",
3
- "version": "1.2.3",
4
- "private": false,
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
- "keywords": [
7
- "boilerplate",
8
- "cli",
9
- "dependencies",
10
- "express",
11
- "generator",
12
- "maintenance",
13
- "monorepo",
14
- "npm",
15
- "react",
16
- "scaffold",
17
- "scaffolding",
18
- "security",
19
- "template",
20
- "trpc",
21
- "typescript",
22
- "vite",
23
- "vulnerability"
24
- ],
25
- "homepage": "https://github.com/doberkofler/create-template-project#readme",
26
- "bugs": {
27
- "url": "https://github.com/doberkofler/create-template-project/issues"
28
- },
29
- "license": "MIT",
30
- "author": "Dieter Oberkofler",
31
- "repository": {
32
- "type": "git",
33
- "url": "https://github.com/doberkofler/create-template-project.git"
34
- },
35
- "bin": {
36
- "create-template-project": "./dist/index.js"
37
- },
38
- "files": [
39
- "dist"
40
- ],
41
- "type": "module",
42
- "main": "./dist/index.js",
43
- "module": "./dist/index.js",
44
- "types": "./dist/index.d.ts",
45
- "imports": {
46
- "#shared/*.js": "./src/shared/*.ts",
47
- "#templates/*.js": "./src/templates/*.ts",
48
- "#templating/*.js": "./src/utils/templating/*.ts"
49
- },
50
- "exports": {
51
- ".": "./dist/index.js",
52
- "./package.json": "./package.json"
53
- },
54
- "scripts": {
55
- "typecheck": "tsc --noEmit",
56
- "lint": "oxlint --disable-nested-config",
57
- "format": "oxfmt --write",
58
- "format:check": "oxfmt --check",
59
- "ci": "pnpm run typecheck && pnpm run lint && pnpm run format:check && pnpm run build && pnpm run test",
60
- "build": "vite build && node scripts/copy-templates.ts",
61
- "dependencies-check": "node scripts/dependencies.ts",
62
- "dependencies-update": "node scripts/dependencies.ts --update",
63
- "test": "vitest run --coverage --exclude '**/*.integration.*.test.ts'",
64
- "run-interactive": "node ./dist/index.js interactive",
65
- "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",
66
- "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",
67
- "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",
68
- "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",
69
- "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",
70
- "create-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
71
- "prepare": "husky",
72
- "release": "release-it"
73
- },
74
- "dependencies": {
75
- "@clack/prompts": "1.2.0",
76
- "commander": "14.0.3",
77
- "debug": "4.4.3",
78
- "execa": "9.6.1",
79
- "zod": "4.3.6"
80
- },
81
- "devDependencies": {
82
- "@commitlint/cli": "20.5.2",
83
- "@commitlint/config-conventional": "20.5.0",
84
- "@types/cli-progress": "3.11.6",
85
- "@types/debug": "4.1.13",
86
- "@types/node": "25.6.0",
87
- "@vitest/coverage-v8": "4.1.5",
88
- "conventional-changelog": "7.2.0",
89
- "conventional-changelog-angular": "8.3.1",
90
- "eslint-plugin-regexp": "3.1.0",
91
- "husky": "9.1.7",
92
- "oxfmt": "0.47.0",
93
- "oxlint": "1.62.0",
94
- "oxlint-tsgolint": "0.22.1",
95
- "pnpm": "10.33.2",
96
- "release-it": "20.0.1",
97
- "rimraf": "6.1.3",
98
- "typescript": "6.0.3",
99
- "vite": "8.0.10",
100
- "vitest": "4.1.5"
101
- },
102
- "engines": {
103
- "node": ">=22"
104
- }
105
- }
2
+ "name": "create-template-project",
3
+ "version": "1.2.5",
4
+ "private": false,
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
+ "keywords": [
7
+ "boilerplate",
8
+ "cli",
9
+ "dependencies",
10
+ "express",
11
+ "generator",
12
+ "maintenance",
13
+ "monorepo",
14
+ "npm",
15
+ "react",
16
+ "scaffold",
17
+ "scaffolding",
18
+ "security",
19
+ "template",
20
+ "trpc",
21
+ "typescript",
22
+ "vite",
23
+ "vulnerability"
24
+ ],
25
+ "homepage": "https://github.com/doberkofler/create-template-project#readme",
26
+ "bugs": {
27
+ "url": "https://github.com/doberkofler/create-template-project/issues"
28
+ },
29
+ "license": "MIT",
30
+ "author": "Dieter Oberkofler",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "https://github.com/doberkofler/create-template-project.git"
34
+ },
35
+ "bin": {
36
+ "create-template-project": "./dist/index.js"
37
+ },
38
+ "files": [
39
+ "dist"
40
+ ],
41
+ "type": "module",
42
+ "main": "./dist/index.js",
43
+ "module": "./dist/index.js",
44
+ "types": "./dist/index.d.ts",
45
+ "imports": {
46
+ "#shared/*.js": "./src/shared/*.ts",
47
+ "#templates/*.js": "./src/templates/*.ts",
48
+ "#templating/*.js": "./src/utils/templating/*.ts"
49
+ },
50
+ "exports": {
51
+ ".": "./dist/index.js",
52
+ "./package.json": "./package.json"
53
+ },
54
+ "dependencies": {
55
+ "@clack/prompts": "1.3.0",
56
+ "commander": "14.0.3",
57
+ "debug": "4.4.3",
58
+ "execa": "9.6.1",
59
+ "zod": "4.4.1"
60
+ },
61
+ "devDependencies": {
62
+ "@commitlint/cli": "20.5.3",
63
+ "@commitlint/config-conventional": "20.5.3",
64
+ "@types/cli-progress": "3.11.6",
65
+ "@types/debug": "4.1.13",
66
+ "@types/node": "25.6.0",
67
+ "@vitest/coverage-v8": "4.1.5",
68
+ "conventional-changelog": "7.2.0",
69
+ "conventional-changelog-angular": "8.3.1",
70
+ "eslint-plugin-regexp": "3.1.0",
71
+ "husky": "9.1.7",
72
+ "oxfmt": "0.47.0",
73
+ "oxlint": "1.62.0",
74
+ "oxlint-tsgolint": "0.22.1",
75
+ "pnpm": "10.33.2",
76
+ "release-it": "20.0.1",
77
+ "rimraf": "6.1.3",
78
+ "typescript": "6.0.3",
79
+ "vite": "8.0.10",
80
+ "vitest": "4.1.5"
81
+ },
82
+ "engines": {
83
+ "node": ">=22"
84
+ },
85
+ "scripts": {
86
+ "typecheck": "tsc --noEmit",
87
+ "lint": "oxlint --disable-nested-config",
88
+ "format": "oxfmt --write",
89
+ "format:check": "oxfmt --check",
90
+ "ci": "pnpm run typecheck && pnpm run lint && pnpm run format:check && pnpm run build && pnpm run test",
91
+ "build": "vite build && node scripts/copy-templates.ts",
92
+ "dependencies-check": "node scripts/dependencies.ts",
93
+ "dependencies-update": "node scripts/dependencies.ts --update",
94
+ "test": "vitest run --coverage --exclude '**/*.integration.*.test.ts'",
95
+ "run-interactive": "node ./dist/index.js interactive",
96
+ "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",
97
+ "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",
98
+ "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",
99
+ "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",
100
+ "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",
101
+ "create-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
102
+ "release": "release-it"
103
+ }
104
+ }