create-koppajs 1.1.0 → 1.2.0

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 (27) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +119 -122
  3. package/bin/create-koppajs.js +158 -13
  4. package/package.json +2 -1
  5. package/template-overlays/router/ARCHITECTURE.md +86 -0
  6. package/template-overlays/router/CHANGELOG.md +44 -0
  7. package/template-overlays/router/DEVELOPMENT_RULES.md +57 -0
  8. package/template-overlays/router/README.md +243 -0
  9. package/template-overlays/router/ROADMAP.md +34 -0
  10. package/template-overlays/router/TESTING_STRATEGY.md +67 -0
  11. package/template-overlays/router/docs/adr/0001-keep-the-starter-minimal.md +32 -0
  12. package/template-overlays/router/docs/architecture/module-boundaries.md +39 -0
  13. package/template-overlays/router/docs/meta/maintenance.md +38 -0
  14. package/template-overlays/router/docs/specs/README.md +19 -0
  15. package/template-overlays/router/docs/specs/app-bootstrap.md +42 -0
  16. package/template-overlays/router/docs/specs/router-navigation.md +41 -0
  17. package/template-overlays/router/index.html +14 -0
  18. package/template-overlays/router/package.json +74 -0
  19. package/template-overlays/router/pnpm-lock.yaml +3793 -0
  20. package/template-overlays/router/src/app-view.kpa +128 -0
  21. package/template-overlays/router/src/home-page.kpa +100 -0
  22. package/template-overlays/router/src/main.ts +89 -0
  23. package/template-overlays/router/src/not-found-page.kpa +69 -0
  24. package/template-overlays/router/src/router-page.kpa +102 -0
  25. package/template-overlays/router/src/style.css +51 -0
  26. package/template-overlays/router/tests/e2e/app.spec.ts +38 -0
  27. package/template-overlays/router/tests/integration/main-bootstrap.test.ts +150 -0
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "__PROJECT_NAME__",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "description": "KoppaJS router application scaffolded with create-koppajs.",
6
+ "author": "Bastian Bensch",
7
+ "license": "Apache-2.0",
8
+ "keywords": [
9
+ "koppajs",
10
+ "koppa",
11
+ "starter",
12
+ "scaffold",
13
+ "vite",
14
+ "typescript",
15
+ "web-components",
16
+ "router"
17
+ ],
18
+ "packageManager": "pnpm@10.12.1",
19
+ "engines": {
20
+ "node": "^20.19.0 || ^22.13.0 || >=24.0.0",
21
+ "pnpm": ">=10"
22
+ },
23
+ "scripts": {
24
+ "dev": "vite --host",
25
+ "build": "tsc --noEmit && vite build",
26
+ "lint": "eslint .",
27
+ "lint:fix": "eslint . --fix",
28
+ "format": "prettier . --write --ignore-unknown",
29
+ "format:check": "prettier . --check --ignore-unknown",
30
+ "test": "vitest run",
31
+ "test:watch": "vitest",
32
+ "test:run": "vitest run",
33
+ "test:coverage": "vitest run --coverage",
34
+ "test:e2e": "pnpm build && playwright test",
35
+ "test:e2e:headed": "pnpm build && playwright test --headed",
36
+ "test:e2e:ui": "pnpm build && playwright test --ui",
37
+ "check": "pnpm lint && pnpm format:check && pnpm typecheck && pnpm test:run && pnpm build",
38
+ "validate": "pnpm check && playwright test",
39
+ "release:check": "pnpm validate",
40
+ "typecheck": "tsc --noEmit",
41
+ "serve": "vite preview",
42
+ "serve:e2e": "vite preview --host 127.0.0.1 --strictPort --port 4173",
43
+ "prepare": "husky"
44
+ },
45
+ "dependencies": {
46
+ "@koppajs/koppajs-core": "^3.0.2",
47
+ "@koppajs/koppajs-router": "^0.1.0"
48
+ },
49
+ "devDependencies": {
50
+ "@commitlint/cli": "^20.1.0",
51
+ "@commitlint/config-conventional": "^20.0.0",
52
+ "@eslint/js": "^10.0.1",
53
+ "@koppajs/koppajs-vite-plugin": "^1.0.0",
54
+ "@playwright/test": "^1.58.2",
55
+ "@types/node": "^25.4.0",
56
+ "@vitest/coverage-v8": "^4.0.18",
57
+ "eslint": "^10.0.3",
58
+ "globals": "^17.4.0",
59
+ "husky": "^9.1.7",
60
+ "lint-staged": "^16.3.3",
61
+ "prettier": "^3.8.1",
62
+ "typescript": "^5.9.3",
63
+ "typescript-eslint": "^8.57.0",
64
+ "vite": "7.2.6",
65
+ "vitest": "^4.0.18"
66
+ },
67
+ "lint-staged": {
68
+ "*.{js,mjs,cjs,ts,mts,cts}": [
69
+ "eslint --fix",
70
+ "prettier --write"
71
+ ],
72
+ "*.{css,html,json,md,yml,yaml}": "prettier --write"
73
+ }
74
+ }