@lunnos/hyt 1.0.1 → 1.1.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.
- package/CHANGELOG.md +20 -13
- package/README.md +149 -135
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +38 -36
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +111 -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/package.json +46 -46
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
###
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
###
|
|
12
|
-
|
|
13
|
-
*
|
|
1
|
+
# [1.1.0](https://github.com/LunnosMp4/hyt/compare/v1.0.1...v1.1.0) (2026-01-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* remove auto generate cfr, customizable debounce, remove auto-restart, reduce logs, update docs ([66c762a](https://github.com/LunnosMp4/hyt/commit/66c762a5dc586e495861b81038fa81f9567d18a2))
|
|
7
|
+
|
|
8
|
+
## [1.0.1](https://github.com/LunnosMp4/hyt/compare/v1.0.0...v1.0.1) (2026-01-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add credits section to README and improve setup command output ([7619995](https://github.com/LunnosMp4/hyt/commit/7619995caf4b608dcc41983137bf768bec3a6100))
|
|
14
|
+
|
|
15
|
+
# 1.0.0 (2026-01-14)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* 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,149 @@
|
|
|
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
|
-
- File watching with automatic rebuild on changes
|
|
25
|
-
- Hot-reload server restart
|
|
26
|
-
- Integrated Hytale server management
|
|
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
|
-
- `--skip-cfr` - Skip decompiler download
|
|
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
|
-
Options:
|
|
81
|
-
- `--copy` - Automatically copy JAR to mods folder
|
|
82
|
-
|
|
83
|
-
### Development Mode
|
|
84
|
-
|
|
85
|
-
Start
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
cd my-plugin/Server/Plugins/my-plugin
|
|
89
|
-
hyt dev
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
This will:
|
|
93
|
-
1. Build your plugin
|
|
94
|
-
2. Start the Hytale server
|
|
95
|
-
3. Watch for file changes
|
|
96
|
-
4.
|
|
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
|
|
22
|
+
|
|
23
|
+
**Development Mode**
|
|
24
|
+
- File watching with automatic rebuild on changes
|
|
25
|
+
- Hot-reload server restart
|
|
26
|
+
- Integrated Hytale server management
|
|
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
|
+
- `--skip-cfr` - Skip decompiler download
|
|
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
|
+
Options:
|
|
81
|
+
- `--copy` - Automatically copy JAR to mods folder
|
|
82
|
+
|
|
83
|
+
### Development Mode
|
|
84
|
+
|
|
85
|
+
Start development mode with automatic rebuild on file changes:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
cd my-plugin/Server/Plugins/my-plugin
|
|
89
|
+
hyt dev
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
This will:
|
|
93
|
+
1. Build your plugin
|
|
94
|
+
2. Start the Hytale server
|
|
95
|
+
3. Watch for file changes
|
|
96
|
+
4. Auto-rebuild when you save (with 5-second debounce)
|
|
97
|
+
5. Copy updated JAR to mods folder
|
|
98
|
+
|
|
99
|
+
**Note:** The server does NOT auto-restart. After changes are built, manually restart the server to apply updates.
|
|
100
|
+
|
|
101
|
+
Options:
|
|
102
|
+
- `--no-initial-build` - Skip initial build on startup
|
|
103
|
+
- `--debounce <seconds>` - Seconds to wait after last change before rebuilding (default: 5)
|
|
104
|
+
|
|
105
|
+
### Generate Reference Sources
|
|
106
|
+
|
|
107
|
+
Optionally generate decompiled Hytale server sources for API exploration:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
hyt generate-references
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
This takes 5-10 minutes and creates reference sources in `Server/Plugins/src-ref/`. Useful for understanding the Hytale API.
|
|
114
|
+
|
|
115
|
+
## Project Structure
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
my-plugin/
|
|
119
|
+
├── Assets.zip # Hytale game assets
|
|
120
|
+
├── mods/ # Compiled plugin JARs
|
|
121
|
+
└── Server/
|
|
122
|
+
├── HytaleServer.jar
|
|
123
|
+
└── Plugins/
|
|
124
|
+
└── my-plugin/ # Your plugin source
|
|
125
|
+
├── app/
|
|
126
|
+
│ └── src/
|
|
127
|
+
├── gradle/
|
|
128
|
+
├── gradlew
|
|
129
|
+
└── build.gradle
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Configuration
|
|
133
|
+
|
|
134
|
+
Configuration is stored in `~/.hyt/config.json`:
|
|
135
|
+
|
|
136
|
+
```json
|
|
137
|
+
{
|
|
138
|
+
"javaPath": "/path/to/java",
|
|
139
|
+
"hytaleInstallPath": "/path/to/hytale"
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Credits
|
|
144
|
+
|
|
145
|
+
The default plugin template is provided by [hytale-france/example-mod](https://github.com/hytale-france/example-mod).
|
|
146
|
+
|
|
147
|
+
## License
|
|
148
|
+
|
|
149
|
+
MIT
|
|
@@ -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,CA6KpC"}
|
package/dist/commands/dev.js
CHANGED
|
@@ -5,15 +5,17 @@ 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
16
|
.description('Start development mode with hot reload')
|
|
16
17
|
.option('--no-initial-build', 'Skip initial build on startup')
|
|
18
|
+
.option('--debounce <seconds>', 'Seconds to wait after last change before rebuilding (default: 5)', '5')
|
|
17
19
|
.action(async (options) => {
|
|
18
20
|
try {
|
|
19
21
|
console.log('\n🔥 Starting development mode...\n');
|
|
@@ -81,54 +83,51 @@ export function devCommand() {
|
|
|
81
83
|
}
|
|
82
84
|
// Start watching for file changes
|
|
83
85
|
info('👀 Watching for file changes...\n');
|
|
86
|
+
console.log('💡 Files will auto-rebuild after changes. Restart server manually to apply updates.');
|
|
84
87
|
console.log('Press Ctrl+C to stop development mode\n');
|
|
88
|
+
const debounceMs = parseInt(options.debounce) * 1000;
|
|
85
89
|
const srcDir = path.join(projectDir, 'app', 'src');
|
|
86
90
|
watcher = watchFiles(srcDir, {
|
|
87
91
|
onFileChange: async (filePath) => {
|
|
88
92
|
if (isRebuilding) {
|
|
89
|
-
return;
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (rebuildTimeout) {
|
|
96
|
+
clearTimeout(rebuildTimeout);
|
|
90
97
|
}
|
|
91
|
-
isRebuilding = true;
|
|
92
98
|
const fileName = path.basename(filePath);
|
|
93
|
-
console.log(`\n📝
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
await restartHytaleServer(serverOptions);
|
|
105
|
-
restartSpinner.succeed('Server restarted');
|
|
106
|
-
console.log('💡 Remember to authenticate: /auth login device\n');
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
warn('Server not running, starting it...');
|
|
110
|
-
await launchHytaleServer(serverOptions);
|
|
111
|
-
console.log('💡 Remember to authenticate: /auth login device\n');
|
|
99
|
+
console.log(`\n📝 ${fileName} changed`);
|
|
100
|
+
rebuildTimeout = setTimeout(async () => {
|
|
101
|
+
isRebuilding = true;
|
|
102
|
+
try {
|
|
103
|
+
// Rebuild
|
|
104
|
+
const buildSpinner = startSpinner('Building...');
|
|
105
|
+
await runGradleBuild(projectDir);
|
|
106
|
+
buildSpinner.succeed('Build complete');
|
|
107
|
+
// Copy new JAR
|
|
108
|
+
await copyJarToMods(projectDir, modsDir);
|
|
109
|
+
success('✨ Plugin updated! Restart server to apply changes.\n');
|
|
112
110
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
catch (err) {
|
|
112
|
+
if (err instanceof GradleError) {
|
|
113
|
+
error(`Build failed: ${err.message}`);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
error(`Build failed: ${err.message}`);
|
|
117
|
+
}
|
|
118
|
+
info('Fix the errors and save again.\n');
|
|
118
119
|
}
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
finally {
|
|
121
|
+
isRebuilding = false;
|
|
121
122
|
}
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
finally {
|
|
125
|
-
isRebuilding = false;
|
|
126
|
-
}
|
|
123
|
+
}, debounceMs);
|
|
127
124
|
},
|
|
128
125
|
});
|
|
129
|
-
// Handle graceful shutdown
|
|
130
126
|
const cleanup = async () => {
|
|
131
127
|
console.log('\n\n🛑 Shutting down...');
|
|
128
|
+
if (rebuildTimeout) {
|
|
129
|
+
clearTimeout(rebuildTimeout);
|
|
130
|
+
}
|
|
132
131
|
if (watcher) {
|
|
133
132
|
await stopWatcher(watcher);
|
|
134
133
|
watcher = null;
|
|
@@ -150,6 +149,9 @@ export function devCommand() {
|
|
|
150
149
|
error(`Dev mode failed: ${err.message}`);
|
|
151
150
|
}
|
|
152
151
|
// Cleanup on error
|
|
152
|
+
if (rebuildTimeout) {
|
|
153
|
+
clearTimeout(rebuildTimeout);
|
|
154
|
+
}
|
|
153
155
|
if (watcher) {
|
|
154
156
|
await stopWatcher(watcher);
|
|
155
157
|
}
|
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,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I,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;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,MAAM,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACrC,IAAI,CAAC,YAAY,OAAO,WAAW,CAAC,CAAC;IACvC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,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,CAgSrC"}
|
package/dist/commands/init.js
CHANGED
|
@@ -2,6 +2,7 @@ import { Command } from 'commander';
|
|
|
2
2
|
import fs from 'fs/promises';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
import { execa } from 'execa';
|
|
5
|
+
import readline from 'readline';
|
|
5
6
|
import { loadConfig } from '../utils/config.js';
|
|
6
7
|
import { downloadFile, getTemplateUrl, getCfrUrl } from '../utils/download.js';
|
|
7
8
|
import { startSpinner, success, error, info, warn } from '../utils/ui.js';
|
|
@@ -11,7 +12,7 @@ export function initCommand() {
|
|
|
11
12
|
return new Command('init')
|
|
12
13
|
.description('Create a new Hytale plugin project')
|
|
13
14
|
.argument('<project-name>', 'Name for your plugin project')
|
|
14
|
-
.option('--
|
|
15
|
+
.option('--with-cfr', 'Download CFR and generate reference sources (takes ~10 minutes)')
|
|
15
16
|
.option('--skip-git', 'Skip git initialization')
|
|
16
17
|
.action(async (projectName, options) => {
|
|
17
18
|
try {
|
|
@@ -29,14 +30,50 @@ export function initCommand() {
|
|
|
29
30
|
const pluginSourceDir = path.join(pluginsDir, projectName);
|
|
30
31
|
const modsDir = path.join(projectDir, 'mods');
|
|
31
32
|
// Check if directory already exists
|
|
33
|
+
let savedCfrPath = null;
|
|
32
34
|
try {
|
|
33
35
|
await fs.access(projectDir);
|
|
34
|
-
|
|
36
|
+
// Directory exists, ask for confirmation
|
|
37
|
+
warn(`\nDirectory "${projectName}" already exists.`);
|
|
38
|
+
console.log('⚠️ This will DELETE the existing project and create a new one.');
|
|
39
|
+
// Check if CFR sources exist
|
|
40
|
+
const existingSrcRef = path.join(projectDir, 'Server', 'Plugins', 'src-ref');
|
|
41
|
+
let hasCfrSources = false;
|
|
42
|
+
try {
|
|
43
|
+
const stats = await fs.stat(existingSrcRef);
|
|
44
|
+
if (stats.isDirectory()) {
|
|
45
|
+
const files = await fs.readdir(existingSrcRef);
|
|
46
|
+
hasCfrSources = files.length > 0;
|
|
47
|
+
if (hasCfrSources) {
|
|
48
|
+
info('📚 Detected existing reference sources - they will be preserved');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
// No CFR sources, continue
|
|
54
|
+
}
|
|
55
|
+
const answer = await askYesNo('\nDo you want to continue?');
|
|
56
|
+
if (!answer) {
|
|
57
|
+
info('Operation cancelled.');
|
|
58
|
+
process.exit(0);
|
|
59
|
+
}
|
|
60
|
+
// Save CFR sources if they exist
|
|
61
|
+
if (hasCfrSources) {
|
|
62
|
+
savedCfrPath = path.join(process.cwd(), `.hyt-temp-cfr-${Date.now()}`);
|
|
63
|
+
const saveSpinner = startSpinner('Saving reference sources...');
|
|
64
|
+
await fs.rename(existingSrcRef, savedCfrPath);
|
|
65
|
+
saveSpinner.succeed('Reference sources saved');
|
|
66
|
+
}
|
|
67
|
+
// Delete existing directory
|
|
68
|
+
const deleteSpinner = startSpinner('Removing existing project...');
|
|
69
|
+
await fs.rm(projectDir, { recursive: true, force: true });
|
|
70
|
+
deleteSpinner.succeed('Existing project removed');
|
|
35
71
|
}
|
|
36
72
|
catch (err) {
|
|
37
73
|
if (err.code !== 'ENOENT') {
|
|
38
74
|
throw err;
|
|
39
75
|
}
|
|
76
|
+
// Directory doesn't exist, continue normally
|
|
40
77
|
}
|
|
41
78
|
// Create workspace structure
|
|
42
79
|
const structureSpinner = startSpinner('Creating workspace structure...');
|
|
@@ -89,9 +126,10 @@ export function initCommand() {
|
|
|
89
126
|
}
|
|
90
127
|
// Update project name in template files
|
|
91
128
|
const renameSpinner = startSpinner('Configuring project name...');
|
|
129
|
+
const packageName = projectName.toLowerCase().replace(/-/g, '_');
|
|
92
130
|
await replaceInFiles(pluginSourceDir, 'ExamplePlugin', toPascalCase(projectName));
|
|
93
131
|
await replaceInFiles(pluginSourceDir, 'example-mod', projectName);
|
|
94
|
-
await replaceInFiles(pluginSourceDir, 'org.example', `com.${
|
|
132
|
+
await replaceInFiles(pluginSourceDir, 'org.example', `com.${packageName}`);
|
|
95
133
|
// Rename the main Java file to match the new class name
|
|
96
134
|
const pascalName = toPascalCase(projectName);
|
|
97
135
|
const oldJavaFile = path.join(pluginSourceDir, 'app', 'src', 'main', 'java', 'org', 'example', 'ExamplePlugin.java');
|
|
@@ -102,9 +140,18 @@ export function initCommand() {
|
|
|
102
140
|
catch {
|
|
103
141
|
// File might already be renamed or in different location
|
|
104
142
|
}
|
|
143
|
+
// Rename the test file to match the new class name
|
|
144
|
+
const oldTestFile = path.join(pluginSourceDir, 'app', 'src', 'test', 'java', 'org', 'example', 'ExamplePluginTest.java');
|
|
145
|
+
const newTestFile = path.join(pluginSourceDir, 'app', 'src', 'test', 'java', 'org', 'example', `${pascalName}Test.java`);
|
|
146
|
+
try {
|
|
147
|
+
await fs.rename(oldTestFile, newTestFile);
|
|
148
|
+
}
|
|
149
|
+
catch {
|
|
150
|
+
// File might already be renamed or in different location
|
|
151
|
+
}
|
|
105
152
|
renameSpinner.succeed('Project name configured');
|
|
106
153
|
// Download CFR (optional)
|
|
107
|
-
if (
|
|
154
|
+
if (options.withCfr) {
|
|
108
155
|
const cfrSpinner = startSpinner('Downloading CFR decompiler...');
|
|
109
156
|
const cfrPath = path.join(serverDir, 'cfr.jar');
|
|
110
157
|
try {
|
|
@@ -114,7 +161,6 @@ export function initCommand() {
|
|
|
114
161
|
const srcRefDir = path.join(pluginsDir, 'src-ref');
|
|
115
162
|
await fs.mkdir(srcRefDir, { recursive: true });
|
|
116
163
|
info('⏱️ Generating reference sources (this may take several minutes)...');
|
|
117
|
-
info('💡 Tip: Use --skip-cfr to skip this step in future runs\n');
|
|
118
164
|
try {
|
|
119
165
|
const startTime = Date.now();
|
|
120
166
|
// Create a spinner with live updates
|
|
@@ -148,8 +194,22 @@ export function initCommand() {
|
|
|
148
194
|
cfrSpinner.warn('CFR download failed (non-critical, you can download manually)');
|
|
149
195
|
}
|
|
150
196
|
}
|
|
151
|
-
|
|
152
|
-
|
|
197
|
+
// Restore saved CFR sources if they exist
|
|
198
|
+
if (savedCfrPath) {
|
|
199
|
+
const restoreSpinner = startSpinner('Restoring reference sources...');
|
|
200
|
+
const srcRefDir = path.join(pluginsDir, 'src-ref');
|
|
201
|
+
try {
|
|
202
|
+
await fs.rename(savedCfrPath, srcRefDir);
|
|
203
|
+
restoreSpinner.succeed('Reference sources restored');
|
|
204
|
+
}
|
|
205
|
+
catch (err) {
|
|
206
|
+
restoreSpinner.fail('Failed to restore reference sources');
|
|
207
|
+
// Clean up temp directory
|
|
208
|
+
try {
|
|
209
|
+
await fs.rm(savedCfrPath, { recursive: true, force: true });
|
|
210
|
+
}
|
|
211
|
+
catch { }
|
|
212
|
+
}
|
|
153
213
|
}
|
|
154
214
|
// Initialize git (optional)
|
|
155
215
|
if (!options.skipGit) {
|
|
@@ -157,18 +217,18 @@ export function initCommand() {
|
|
|
157
217
|
try {
|
|
158
218
|
await execa('git', ['init'], { cwd: pluginSourceDir });
|
|
159
219
|
// Create .gitignore
|
|
160
|
-
const gitignore = `# Build outputs
|
|
161
|
-
build/
|
|
162
|
-
.gradle/
|
|
163
|
-
|
|
164
|
-
# IDE
|
|
165
|
-
.idea/
|
|
166
|
-
*.iml
|
|
167
|
-
.vscode/
|
|
168
|
-
|
|
169
|
-
# OS
|
|
170
|
-
.DS_Store
|
|
171
|
-
Thumbs.db
|
|
220
|
+
const gitignore = `# Build outputs
|
|
221
|
+
build/
|
|
222
|
+
.gradle/
|
|
223
|
+
|
|
224
|
+
# IDE
|
|
225
|
+
.idea/
|
|
226
|
+
*.iml
|
|
227
|
+
.vscode/
|
|
228
|
+
|
|
229
|
+
# OS
|
|
230
|
+
.DS_Store
|
|
231
|
+
Thumbs.db
|
|
172
232
|
`;
|
|
173
233
|
await fs.writeFile(path.join(pluginSourceDir, '.gitignore'), gitignore);
|
|
174
234
|
gitSpinner.succeed('Git repository initialized');
|
|
@@ -182,22 +242,25 @@ Thumbs.db
|
|
|
182
242
|
}
|
|
183
243
|
// Success!
|
|
184
244
|
success('\n✨ Project created successfully!');
|
|
185
|
-
console.log(`
|
|
186
|
-
📁 Project structure:
|
|
187
|
-
${projectName}/
|
|
188
|
-
├── Assets.zip
|
|
189
|
-
├── mods/ # Compiled plugins go here
|
|
190
|
-
└── Server/
|
|
191
|
-
├── HytaleServer.jar
|
|
192
|
-
└── Plugins/
|
|
193
|
-
└── ${projectName}/ # Your plugin source code
|
|
194
|
-
|
|
195
|
-
🚀 Next steps:
|
|
196
|
-
cd ${projectName}/Server/Plugins/${projectName}
|
|
197
|
-
hyt build # Build your plugin
|
|
198
|
-
hyt dev # Start development mode
|
|
199
|
-
|
|
200
|
-
📖 Plugin source is in: Server/Plugins/${projectName}/app/src/
|
|
245
|
+
console.log(`
|
|
246
|
+
📁 Project structure:
|
|
247
|
+
${projectName}/
|
|
248
|
+
├── Assets.zip
|
|
249
|
+
├── mods/ # Compiled plugins go here
|
|
250
|
+
└── Server/
|
|
251
|
+
├── HytaleServer.jar
|
|
252
|
+
└── Plugins/
|
|
253
|
+
└── ${projectName}/ # Your plugin source code
|
|
254
|
+
|
|
255
|
+
🚀 Next steps:
|
|
256
|
+
cd ${projectName}/Server/Plugins/${projectName}
|
|
257
|
+
hyt build # Build your plugin
|
|
258
|
+
hyt dev # Start development mode
|
|
259
|
+
|
|
260
|
+
📖 Plugin source is in: Server/Plugins/${projectName}/app/src/
|
|
261
|
+
|
|
262
|
+
💡 Generate decompiled reference sources to explore the Hytale API
|
|
263
|
+
hyt generate-references # Takes ~10 minutes
|
|
201
264
|
`);
|
|
202
265
|
}
|
|
203
266
|
catch (err) {
|
|
@@ -268,4 +331,17 @@ function toPascalCase(str) {
|
|
|
268
331
|
.map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
|
269
332
|
.join('');
|
|
270
333
|
}
|
|
334
|
+
async function askYesNo(question) {
|
|
335
|
+
const rl = readline.createInterface({
|
|
336
|
+
input: process.stdin,
|
|
337
|
+
output: process.stdout,
|
|
338
|
+
});
|
|
339
|
+
return new Promise((resolve) => {
|
|
340
|
+
rl.question(`${question} (y/N): `, (answer) => {
|
|
341
|
+
rl.close();
|
|
342
|
+
const normalized = answer.trim().toLowerCase();
|
|
343
|
+
resolve(normalized === 'y' || normalized === 'yes');
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
}
|
|
271
347
|
//# sourceMappingURL=init.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts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 -0,0 +1,130 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
import fs from 'fs/promises';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { execa } from 'execa';
|
|
5
|
+
import { loadConfig } from '../utils/config.js';
|
|
6
|
+
import { downloadFile, getCfrUrl } from '../utils/download.js';
|
|
7
|
+
import { startSpinner, success, error, info } from '../utils/ui.js';
|
|
8
|
+
import { ConfigError, HytaleError } from '../utils/errors.js';
|
|
9
|
+
export function referencesCommand() {
|
|
10
|
+
return new Command('generate-references')
|
|
11
|
+
.description('Generate decompiled reference sources from Hytale server JAR (takes ~10 minutes)')
|
|
12
|
+
.action(async () => {
|
|
13
|
+
try {
|
|
14
|
+
console.log('\n📚 Generating reference sources...\n');
|
|
15
|
+
// Verify setup has been run
|
|
16
|
+
const config = await loadConfig();
|
|
17
|
+
if (!config) {
|
|
18
|
+
throw new ConfigError('HYT is not configured. Please run "hyt setup" first.');
|
|
19
|
+
}
|
|
20
|
+
// Find project structure
|
|
21
|
+
const cwd = process.cwd();
|
|
22
|
+
// Try to locate Server directory
|
|
23
|
+
let serverDir;
|
|
24
|
+
let pluginsDir;
|
|
25
|
+
// Check if we're in plugin directory
|
|
26
|
+
if (await directoryExists(path.join(cwd, 'app'))) {
|
|
27
|
+
// We're in Server/Plugins/plugin-name/
|
|
28
|
+
serverDir = path.resolve(cwd, '..', '..');
|
|
29
|
+
pluginsDir = path.resolve(cwd, '..');
|
|
30
|
+
}
|
|
31
|
+
// Check if we're in Plugins directory
|
|
32
|
+
else if (await directoryExists(path.join(cwd, '..', 'Server'))) {
|
|
33
|
+
serverDir = path.join(cwd, '..', 'Server');
|
|
34
|
+
pluginsDir = path.join(serverDir, 'Plugins');
|
|
35
|
+
}
|
|
36
|
+
// Check if we're in project root
|
|
37
|
+
else if (await directoryExists(path.join(cwd, 'Server'))) {
|
|
38
|
+
serverDir = path.join(cwd, 'Server');
|
|
39
|
+
pluginsDir = path.join(serverDir, 'Plugins');
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
throw new HytaleError('Could not find Hytale server directory.\n' +
|
|
43
|
+
'Run this command from your project root, Plugins directory, or plugin directory.');
|
|
44
|
+
}
|
|
45
|
+
// Verify HytaleServer.jar exists
|
|
46
|
+
const serverJarPath = path.join(serverDir, 'HytaleServer.jar');
|
|
47
|
+
try {
|
|
48
|
+
await fs.access(serverJarPath);
|
|
49
|
+
}
|
|
50
|
+
catch {
|
|
51
|
+
throw new HytaleError(`HytaleServer.jar not found at: ${serverJarPath}\n` +
|
|
52
|
+
'Make sure you ran "hyt init" to set up the project.');
|
|
53
|
+
}
|
|
54
|
+
// Download CFR if not present
|
|
55
|
+
const cfrPath = path.join(serverDir, 'cfr.jar');
|
|
56
|
+
try {
|
|
57
|
+
await fs.access(cfrPath);
|
|
58
|
+
info('Using existing CFR decompiler');
|
|
59
|
+
}
|
|
60
|
+
catch {
|
|
61
|
+
const cfrSpinner = startSpinner('Downloading CFR decompiler...');
|
|
62
|
+
try {
|
|
63
|
+
await downloadFile(getCfrUrl(), cfrPath);
|
|
64
|
+
cfrSpinner.succeed('CFR decompiler downloaded');
|
|
65
|
+
}
|
|
66
|
+
catch (err) {
|
|
67
|
+
cfrSpinner.fail('Failed to download CFR');
|
|
68
|
+
throw new HytaleError(`Could not download CFR: ${err.message}`);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// Generate reference sources
|
|
72
|
+
const srcRefDir = path.join(pluginsDir, 'src-ref');
|
|
73
|
+
await fs.mkdir(srcRefDir, { recursive: true });
|
|
74
|
+
info('⏱️ This will take several minutes (typically 5-10 minutes)');
|
|
75
|
+
info('💡 You can continue working in another terminal while this runs\n');
|
|
76
|
+
const startTime = Date.now();
|
|
77
|
+
const refSpinner = startSpinner('Generating reference sources...');
|
|
78
|
+
// Update spinner text every second
|
|
79
|
+
const timerInterval = setInterval(() => {
|
|
80
|
+
const elapsed = Math.round((Date.now() - startTime) / 1000);
|
|
81
|
+
const minutes = Math.floor(elapsed / 60);
|
|
82
|
+
const seconds = elapsed % 60;
|
|
83
|
+
const timeStr = minutes > 0 ? `${minutes}m ${seconds}s` : `${seconds}s`;
|
|
84
|
+
refSpinner.text = `Generating reference sources... (${timeStr} elapsed)`;
|
|
85
|
+
}, 1000);
|
|
86
|
+
try {
|
|
87
|
+
await execa(config.javaPath, [
|
|
88
|
+
'-jar', cfrPath,
|
|
89
|
+
serverJarPath,
|
|
90
|
+
'--outputdir', srcRefDir
|
|
91
|
+
], {
|
|
92
|
+
cwd: serverDir,
|
|
93
|
+
stdio: 'pipe',
|
|
94
|
+
});
|
|
95
|
+
clearInterval(timerInterval);
|
|
96
|
+
const elapsed = Math.round((Date.now() - startTime) / 1000);
|
|
97
|
+
const minutes = Math.floor(elapsed / 60);
|
|
98
|
+
const seconds = elapsed % 60;
|
|
99
|
+
const timeStr = minutes > 0 ? `${minutes}m ${seconds}s` : `${seconds}s`;
|
|
100
|
+
refSpinner.succeed(`Reference sources generated in ${timeStr}`);
|
|
101
|
+
success(`\n✨ Reference sources available at: ${srcRefDir}`);
|
|
102
|
+
console.log('\nYou can now explore the decompiled Hytale API to understand how to use it.\n');
|
|
103
|
+
}
|
|
104
|
+
catch (err) {
|
|
105
|
+
clearInterval(timerInterval);
|
|
106
|
+
refSpinner.fail('Failed to generate reference sources');
|
|
107
|
+
throw new HytaleError(`CFR decompilation failed: ${err.message}`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
catch (err) {
|
|
111
|
+
if (err instanceof ConfigError || err instanceof HytaleError) {
|
|
112
|
+
error(err.message);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
error(`Reference generation failed: ${err.message}`);
|
|
116
|
+
}
|
|
117
|
+
process.exit(1);
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
async function directoryExists(dirPath) {
|
|
122
|
+
try {
|
|
123
|
+
const stats = await fs.stat(dirPath);
|
|
124
|
+
return stats.isDirectory();
|
|
125
|
+
}
|
|
126
|
+
catch {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=references.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"references.js","sourceRoot":"","sources":["../../src/commands/references.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,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAQ,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE9D,MAAM,UAAU,iBAAiB;IAC/B,OAAO,IAAI,OAAO,CAAC,qBAAqB,CAAC;SACtC,WAAW,CAAC,kFAAkF,CAAC;SAC/F,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,IAAI,CAAC;YACH,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;YAEtD,4BAA4B;YAC5B,MAAM,MAAM,GAAG,MAAM,UAAU,EAAE,CAAC;YAClC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,IAAI,WAAW,CACnB,sDAAsD,CACvD,CAAC;YACJ,CAAC;YAED,yBAAyB;YACzB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;YAE1B,iCAAiC;YACjC,IAAI,SAAiB,CAAC;YACtB,IAAI,UAAkB,CAAC;YAEvB,qCAAqC;YACrC,IAAI,MAAM,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,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AO,EAAE,CACtD,CAAC;YACJ,CAAC;QAEH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,WAAW,IAAI,GAAG,YAAY,WAAW,EAAE,CAAC;gBAC7D,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACrB,CAAC;iBAAM,CAAC;gBACN,KAAK,CAAC,gCAAiC,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;YAClE,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC;AAED,KAAK,UAAU,eAAe,CAAC,OAAe;IAC5C,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrC,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;IAC7B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { setupCommand } from './commands/setup.js';
|
|
|
5
5
|
import { initCommand } from './commands/init.js';
|
|
6
6
|
import { buildCommand } from './commands/build.js';
|
|
7
7
|
import { devCommand } from './commands/dev.js';
|
|
8
|
+
import { referencesCommand } from './commands/references.js';
|
|
8
9
|
const require = createRequire(import.meta.url);
|
|
9
10
|
const { version } = require('../package.json');
|
|
10
11
|
const program = new Command();
|
|
@@ -16,5 +17,6 @@ program.addCommand(setupCommand());
|
|
|
16
17
|
program.addCommand(initCommand());
|
|
17
18
|
program.addCommand(buildCommand());
|
|
18
19
|
program.addCommand(devCommand());
|
|
20
|
+
program.addCommand(referencesCommand());
|
|
19
21
|
program.parse(process.argv);
|
|
20
22
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"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UAAU,EAAE,CAAC,CAAC;AACjC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAC;AAExC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@lunnos/hyt",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"description": "CLI tool for Hytale plugin development automation",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"hyt": "./dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"engines": {
|
|
10
|
-
"node": ">=20.8.1"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"dev": "tsc --watch",
|
|
15
|
-
"start": "node dist/index.js",
|
|
16
|
-
"semantic-release": "semantic-release"
|
|
17
|
-
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"hytale",
|
|
20
|
-
"plugin",
|
|
21
|
-
"cli",
|
|
22
|
-
"development"
|
|
23
|
-
],
|
|
24
|
-
"author": "Lunnos",
|
|
25
|
-
"license": "ISC",
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"chokidar": "^5.0.0",
|
|
28
|
-
"cli-progress": "^3.12.0",
|
|
29
|
-
"commander": "^14.0.2",
|
|
30
|
-
"execa": "^9.6.1",
|
|
31
|
-
"ora": "^9.0.0"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@semantic-release/changelog": "^6.0.3",
|
|
35
|
-
"@semantic-release/git": "^10.0.1",
|
|
36
|
-
"@types/chokidar": "^1.7.5",
|
|
37
|
-
"@types/cli-progress": "^3.11.6",
|
|
38
|
-
"@types/node": "^25.0.8",
|
|
39
|
-
"semantic-release": "^23.0.0",
|
|
40
|
-
"typescript": "^5.9.3"
|
|
41
|
-
},
|
|
42
|
-
"repository": {
|
|
43
|
-
"type": "git",
|
|
44
|
-
"url": "https://github.com/LunnosMp4/hyt.git"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@lunnos/hyt",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "CLI tool for Hytale plugin development automation",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"hyt": "./dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=20.8.1"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"dev": "tsc --watch",
|
|
15
|
+
"start": "node dist/index.js",
|
|
16
|
+
"semantic-release": "semantic-release"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"hytale",
|
|
20
|
+
"plugin",
|
|
21
|
+
"cli",
|
|
22
|
+
"development"
|
|
23
|
+
],
|
|
24
|
+
"author": "Lunnos",
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"chokidar": "^5.0.0",
|
|
28
|
+
"cli-progress": "^3.12.0",
|
|
29
|
+
"commander": "^14.0.2",
|
|
30
|
+
"execa": "^9.6.1",
|
|
31
|
+
"ora": "^9.0.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
35
|
+
"@semantic-release/git": "^10.0.1",
|
|
36
|
+
"@types/chokidar": "^1.7.5",
|
|
37
|
+
"@types/cli-progress": "^3.11.6",
|
|
38
|
+
"@types/node": "^25.0.8",
|
|
39
|
+
"semantic-release": "^23.0.0",
|
|
40
|
+
"typescript": "^5.9.3"
|
|
41
|
+
},
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "https://github.com/LunnosMp4/hyt.git"
|
|
45
|
+
}
|
|
46
|
+
}
|