create-pixi-vn 2.0.11 → 2.0.13

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 (116) hide show
  1. package/package.json +1 -1
  2. package/template-react-vite-muijoy/.vscode/tasks.json +18 -15
  3. package/template-react-vite-muijoy-ink/.vscode/extensions.json +2 -1
  4. package/template-react-vite-muijoy-ink/.vscode/settings.json +6 -1
  5. package/template-react-vite-muijoy-ink/.vscode/tasks.json +18 -15
  6. package/template-react-vite-muijoy-ink/_gitignore +1 -0
  7. package/template-react-vite-muijoy-ink/ink/second_part.ink +571 -0
  8. package/template-react-vite-muijoy-ink/ink/start.ink +214 -0
  9. package/template-react-vite-muijoy-ink/package-lock.json +230 -4
  10. package/template-react-vite-muijoy-ink/package.json +3 -1
  11. package/template-react-vite-muijoy-ink/src/App.tsx +25 -25
  12. package/template-react-vite-muijoy-ink/src/assets/index.ts +2 -4
  13. package/template-react-vite-muijoy-ink/src/assets/ink-manifest.gen.json +4 -1
  14. package/template-react-vite-muijoy-ink/src/content/ink/hashtag-commands.ts +38 -0
  15. package/template-react-vite-muijoy-ink/src/content/ink/text-replaces.ts +19 -0
  16. package/template-react-vite-muijoy-ink/src/lib/hooks/ink-hooks.tsx +12 -0
  17. package/template-react-vite-muijoy-ink/src/lib/i18n.ts +22 -1
  18. package/template-react-vite-muijoy-ink/src/pixi-vn-keys.gen.d.ts +2 -0
  19. package/template-react-vite-muijoy-ink/src/routes/__root.tsx +4 -0
  20. package/template-react-vite-muijoy-ink/vite.config.ts +6 -0
  21. package/template-react-vite-muijoy-ink-tauri/.assetpack.ts +9 -0
  22. package/template-react-vite-muijoy-ink-tauri/.vscode/extensions.json +5 -1
  23. package/template-react-vite-muijoy-ink-tauri/.vscode/launch.json +11 -0
  24. package/template-react-vite-muijoy-ink-tauri/.vscode/settings.json +6 -1
  25. package/template-react-vite-muijoy-ink-tauri/.vscode/tasks.json +61 -11
  26. package/template-react-vite-muijoy-ink-tauri/README.md +3 -3
  27. package/template-react-vite-muijoy-ink-tauri/_github/workflows/desktop.yml +188 -0
  28. package/template-react-vite-muijoy-ink-tauri/_github/workflows/mobile.yml +270 -0
  29. package/template-react-vite-muijoy-ink-tauri/_gitignore +11 -0
  30. package/template-react-vite-muijoy-ink-tauri/ink/second_part.ink +571 -0
  31. package/template-react-vite-muijoy-ink-tauri/ink/start.ink +214 -0
  32. package/template-react-vite-muijoy-ink-tauri/package-lock.json +480 -4
  33. package/template-react-vite-muijoy-ink-tauri/package.json +13 -2
  34. package/template-react-vite-muijoy-ink-tauri/src/App.tsx +25 -25
  35. package/template-react-vite-muijoy-ink-tauri/src/assets/index.ts +2 -4
  36. package/template-react-vite-muijoy-ink-tauri/src/assets/ink-manifest.gen.json +4 -1
  37. package/template-react-vite-muijoy-ink-tauri/src/components/menus/main-menu.tsx +16 -1
  38. package/template-react-vite-muijoy-ink-tauri/src/components/menus/settings/quick-menus.tsx +17 -1
  39. package/template-react-vite-muijoy-ink-tauri/src/components/menus/settings/system-controls.tsx +11 -1
  40. package/template-react-vite-muijoy-ink-tauri/src/content/ink/hashtag-commands.ts +55 -0
  41. package/template-react-vite-muijoy-ink-tauri/src/content/ink/text-replaces.ts +19 -0
  42. package/template-react-vite-muijoy-ink-tauri/src/lib/hooks/ink-hooks.tsx +12 -0
  43. package/template-react-vite-muijoy-ink-tauri/src/lib/hooks/quit-hooks.ts +24 -0
  44. package/template-react-vite-muijoy-ink-tauri/src/lib/i18n.ts +22 -1
  45. package/template-react-vite-muijoy-ink-tauri/src/lib/query/settings-query.ts +7 -1
  46. package/template-react-vite-muijoy-ink-tauri/src/lib/steam.ts +143 -0
  47. package/template-react-vite-muijoy-ink-tauri/src/pixi-vn-keys.gen.d.ts +2 -0
  48. package/template-react-vite-muijoy-ink-tauri/src/routes/__root.tsx +4 -0
  49. package/template-react-vite-muijoy-ink-tauri/src-tauri/Cargo.toml +50 -0
  50. package/template-react-vite-muijoy-ink-tauri/src-tauri/build.rs +46 -0
  51. package/template-react-vite-muijoy-ink-tauri/src-tauri/capabilities/default.json +21 -0
  52. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/128x128.png +0 -0
  53. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/128x128@2x.png +0 -0
  54. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/32x32.png +0 -0
  55. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/Square107x107Logo.png +0 -0
  56. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/Square142x142Logo.png +0 -0
  57. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/Square150x150Logo.png +0 -0
  58. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/Square284x284Logo.png +0 -0
  59. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/Square30x30Logo.png +0 -0
  60. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/Square310x310Logo.png +0 -0
  61. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/Square44x44Logo.png +0 -0
  62. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/Square71x71Logo.png +0 -0
  63. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/Square89x89Logo.png +0 -0
  64. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/StoreLogo.png +0 -0
  65. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/icon.icns +0 -0
  66. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/icon.ico +0 -0
  67. package/template-react-vite-muijoy-ink-tauri/src-tauri/icons/icon.png +0 -0
  68. package/template-react-vite-muijoy-ink-tauri/src-tauri/src/lib.rs +64 -0
  69. package/template-react-vite-muijoy-ink-tauri/src-tauri/src/main.rs +6 -0
  70. package/template-react-vite-muijoy-ink-tauri/src-tauri/src/steam.rs +238 -0
  71. package/template-react-vite-muijoy-ink-tauri/src-tauri/tauri.conf.json +50 -0
  72. package/template-react-vite-muijoy-ink-tauri/vite.config.ts +30 -0
  73. package/template-react-vite-muijoy-tauri/.assetpack.ts +9 -0
  74. package/template-react-vite-muijoy-tauri/.vscode/extensions.json +4 -1
  75. package/template-react-vite-muijoy-tauri/.vscode/launch.json +11 -0
  76. package/template-react-vite-muijoy-tauri/.vscode/tasks.json +61 -11
  77. package/template-react-vite-muijoy-tauri/README.md +3 -3
  78. package/template-react-vite-muijoy-tauri/_github/workflows/desktop.yml +188 -0
  79. package/template-react-vite-muijoy-tauri/_github/workflows/mobile.yml +270 -0
  80. package/template-react-vite-muijoy-tauri/_gitignore +10 -0
  81. package/template-react-vite-muijoy-tauri/package-lock.json +250 -0
  82. package/template-react-vite-muijoy-tauri/package.json +10 -1
  83. package/template-react-vite-muijoy-tauri/src/components/menus/main-menu.tsx +16 -1
  84. package/template-react-vite-muijoy-tauri/src/components/menus/settings/quick-menus.tsx +17 -1
  85. package/template-react-vite-muijoy-tauri/src/components/menus/settings/system-controls.tsx +11 -1
  86. package/template-react-vite-muijoy-tauri/src/lib/hooks/quit-hooks.ts +24 -0
  87. package/template-react-vite-muijoy-tauri/src/lib/query/settings-query.ts +7 -1
  88. package/template-react-vite-muijoy-tauri/src/lib/steam.ts +143 -0
  89. package/template-react-vite-muijoy-tauri/src-tauri/Cargo.toml +50 -0
  90. package/template-react-vite-muijoy-tauri/src-tauri/build.rs +46 -0
  91. package/template-react-vite-muijoy-tauri/src-tauri/capabilities/default.json +21 -0
  92. package/template-react-vite-muijoy-tauri/src-tauri/icons/128x128.png +0 -0
  93. package/template-react-vite-muijoy-tauri/src-tauri/icons/128x128@2x.png +0 -0
  94. package/template-react-vite-muijoy-tauri/src-tauri/icons/32x32.png +0 -0
  95. package/template-react-vite-muijoy-tauri/src-tauri/icons/Square107x107Logo.png +0 -0
  96. package/template-react-vite-muijoy-tauri/src-tauri/icons/Square142x142Logo.png +0 -0
  97. package/template-react-vite-muijoy-tauri/src-tauri/icons/Square150x150Logo.png +0 -0
  98. package/template-react-vite-muijoy-tauri/src-tauri/icons/Square284x284Logo.png +0 -0
  99. package/template-react-vite-muijoy-tauri/src-tauri/icons/Square30x30Logo.png +0 -0
  100. package/template-react-vite-muijoy-tauri/src-tauri/icons/Square310x310Logo.png +0 -0
  101. package/template-react-vite-muijoy-tauri/src-tauri/icons/Square44x44Logo.png +0 -0
  102. package/template-react-vite-muijoy-tauri/src-tauri/icons/Square71x71Logo.png +0 -0
  103. package/template-react-vite-muijoy-tauri/src-tauri/icons/Square89x89Logo.png +0 -0
  104. package/template-react-vite-muijoy-tauri/src-tauri/icons/StoreLogo.png +0 -0
  105. package/template-react-vite-muijoy-tauri/src-tauri/icons/icon.icns +0 -0
  106. package/template-react-vite-muijoy-tauri/src-tauri/icons/icon.ico +0 -0
  107. package/template-react-vite-muijoy-tauri/src-tauri/icons/icon.png +0 -0
  108. package/template-react-vite-muijoy-tauri/src-tauri/src/lib.rs +64 -0
  109. package/template-react-vite-muijoy-tauri/src-tauri/src/main.rs +6 -0
  110. package/template-react-vite-muijoy-tauri/src-tauri/src/steam.rs +238 -0
  111. package/template-react-vite-muijoy-tauri/src-tauri/tauri.conf.json +50 -0
  112. package/template-react-vite-muijoy-tauri/vite.config.ts +24 -0
  113. package/template-react-vite-muijoy-ink/src/content/labels/second.label.ts +0 -1207
  114. package/template-react-vite-muijoy-ink/src/content/labels/start.label.ts +0 -566
  115. package/template-react-vite-muijoy-ink-tauri/src/content/labels/second.label.ts +0 -1207
  116. package/template-react-vite-muijoy-ink-tauri/src/content/labels/start.label.ts +0 -566
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-pixi-vn",
3
3
  "description": "Create a new Pixi’VN project",
4
- "version": "2.0.11",
4
+ "version": "2.0.13",
5
5
  "type": "module",
6
6
  "license": "GPL-3.0",
7
7
  "author": "DRincs-Productions",
@@ -5,6 +5,9 @@
5
5
  "label": "Install Dependencies",
6
6
  "type": "shell",
7
7
  "command": "[ -d node_modules ] || npm i",
8
+ "windows": {
9
+ "command": "if (!(Test-Path node_modules)) { npm i }"
10
+ },
8
11
  "runOptions": {
9
12
  "runOn": "folderOpen"
10
13
  },
@@ -18,8 +21,11 @@
18
21
  {
19
22
  "label": "Start Vite Dev Server",
20
23
  "type": "shell",
21
- "command": "echo $$ > /tmp/vite-watcher.pid; kill -- -$(cat /tmp/vite-dev.pid 2>/dev/null) 2>/dev/null; rm -f /tmp/vite-dev.log /tmp/vite-dev.pid; FORCE_COLOR=1 setsid npm run dev >/tmp/vite-dev.log 2>&1 & echo $! > /tmp/vite-dev.pid; tail -f /tmp/vite-dev.log",
24
+ "command": "npm run dev",
22
25
  "isBackground": true,
26
+ "runOptions": {
27
+ "runOn": "folderOpen"
28
+ },
23
29
  "dependsOn": ["Install Dependencies"],
24
30
  "dependsOrder": "sequence",
25
31
  "problemMatcher": {
@@ -41,9 +47,12 @@
41
47
  }
42
48
  },
43
49
  {
44
- "label": "Kill Vite Watcher",
50
+ "label": "Stop Vite Dev Server",
45
51
  "type": "shell",
46
- "command": "kill $(cat /tmp/vite-watcher.pid 2>/dev/null) 2>/dev/null; rm -f /tmp/vite-watcher.pid; exit 0",
52
+ "command": "kill $(lsof -ti:5173 -sTCP:LISTEN 2>/dev/null) 2>/dev/null; sleep 0.5; true",
53
+ "windows": {
54
+ "command": "$p = Get-NetTCPConnection -LocalPort 5173 -ErrorAction SilentlyContinue | Select-Object -ExpandProperty OwningProcess -Unique; $p | ForEach-Object { Stop-Process -Id $_ -Force -ErrorAction SilentlyContinue }; Start-Sleep -Milliseconds 500"
55
+ },
47
56
  "presentation": {
48
57
  "reveal": "never",
49
58
  "panel": "dedicated",
@@ -52,25 +61,16 @@
52
61
  },
53
62
  {
54
63
  "label": "Restart Vite Dev Server",
55
- "dependsOn": ["Kill Vite Watcher", "Start Vite Dev Server"],
64
+ "dependsOn": ["Stop Vite Dev Server", "Start Vite Dev Server"],
56
65
  "dependsOrder": "sequence"
57
66
  },
58
- {
59
- "label": "Stop Vite Dev Server",
60
- "type": "shell",
61
- "command": "kill -- -$(cat /tmp/vite-dev.pid 2>/dev/null) 2>/dev/null; kill $(cat /tmp/vite-watcher.pid 2>/dev/null) 2>/dev/null; rm -f /tmp/vite-dev.pid /tmp/vite-dev.log /tmp/vite-watcher.pid; exit 0",
62
- "presentation": {
63
- "reveal": "never",
64
- "panel": "dedicated",
65
- "close": true
66
- }
67
- },
68
67
  {
69
68
  "label": "Start Vite Preview Server",
70
69
  "type": "shell",
71
70
  "command": "npm run preview",
72
71
  "isBackground": true,
73
72
  "dependsOn": ["Install Dependencies"],
73
+ "dependsOrder": "sequence",
74
74
  "problemMatcher": {
75
75
  "owner": "vite",
76
76
  "pattern": {
@@ -92,7 +92,10 @@
92
92
  {
93
93
  "label": "Stop Vite Preview Server",
94
94
  "type": "shell",
95
- "command": "pkill -f 'vite' 2>/dev/null; pkill -f 'npm run preview' 2>/dev/null; exit 0",
95
+ "command": "kill $(lsof -ti:4173 -sTCP:LISTEN 2>/dev/null) 2>/dev/null; true",
96
+ "windows": {
97
+ "command": "$p = Get-NetTCPConnection -LocalPort 4173 -ErrorAction SilentlyContinue | Select-Object -ExpandProperty OwningProcess -Unique; $p | ForEach-Object { Stop-Process -Id $_ -Force -ErrorAction SilentlyContinue }"
98
+ },
96
99
  "presentation": {
97
100
  "reveal": "never",
98
101
  "panel": "dedicated",
@@ -3,6 +3,7 @@
3
3
  "ms-vscode.vscode-typescript-next",
4
4
  "anseki.vscode-color",
5
5
  "pflannery.vscode-versionlens",
6
- "biomejs.biome"
6
+ "biomejs.biome",
7
+ "drincs-productions.pixi-vn-ink-vscode"
7
8
  ]
8
9
  }
@@ -55,5 +55,10 @@
55
55
  // does fetch when he does Pull
56
56
  "git.fetchOnPull": true,
57
57
  // move file
58
- "js/ts.updateImportsOnFileMove.enabled": "always"
58
+ "js/ts.updateImportsOnFileMove.enabled": "always",
59
+ // ink
60
+ "ink.mainFile": "start.ink",
61
+ "ink.rootFolder": "ink",
62
+ "ink.markup": "Markdown",
63
+ "ink.engine": "pixi-vn"
59
64
  }
@@ -5,6 +5,9 @@
5
5
  "label": "Install Dependencies",
6
6
  "type": "shell",
7
7
  "command": "[ -d node_modules ] || npm i",
8
+ "windows": {
9
+ "command": "if (!(Test-Path node_modules)) { npm i }"
10
+ },
8
11
  "runOptions": {
9
12
  "runOn": "folderOpen"
10
13
  },
@@ -18,8 +21,11 @@
18
21
  {
19
22
  "label": "Start Vite Dev Server",
20
23
  "type": "shell",
21
- "command": "echo $$ > /tmp/vite-watcher.pid; kill -- -$(cat /tmp/vite-dev.pid 2>/dev/null) 2>/dev/null; rm -f /tmp/vite-dev.log /tmp/vite-dev.pid; FORCE_COLOR=1 setsid npm run dev >/tmp/vite-dev.log 2>&1 & echo $! > /tmp/vite-dev.pid; tail -f /tmp/vite-dev.log",
24
+ "command": "npm run dev",
22
25
  "isBackground": true,
26
+ "runOptions": {
27
+ "runOn": "folderOpen"
28
+ },
23
29
  "dependsOn": ["Install Dependencies"],
24
30
  "dependsOrder": "sequence",
25
31
  "problemMatcher": {
@@ -41,9 +47,12 @@
41
47
  }
42
48
  },
43
49
  {
44
- "label": "Kill Vite Watcher",
50
+ "label": "Stop Vite Dev Server",
45
51
  "type": "shell",
46
- "command": "kill $(cat /tmp/vite-watcher.pid 2>/dev/null) 2>/dev/null; rm -f /tmp/vite-watcher.pid; exit 0",
52
+ "command": "kill $(lsof -ti:5173 -sTCP:LISTEN 2>/dev/null) 2>/dev/null; sleep 0.5; true",
53
+ "windows": {
54
+ "command": "$p = Get-NetTCPConnection -LocalPort 5173 -ErrorAction SilentlyContinue | Select-Object -ExpandProperty OwningProcess -Unique; $p | ForEach-Object { Stop-Process -Id $_ -Force -ErrorAction SilentlyContinue }; Start-Sleep -Milliseconds 500"
55
+ },
47
56
  "presentation": {
48
57
  "reveal": "never",
49
58
  "panel": "dedicated",
@@ -52,25 +61,16 @@
52
61
  },
53
62
  {
54
63
  "label": "Restart Vite Dev Server",
55
- "dependsOn": ["Kill Vite Watcher", "Start Vite Dev Server"],
64
+ "dependsOn": ["Stop Vite Dev Server", "Start Vite Dev Server"],
56
65
  "dependsOrder": "sequence"
57
66
  },
58
- {
59
- "label": "Stop Vite Dev Server",
60
- "type": "shell",
61
- "command": "kill -- -$(cat /tmp/vite-dev.pid 2>/dev/null) 2>/dev/null; kill $(cat /tmp/vite-watcher.pid 2>/dev/null) 2>/dev/null; rm -f /tmp/vite-dev.pid /tmp/vite-dev.log /tmp/vite-watcher.pid; exit 0",
62
- "presentation": {
63
- "reveal": "never",
64
- "panel": "dedicated",
65
- "close": true
66
- }
67
- },
68
67
  {
69
68
  "label": "Start Vite Preview Server",
70
69
  "type": "shell",
71
70
  "command": "npm run preview",
72
71
  "isBackground": true,
73
72
  "dependsOn": ["Install Dependencies"],
73
+ "dependsOrder": "sequence",
74
74
  "problemMatcher": {
75
75
  "owner": "vite",
76
76
  "pattern": {
@@ -92,7 +92,10 @@
92
92
  {
93
93
  "label": "Stop Vite Preview Server",
94
94
  "type": "shell",
95
- "command": "pkill -f 'vite' 2>/dev/null; pkill -f 'npm run preview' 2>/dev/null; exit 0",
95
+ "command": "kill $(lsof -ti:4173 -sTCP:LISTEN 2>/dev/null) 2>/dev/null; true",
96
+ "windows": {
97
+ "command": "$p = Get-NetTCPConnection -LocalPort 4173 -ErrorAction SilentlyContinue | Select-Object -ExpandProperty OwningProcess -Unique; $p | ForEach-Object { Stop-Process -Id $_ -Force -ErrorAction SilentlyContinue }"
98
+ },
96
99
  "presentation": {
97
100
  "reveal": "never",
98
101
  "panel": "dedicated",
@@ -13,6 +13,7 @@ dist-ssr
13
13
  *.local
14
14
  .assetpack
15
15
  public/assets
16
+ public/ink-json
16
17
 
17
18
  # Editor directories and files
18
19
  .idea