create-template-project 1.5.24 → 1.6.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/README.md +39 -5
- package/dist/config/dependencies.json +24 -4
- package/dist/index.js +733 -142
- package/dist/templates/base/files/README.md +1 -1
- package/dist/templates/base/files/_oxc.config.ts +17 -35
- package/dist/templates/web-widget/files/.github/workflows/pages.yml +36 -0
- package/dist/templates/web-widget/files/index.html +21 -0
- package/dist/templates/web-widget/files/package.json +53 -0
- package/dist/templates/web-widget/files/playwright.config.ts +29 -0
- package/dist/templates/web-widget/files/scripts/screenshot.mjs +35 -0
- package/dist/templates/web-widget/files/src/demo/app.ts +22 -0
- package/dist/templates/web-widget/files/src/demo/demo-shell.css +50 -0
- package/dist/templates/web-widget/files/src/lib/index.ts +2 -0
- package/dist/templates/web-widget/files/src/lib/react.tsx +54 -0
- package/dist/templates/web-widget/files/src/lib/test-setup.ts +7 -0
- package/dist/templates/web-widget/files/src/lib/widget.test.ts +33 -0
- package/dist/templates/web-widget/files/src/lib/widget.ts +83 -0
- package/dist/templates/web-widget/files/src/styles/index.css +42 -0
- package/dist/templates/web-widget/files/stylelint.base.config.js +16 -0
- package/dist/templates/web-widget/files/stylelint.config.js +15 -0
- package/dist/templates/web-widget/files/tests/e2e/widget.e2e-test.ts +16 -0
- package/dist/templates/web-widget/files/tsdown.config.ts +20 -0
- package/dist/templates/web-widget/files/typedoc.json +12 -0
- package/dist/templates/web-widget/files/vite.config.ts +37 -0
- package/package.json +9 -7
- /package/dist/templates/base/files/.github/workflows/{node.js.yml → ci.yml} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
|
|
3
|
+
import {playwright} from '@vitest/browser-playwright';
|
|
4
|
+
import {defineConfig} from 'vitest/config';
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
server: {port: 5173, open: true},
|
|
8
|
+
build: {target: 'es2022', sourcemap: true, outDir: 'dist-demo', emptyOutDir: true},
|
|
9
|
+
resolve: {
|
|
10
|
+
alias: {
|
|
11
|
+
'{{projectName}}': path.resolve('./src/lib'),
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
test: {
|
|
15
|
+
include: ['src/lib/**/*.test.{ts,tsx}'],
|
|
16
|
+
setupFiles: ['./src/lib/test-setup.ts'],
|
|
17
|
+
coverage: {
|
|
18
|
+
provider: 'v8',
|
|
19
|
+
reporter: ['text', 'json', 'html', 'lcov'],
|
|
20
|
+
},
|
|
21
|
+
browser: {
|
|
22
|
+
enabled: true,
|
|
23
|
+
headless: true,
|
|
24
|
+
screenshotDirectory: path.resolve('./temp/vitest/__screenshots__'),
|
|
25
|
+
instances: [
|
|
26
|
+
{
|
|
27
|
+
browser: 'chromium',
|
|
28
|
+
provider: playwright({
|
|
29
|
+
launchOptions: {
|
|
30
|
+
args: ['--disable-web-security'],
|
|
31
|
+
},
|
|
32
|
+
}),
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-template-project",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
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.",
|
|
5
|
+
"description": "An ultra-modular, type-safe Node.js CLI tool used to scaffold new project templates (CLI, Webpage, Web Widget, Webapp, Fullstack) with best-practice configurations pre-installed.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"boilerplate",
|
|
8
8
|
"cli",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"trpc",
|
|
21
21
|
"typescript",
|
|
22
22
|
"vite",
|
|
23
|
-
"vulnerability"
|
|
23
|
+
"vulnerability",
|
|
24
|
+
"widget"
|
|
24
25
|
],
|
|
25
26
|
"homepage": "https://github.com/doberkofler/create-template-project#readme",
|
|
26
27
|
"bugs": {
|
|
@@ -63,14 +64,14 @@
|
|
|
63
64
|
"@commitlint/config-conventional": "21.2.0",
|
|
64
65
|
"@types/cli-progress": "3.11.6",
|
|
65
66
|
"@types/debug": "4.1.13",
|
|
66
|
-
"@types/node": "26.1.
|
|
67
|
+
"@types/node": "26.1.2",
|
|
67
68
|
"@vitest/coverage-v8": "4.1.10",
|
|
68
69
|
"conventional-changelog": "8.1.0",
|
|
69
70
|
"conventional-changelog-angular": "9.2.1",
|
|
70
71
|
"eslint-plugin-regexp": "3.1.1",
|
|
71
72
|
"husky": "9.1.7",
|
|
72
|
-
"oxfmt": "0.
|
|
73
|
-
"oxlint": "1.
|
|
73
|
+
"oxfmt": "0.61.0",
|
|
74
|
+
"oxlint": "1.76.0",
|
|
74
75
|
"oxlint-tsgolint": "7.0.2001",
|
|
75
76
|
"release-it": "21.0.0",
|
|
76
77
|
"rimraf": "6.1.3",
|
|
@@ -94,9 +95,10 @@
|
|
|
94
95
|
"run-interactive": "node ./dist/index.js interactive",
|
|
95
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",
|
|
96
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-widget": "rimraf --max-retries=3 ./temp/web-widget && node ./dist/index.js create --package-manager=pnpm --build --debug --no-progress --template=web-widget --name=web-widget --author=\"Jon Doe\" --github-username=\"jon-doe\" --path=./temp/web-widget",
|
|
97
99
|
"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",
|
|
98
100
|
"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",
|
|
99
|
-
"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
|
+
"integration-test": "pnpm run integration-test:cli && pnpm run integration-test:web-vanilla && pnpm run integration-test:web-widget && pnpm run integration-test:web-app && pnpm run integration-test:web-fullstack",
|
|
100
102
|
"create-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
101
103
|
"release": "release-it"
|
|
102
104
|
}
|
|
File without changes
|