create-pixi-vn 2.0.11 → 2.0.12

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/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.12",
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",
@@ -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",
@@ -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",
@@ -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",