@lunnos/hyt 1.0.1 ā 1.1.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/CHANGELOG.md +22 -13
- package/README.md +153 -135
- package/dist/commands/build.js +5 -5
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +74 -54
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +146 -35
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/references.d.ts +3 -0
- package/dist/commands/references.d.ts.map +1 -0
- package/dist/commands/references.js +130 -0
- package/dist/commands/references.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/download.d.ts.map +1 -1
- package/dist/utils/download.js +5 -1
- package/dist/utils/download.js.map +1 -1
- package/dist/utils/gradle.d.ts +1 -1
- package/dist/utils/gradle.d.ts.map +1 -1
- package/dist/utils/gradle.js +3 -2
- package/dist/utils/gradle.js.map +1 -1
- package/package.json +46 -46
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
## [1.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
## [1.1.1](https://github.com/LunnosMp4/hyt/compare/v1.1.0...v1.1.1) (2026-01-15)
|
|
2
|
+
|
|
3
|
+
# [1.1.0](https://github.com/LunnosMp4/hyt/compare/v1.0.1...v1.1.0) (2026-01-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* remove auto generate cfr, customizable debounce, remove auto-restart, reduce logs, update docs ([66c762a](https://github.com/LunnosMp4/hyt/commit/66c762a5dc586e495861b81038fa81f9567d18a2))
|
|
9
|
+
|
|
10
|
+
## [1.0.1](https://github.com/LunnosMp4/hyt/compare/v1.0.0...v1.0.1) (2026-01-14)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* add credits section to README and improve setup command output ([7619995](https://github.com/LunnosMp4/hyt/commit/7619995caf4b608dcc41983137bf768bec3a6100))
|
|
16
|
+
|
|
17
|
+
# 1.0.0 (2026-01-14)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* initial release with CI/CD, setup/init/dev/build commands ([ad370a3](https://github.com/LunnosMp4/hyt/commit/ad370a3f53976e29c41ec8eab5633da1dafaa885))
|
package/README.md
CHANGED
|
@@ -1,135 +1,153 @@
|
|
|
1
|
-
# HYT - Hytale Development Tool
|
|
2
|
-
|
|
3
|
-
A command-line interface for Hytale plugin development that automates project setup, building, and hot-reload development workflows.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
**Quick Setup**
|
|
8
|
-
- Automatic Java 25 detection and installation
|
|
9
|
-
- Hytale installation discovery
|
|
10
|
-
- Configuration management
|
|
11
|
-
|
|
12
|
-
**Project Initialization**
|
|
13
|
-
- Scaffolds new plugin projects from template
|
|
14
|
-
- Decompiles Hytale server JAR for reference sources (CFR)
|
|
15
|
-
- Configures Gradle build system
|
|
16
|
-
- Git repository initialization
|
|
17
|
-
|
|
18
|
-
**Build System**
|
|
19
|
-
- Gradle wrapper integration
|
|
20
|
-
- One-command builds
|
|
21
|
-
- Automatic JAR output to mods folder
|
|
22
|
-
|
|
23
|
-
**Development Mode**
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
- Live feedback with progress indicators
|
|
28
|
-
|
|
29
|
-
## Requirements
|
|
30
|
-
|
|
31
|
-
- Node.js 18 or higher
|
|
32
|
-
- Java 25 (auto-installed if missing)
|
|
33
|
-
- Hytale installation
|
|
34
|
-
|
|
35
|
-
## Installation
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
npm install -g @lunnos/hyt
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
After installation, the `hyt` command will be available globally.
|
|
42
|
-
|
|
43
|
-
## Usage
|
|
44
|
-
|
|
45
|
-
### Initial Setup
|
|
46
|
-
|
|
47
|
-
Configure Java and Hytale paths:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
hyt setup
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Options:
|
|
54
|
-
- `--java-path <path>` - Specify Java executable manually
|
|
55
|
-
- `--hytale-path <path>` - Specify Hytale installation manually
|
|
56
|
-
|
|
57
|
-
### Create New Plugin
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
hyt init my-plugin
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
This creates a complete project structure with:
|
|
64
|
-
- Plugin source template
|
|
65
|
-
- Hytale server files
|
|
66
|
-
- Decompiled reference sources
|
|
67
|
-
- Gradle build configuration
|
|
68
|
-
|
|
69
|
-
Options:
|
|
70
|
-
- `--
|
|
71
|
-
- `--skip-git` - Skip git initialization
|
|
72
|
-
|
|
73
|
-
### Build Plugin
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
cd my-plugin/Server/Plugins/my-plugin
|
|
77
|
-
hyt build
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
1
|
+
# HYT - Hytale Development Tool
|
|
2
|
+
|
|
3
|
+
A command-line interface for Hytale plugin development that automates project setup, building, and hot-reload development workflows.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
**Quick Setup**
|
|
8
|
+
- Automatic Java 25 detection and installation
|
|
9
|
+
- Hytale installation discovery
|
|
10
|
+
- Configuration management
|
|
11
|
+
|
|
12
|
+
**Project Initialization**
|
|
13
|
+
- Scaffolds new plugin projects from template
|
|
14
|
+
- Decompiles Hytale server JAR for reference sources (CFR)
|
|
15
|
+
- Configures Gradle build system
|
|
16
|
+
- Git repository initialization
|
|
17
|
+
|
|
18
|
+
**Build System**
|
|
19
|
+
- Gradle wrapper integration
|
|
20
|
+
- One-command builds
|
|
21
|
+
- Automatic JAR output to mods folder (use `--no-copy` to skip)
|
|
22
|
+
|
|
23
|
+
**Development Mode**
|
|
24
|
+
- Optional file watching with auto-rebuild on changes (use `--watch` flag)
|
|
25
|
+
- Integrated Hytale server management
|
|
26
|
+
- Always builds and copies before server startup
|
|
27
|
+
- Live feedback with progress indicators
|
|
28
|
+
|
|
29
|
+
## Requirements
|
|
30
|
+
|
|
31
|
+
- Node.js 18 or higher
|
|
32
|
+
- Java 25 (auto-installed if missing)
|
|
33
|
+
- Hytale installation
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm install -g @lunnos/hyt
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
After installation, the `hyt` command will be available globally.
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
### Initial Setup
|
|
46
|
+
|
|
47
|
+
Configure Java and Hytale paths:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
hyt setup
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Options:
|
|
54
|
+
- `--java-path <path>` - Specify Java executable manually
|
|
55
|
+
- `--hytale-path <path>` - Specify Hytale installation manually
|
|
56
|
+
|
|
57
|
+
### Create New Plugin
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
hyt init my-plugin
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
This creates a complete project structure with:
|
|
64
|
+
- Plugin source template
|
|
65
|
+
- Hytale server files
|
|
66
|
+
- Decompiled reference sources
|
|
67
|
+
- Gradle build configuration
|
|
68
|
+
|
|
69
|
+
Options:
|
|
70
|
+
- `--with-cfr` - Include decompiled reference sources (Takes longer)
|
|
71
|
+
- `--skip-git` - Skip git initialization
|
|
72
|
+
|
|
73
|
+
### Build Plugin
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
cd my-plugin/Server/Plugins/my-plugin
|
|
77
|
+
hyt build
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Automatically builds your plugin and copies the JAR to the mods folder.
|
|
81
|
+
|
|
82
|
+
Options:
|
|
83
|
+
- `--no-copy` - Skip copying JAR to mods folder
|
|
84
|
+
|
|
85
|
+
### Development Mode
|
|
86
|
+
|
|
87
|
+
Start development mode to run your Hytale server:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
cd my-plugin/Server/Plugins/my-plugin
|
|
91
|
+
hyt dev
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
This will:
|
|
95
|
+
1. Build your plugin
|
|
96
|
+
2. Copy JAR to mods folder
|
|
97
|
+
3. Start the Hytale server with your latest plugin
|
|
98
|
+
|
|
99
|
+
**Note:** The server does NOT auto-restart. When you make code changes, you must:
|
|
100
|
+
1. Stop the server with Ctrl+C
|
|
101
|
+
2. Make your changes
|
|
102
|
+
3. Run `hyt dev` again to rebuild and restart
|
|
103
|
+
|
|
104
|
+
Options:
|
|
105
|
+
- `--no-initial-build` - Skip initial build on startup
|
|
106
|
+
- `--watch` - Enable file watching for live error checking (auto-rebuild on changes, but server restart still required)
|
|
107
|
+
- `--debounce <seconds>` - Seconds to wait after last change before rebuilding (default: 5)
|
|
108
|
+
|
|
109
|
+
### Generate Reference Sources
|
|
110
|
+
|
|
111
|
+
Optionally generate decompiled Hytale server sources for API exploration:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
hyt generate-references
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
This takes 5-10 minutes and creates reference sources in `Server/Plugins/src-ref/`. Useful for understanding the Hytale API and for IDE code completion.
|
|
118
|
+
|
|
119
|
+
## Project Structure
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
my-plugin/
|
|
123
|
+
āāā Assets.zip # Hytale game assets
|
|
124
|
+
āāā mods/ # Compiled plugin JARs
|
|
125
|
+
āāā Server/
|
|
126
|
+
āāā HytaleServer.jar
|
|
127
|
+
āāā Plugins/
|
|
128
|
+
āāā my-plugin/ # Your plugin source
|
|
129
|
+
āāā app/
|
|
130
|
+
ā āāā src/
|
|
131
|
+
āāā gradle/
|
|
132
|
+
āāā gradlew
|
|
133
|
+
āāā build.gradle
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Configuration
|
|
137
|
+
|
|
138
|
+
Configuration is stored in `~/.hyt/config.json`:
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"javaPath": "/path/to/java",
|
|
143
|
+
"hytaleInstallPath": "/path/to/hytale"
|
|
144
|
+
}
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Credits
|
|
148
|
+
|
|
149
|
+
The default plugin template is provided by [hytale-france/example-mod](https://github.com/hytale-france/example-mod).
|
|
150
|
+
|
|
151
|
+
## License
|
|
152
|
+
|
|
153
|
+
MIT
|
package/dist/commands/build.js
CHANGED
|
@@ -8,7 +8,7 @@ import { GradleError } from '../utils/errors.js';
|
|
|
8
8
|
export function buildCommand() {
|
|
9
9
|
return new Command('build')
|
|
10
10
|
.description('Build your Hytale plugin')
|
|
11
|
-
.option('--copy', '
|
|
11
|
+
.option('--no-copy', 'Skip copying built JAR to mods folder after build')
|
|
12
12
|
.action(async (options) => {
|
|
13
13
|
try {
|
|
14
14
|
const projectDir = process.cwd();
|
|
@@ -38,8 +38,8 @@ export function buildCommand() {
|
|
|
38
38
|
const jarPath = path.join(buildOutputDir, jarFile);
|
|
39
39
|
success(`\n⨠Build successful!`);
|
|
40
40
|
console.log(`\nš¦ Output: ${jarPath}`);
|
|
41
|
-
// Copy to mods folder
|
|
42
|
-
if (options.copy) {
|
|
41
|
+
// Copy to mods folder by default (unless --no-copy is specified)
|
|
42
|
+
if (options.copy !== false) {
|
|
43
43
|
const copySpinner = startSpinner('Copying JAR to mods folder...');
|
|
44
44
|
// Navigate up to find mods folder
|
|
45
45
|
// Expected structure: project/Server/Plugins/plugin-name/ (we're here)
|
|
@@ -56,9 +56,9 @@ export function buildCommand() {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
|
-
|
|
59
|
+
info('Skipped copying JAR (--no-copy flag used)');
|
|
60
60
|
}
|
|
61
|
-
console.log(`\nš
|
|
61
|
+
console.log(`\nš Ready to test in Server/mods/ folder`);
|
|
62
62
|
}
|
|
63
63
|
catch (err) {
|
|
64
64
|
if (err instanceof GradleError) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,cAA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EnE,IAAI,CAAC;oBACH,MAAM,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;oBACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;oBAC7C,MAAM,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;oBACrC,WAAW,CAAC,OAAO,CAAC,aAAa,QAAQ,EAAE,CAAC,CAAC;gBAC/C,CAAC;gBAAC,MAAM,CAAC;oBACP,WAAW,CAAC,IAAI,CAAC,4CAA4C,CAAC,CAAC;gBACjE,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,2CAA2C,CAAC,CAAC;YACpD,CAAC;YAED,OAAO,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;QAE3D,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,WAAW,EAAE,CAAC;gBAC/B,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACrB,CAAC;iBAAM,CAAC;gBACN,KAAK,CAAC,iBAAkB,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;YACnD,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBpC,wBAAgB,UAAU,IAAI,OAAO,CAsLpC"}
|
package/dist/commands/dev.js
CHANGED
|
@@ -5,15 +5,18 @@ import { loadConfig } from '../utils/config.js';
|
|
|
5
5
|
import { runGradleBuild, hasGradleWrapper } from '../utils/gradle.js';
|
|
6
6
|
import { getBuildOutputDir } from '../utils/paths.js';
|
|
7
7
|
import { watchFiles, stopWatcher } from '../utils/watcher.js';
|
|
8
|
-
import { launchHytaleServer, stopHytaleServer
|
|
9
|
-
import { startSpinner, success, error, info
|
|
8
|
+
import { launchHytaleServer, stopHytaleServer } from '../utils/server.js';
|
|
9
|
+
import { startSpinner, success, error, info } from '../utils/ui.js';
|
|
10
10
|
import { ConfigError, GradleError, HytaleError } from '../utils/errors.js';
|
|
11
11
|
let isRebuilding = false;
|
|
12
12
|
let watcher = null;
|
|
13
|
+
let rebuildTimeout = null;
|
|
13
14
|
export function devCommand() {
|
|
14
15
|
return new Command('dev')
|
|
15
|
-
.description('Start development mode
|
|
16
|
+
.description('Start development mode')
|
|
16
17
|
.option('--no-initial-build', 'Skip initial build on startup')
|
|
18
|
+
.option('--watch', 'Enable auto-rebuild on file changes')
|
|
19
|
+
.option('--debounce <seconds>', 'Seconds to wait after last change before rebuilding (default: 5)', '5')
|
|
17
20
|
.action(async (options) => {
|
|
18
21
|
try {
|
|
19
22
|
console.log('\nš„ Starting development mode...\n');
|
|
@@ -49,18 +52,19 @@ export function devCommand() {
|
|
|
49
52
|
` - Assets.zip\n` +
|
|
50
53
|
`Make sure you ran "hyt init" to create the project structure.`);
|
|
51
54
|
}
|
|
52
|
-
// Initial build
|
|
55
|
+
// Initial build and copy (always done unless --no-initial-build)
|
|
53
56
|
if (options.initialBuild !== false) {
|
|
54
|
-
info('
|
|
57
|
+
info('Building plugin before starting server...\n');
|
|
55
58
|
try {
|
|
56
59
|
await runGradleBuild(projectDir);
|
|
57
|
-
success('ā
|
|
60
|
+
success('ā Build complete\n');
|
|
58
61
|
}
|
|
59
62
|
catch (err) {
|
|
60
63
|
throw new GradleError('Initial build failed. Fix the errors and try again.');
|
|
61
64
|
}
|
|
62
65
|
// Copy JAR to mods folder
|
|
63
66
|
await copyJarToMods(projectDir, modsDir);
|
|
67
|
+
console.log('');
|
|
64
68
|
}
|
|
65
69
|
// Start Hytale server
|
|
66
70
|
info('Starting Hytale server...\n');
|
|
@@ -71,7 +75,7 @@ export function devCommand() {
|
|
|
71
75
|
workingDir: projectRoot,
|
|
72
76
|
};
|
|
73
77
|
try {
|
|
74
|
-
|
|
78
|
+
launchHytaleServer(serverOptions); // Don't await - let it run in background
|
|
75
79
|
success('ā Hytale server started\n');
|
|
76
80
|
console.log('š Once the server console is ready, run the authentication command:');
|
|
77
81
|
console.log(' /auth login device\n');
|
|
@@ -79,56 +83,61 @@ export function devCommand() {
|
|
|
79
83
|
catch (err) {
|
|
80
84
|
throw new HytaleError(`Failed to start server: ${err.message}`);
|
|
81
85
|
}
|
|
82
|
-
// Start watching for file changes
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
try {
|
|
95
|
-
// Rebuild
|
|
96
|
-
const buildSpinner = startSpinner('Rebuilding...');
|
|
97
|
-
await runGradleBuild(projectDir);
|
|
98
|
-
buildSpinner.succeed('Build complete');
|
|
99
|
-
// Copy new JAR
|
|
100
|
-
await copyJarToMods(projectDir, modsDir);
|
|
101
|
-
// Restart server
|
|
102
|
-
if (isServerRunning()) {
|
|
103
|
-
const restartSpinner = startSpinner('Restarting server...');
|
|
104
|
-
await restartHytaleServer(serverOptions);
|
|
105
|
-
restartSpinner.succeed('Server restarted');
|
|
106
|
-
console.log('š” Remember to authenticate: /auth login device\n');
|
|
86
|
+
// Start watching for file changes (only if --watch flag is provided)
|
|
87
|
+
if (options.watch) {
|
|
88
|
+
info('š Watching for file changes...\n');
|
|
89
|
+
console.log('š” Files will auto-rebuild to check for errors.');
|
|
90
|
+
console.log('ā ļø You need to restart the server manually to apply plugin changes.');
|
|
91
|
+
console.log('Press Ctrl+C to stop development mode\n');
|
|
92
|
+
const debounceMs = parseInt(options.debounce) * 1000;
|
|
93
|
+
const srcDir = path.join(projectDir, 'app', 'src');
|
|
94
|
+
watcher = watchFiles(srcDir, {
|
|
95
|
+
onFileChange: async (filePath) => {
|
|
96
|
+
if (isRebuilding) {
|
|
97
|
+
return;
|
|
107
98
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
await launchHytaleServer(serverOptions);
|
|
111
|
-
console.log('š” Remember to authenticate: /auth login device\n');
|
|
99
|
+
if (rebuildTimeout) {
|
|
100
|
+
clearTimeout(rebuildTimeout);
|
|
112
101
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
102
|
+
const fileName = path.basename(filePath);
|
|
103
|
+
console.log(`\nš ${fileName} changed`);
|
|
104
|
+
rebuildTimeout = setTimeout(async () => {
|
|
105
|
+
isRebuilding = true;
|
|
106
|
+
try {
|
|
107
|
+
// Rebuild with force to ensure changes are compiled
|
|
108
|
+
const buildSpinner = startSpinner('Building...');
|
|
109
|
+
await runGradleBuild(projectDir, true); // Force rebuild
|
|
110
|
+
buildSpinner.succeed('Build complete');
|
|
111
|
+
// Copy new JAR
|
|
112
|
+
await copyJarToMods(projectDir, modsDir);
|
|
113
|
+
success('⨠Build successful! Restart server with Ctrl+C to apply changes.\n');
|
|
114
|
+
}
|
|
115
|
+
catch (err) {
|
|
116
|
+
if (err instanceof GradleError) {
|
|
117
|
+
error(`Build failed: ${err.message}`);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
error(`Build failed: ${err.message}`);
|
|
121
|
+
}
|
|
122
|
+
info('Fix the errors and save again.\n');
|
|
123
|
+
}
|
|
124
|
+
finally {
|
|
125
|
+
isRebuilding = false;
|
|
126
|
+
}
|
|
127
|
+
}, debounceMs);
|
|
128
|
+
},
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
console.log('š” Auto-rebuild disabled. Restart with Ctrl+C when you make changes.');
|
|
133
|
+
console.log('š” Use --watch to enable live error checking during development.');
|
|
134
|
+
console.log('Press Ctrl+C to stop the server\n');
|
|
135
|
+
}
|
|
130
136
|
const cleanup = async () => {
|
|
131
137
|
console.log('\n\nš Shutting down...');
|
|
138
|
+
if (rebuildTimeout) {
|
|
139
|
+
clearTimeout(rebuildTimeout);
|
|
140
|
+
}
|
|
132
141
|
if (watcher) {
|
|
133
142
|
await stopWatcher(watcher);
|
|
134
143
|
watcher = null;
|
|
@@ -150,6 +159,9 @@ export function devCommand() {
|
|
|
150
159
|
error(`Dev mode failed: ${err.message}`);
|
|
151
160
|
}
|
|
152
161
|
// Cleanup on error
|
|
162
|
+
if (rebuildTimeout) {
|
|
163
|
+
clearTimeout(rebuildTimeout);
|
|
164
|
+
}
|
|
153
165
|
if (watcher) {
|
|
154
166
|
await stopWatcher(watcher);
|
|
155
167
|
}
|
|
@@ -169,10 +181,18 @@ async function copyJarToMods(projectDir, modsDir) {
|
|
|
169
181
|
}
|
|
170
182
|
const srcPath = path.join(buildOutputDir, jarFile);
|
|
171
183
|
const destPath = path.join(modsDir, jarFile);
|
|
184
|
+
// Verify source file exists
|
|
185
|
+
await fs.access(srcPath);
|
|
186
|
+
// Copy the file
|
|
172
187
|
await fs.copyFile(srcPath, destPath);
|
|
173
|
-
|
|
188
|
+
// Verify destination file exists
|
|
189
|
+
await fs.access(destPath);
|
|
190
|
+
info(`ā Copied ${jarFile} to ${destPath}`);
|
|
174
191
|
}
|
|
175
192
|
catch (err) {
|
|
193
|
+
error(`Failed to copy JAR: ${err.message}`);
|
|
194
|
+
error(`Source: ${buildOutputDir}`);
|
|
195
|
+
error(`Destination: ${modsDir}`);
|
|
176
196
|
throw new GradleError(`Failed to copy JAR: ${err.message}`);
|
|
177
197
|
}
|
|
178
198
|
}
|
package/dist/commands/dev.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAwC,MAAM,oBAAoB,CAAC;AAChH,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAQ,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAG3E,IAAI,YAAY,GAAG,KAAK,CAA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;QAE/E,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACxD,CAAC;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAE7C,4BAA4B;QAC5B,MAAM,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEzB,gBAAgB;QAChB,MAAM,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAErC,iCAAiC;QACjC,MAAM,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAE1B,IAAI,CAAC,YAAY,OAAO,OAAO,QAAQ,EAAE,CAAC,CAAC;IAC7C,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,KAAK,CAAC,uBAAwB,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;QACvD,KAAK,CAAC,WAAW,cAAc,EAAE,CAAC,CAAC;QACnC,KAAK,CAAC,gBAAgB,OAAO,EAAE,CAAC,CAAC;QACjC,MAAM,IAAI,WAAW,CAAC,uBAAwB,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,wBAAgB,WAAW,IAAI,OAAO,CA6UrC"}
|