create-octane-xplat 0.18.0 → 0.20.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 (77) hide show
  1. package/README.md +2 -144
  2. package/compatibility.json +97 -19
  3. package/compatibility.ts +141 -72
  4. package/dist/compatibility.js +66 -26
  5. package/dist/index.js +127 -64
  6. package/dist/package-manager.js +62 -0
  7. package/dist/scaffold.js +377 -127
  8. package/index.ts +256 -154
  9. package/library-template/AGENTS.md +6 -4
  10. package/library-template/README.md +22 -18
  11. package/library-template/bunfig +4 -0
  12. package/library-template/package.json +115 -18
  13. package/library-template/patches/@nativescript-community__octane@0.2.5.patch +1018 -0
  14. package/library-template/patches/@nativescript-community__sqlite-bridge@4.1.1.patch +30 -0
  15. package/library-template/patches/@nativescript-community__vite-octane@0.2.1.patch +72 -0
  16. package/library-template/patches/@nativescript__core@9.1.3.patch +1280 -0
  17. package/library-template/patches/@nativescript__doctor@2.0.18.patch +13 -0
  18. package/library-template/patches/@nativescript__vite@8.0.20.patch +2019 -0
  19. package/library-template/patches/@octane-xplat__nativescript-mason-core@1.0.0-beta.7.patch +65 -0
  20. package/library-template/patches/@octanejs__tiptap@0.0.62.patch +12 -0
  21. package/library-template/patches/@sveltejs__acorn-typescript@1.0.13.patch +16 -0
  22. package/library-template/patches/css@3.0.0.patch +52 -0
  23. package/library-template/patches/octane@0.16.3.patch +1479 -0
  24. package/library-template/src/Badge.tsx +7 -6
  25. package/library-template/src/Badge.web.tsx +7 -6
  26. package/library-template/src/Welcome.stories.tsx +12 -0
  27. package/library-template/src/normalizeBadgeLabel.ts +1 -1
  28. package/library-template/src/props.ts +11 -11
  29. package/library-template/tests/normalizeBadgeLabel.test.ts +1 -1
  30. package/library-template/tests/packed-consumer.mjs +140 -123
  31. package/library-template/tsconfig.envs.json +1 -0
  32. package/library-template/tsconfig.json +1 -0
  33. package/library-template/tsconfig.types.json +15 -1
  34. package/library-template/tsrx-typegen.json +1 -1
  35. package/library-template/workshop.config.ts +3 -0
  36. package/package-manager.ts +93 -0
  37. package/package.json +70 -58
  38. package/scaffold.ts +1056 -526
  39. package/template/.agents/skills/xplat/SKILL.md +6 -6
  40. package/template/.agents/skills/xplat/references/components.md +1 -1
  41. package/template/.agents/skills/xplat/references/navigation.md +1 -1
  42. package/template/.agents/skills/xplat/references/styling.md +14 -14
  43. package/template/AGENTS.md +10 -10
  44. package/template/bunfig +4 -0
  45. package/template/gitignore +1 -0
  46. package/template/nativescript.config.ts +13 -16
  47. package/template/package.json +119 -10
  48. package/template/patches/@nativescript-community__octane@0.2.5.patch +1018 -0
  49. package/template/patches/@nativescript-community__sqlite-bridge@4.1.1.patch +30 -0
  50. package/template/patches/@nativescript-community__vite-octane@0.2.1.patch +72 -0
  51. package/template/patches/@nativescript__core@9.1.3.patch +1280 -0
  52. package/template/patches/@nativescript__doctor@2.0.18.patch +13 -0
  53. package/template/patches/@nativescript__vite@8.0.20.patch +2019 -0
  54. package/template/patches/@octane-xplat__nativescript-mason-core@1.0.0-beta.7.patch +65 -0
  55. package/template/patches/@octanejs__tiptap@0.0.62.patch +12 -0
  56. package/template/patches/@sveltejs__acorn-typescript@1.0.13.patch +16 -0
  57. package/template/patches/css@3.0.0.patch +52 -0
  58. package/template/patches/octane@0.16.3.patch +1479 -0
  59. package/template/src/App.tsrx +77 -42
  60. package/template/src/Welcome.stories.tsx +22 -0
  61. package/template/src/app.spec.tsrx +169 -163
  62. package/template/src/app.web.test.tsx +18 -13
  63. package/template/src/failure-reporting.spec.ts +3 -3
  64. package/template/src/main.ts +14 -13
  65. package/template/src/main.tsrx +2 -0
  66. package/template/src/main.web.tsrx +5 -5
  67. package/template/src/native-runtime.spec.ts +13 -11
  68. package/template/src/test-setup.web.ts +9 -8
  69. package/template/src/test.ts +6 -6
  70. package/template/tsconfig.json +17 -1
  71. package/template/vite.config.native.mts +1 -2
  72. package/template/vite.config.ts +29 -23
  73. package/template/vitest.config.mts +18 -18
  74. package/template/vitest.web.config.mts +7 -7
  75. package/template/workshop.config.ts +3 -0
  76. package/library-template/pnpm-workspace.yaml +0 -171
  77. package/template/pnpm-workspace.yaml +0 -192
package/package.json CHANGED
@@ -1,59 +1,71 @@
1
1
  {
2
- "name": "create-octane-xplat",
3
- "version": "0.18.0",
4
- "description": "Scaffold Octane Xplat apps and cross-platform libraries",
5
- "keywords": [
6
- "component-library",
7
- "create",
8
- "cross-platform",
9
- "init",
10
- "octane",
11
- "project-generator",
12
- "scaffolding",
13
- "starter-template",
14
- "xplat"
15
- ],
16
- "homepage": "https://github.com/octane-xplat/octane-xplat/tree/main/packages/create",
17
- "license": "MIT",
18
- "repository": {
19
- "type": "git",
20
- "url": "https://github.com/octane-xplat/octane-xplat",
21
- "directory": "packages/create"
22
- },
23
- "bin": {
24
- "create-octane-xplat": "./dist/index.js"
25
- },
26
- "files": [
27
- "index.ts",
28
- "scaffold.ts",
29
- "compatibility.ts",
30
- "compatibility.json",
31
- "dist",
32
- "template",
33
- "library-template"
34
- ],
35
- "type": "module",
36
- "exports": {
37
- "./scaffold": "./dist/scaffold.js",
38
- "./compatibility": {
39
- "types": "./compatibility.ts",
40
- "default": "./dist/compatibility.js"
41
- },
42
- "./compatibility.json": "./compatibility.json"
43
- },
44
- "publishConfig": {
45
- "access": "public"
46
- },
47
- "dependencies": {
48
- "@clack/prompts": "1.8.1",
49
- "yaml": "2.9.1"
50
- },
51
- "devDependencies": {
52
- "@types/node": "24.10.1",
53
- "vite": "8.3.0"
54
- },
55
- "scripts": {
56
- "build": "vite build",
57
- "typecheck": "tsc -p tsconfig.json"
58
- }
59
- }
2
+ "name": "create-octane-xplat",
3
+ "version": "0.20.0",
4
+ "description": "Scaffold Octane Xplat apps and cross-platform libraries",
5
+ "keywords": [
6
+ "component-library",
7
+ "create",
8
+ "cross-platform",
9
+ "init",
10
+ "octane",
11
+ "project-generator",
12
+ "scaffolding",
13
+ "starter-template",
14
+ "xplat"
15
+ ],
16
+ "homepage": "https://github.com/octane-xplat/octane-xplat/tree/main/packages/create",
17
+ "license": "MIT",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/octane-xplat/octane-xplat",
21
+ "directory": "packages/create"
22
+ },
23
+ "bin": {
24
+ "create-octane-xplat": "./dist/index.js"
25
+ },
26
+ "files": [
27
+ "index.ts",
28
+ "scaffold.ts",
29
+ "compatibility.ts",
30
+ "package-manager.ts",
31
+ "compatibility.json",
32
+ "dist",
33
+ "template",
34
+ "library-template"
35
+ ],
36
+ "type": "module",
37
+ "exports": {
38
+ "./scaffold": {
39
+ "types": "./scaffold.ts",
40
+ "bun": "./scaffold.ts",
41
+ "default": "./dist/scaffold.js"
42
+ },
43
+ "./compatibility": {
44
+ "types": "./compatibility.ts",
45
+ "bun": "./compatibility.ts",
46
+ "default": "./dist/compatibility.js"
47
+ },
48
+ "./compatibility.json": "./compatibility.json"
49
+ },
50
+ "publishConfig": {
51
+ "access": "public"
52
+ },
53
+ "scripts": {
54
+ "build": "vite build",
55
+ "prepack": "bun run build",
56
+ "typecheck": "tsc --runExternalCode -p tsconfig.json",
57
+ "test:library": "node test/library-guide.mjs",
58
+ "test": "node --test test/*.test.mjs",
59
+ "test:scaffold": "node --test test/scaffold.test.mjs"
60
+ },
61
+ "dependencies": {
62
+ "@clack/prompts": "1.8.1",
63
+ "yaml": "2.9.1"
64
+ },
65
+ "devDependencies": {
66
+ "@types/node": "26.6.6",
67
+ "typescript": "7.1.0-beta",
68
+ "vite": "8.3.6",
69
+ "@tsrx/content-mapper": "0.1.2"
70
+ }
71
+ }