| 
									
										
											  
											
												feat(migration): Migrate from Node.js to Deno runtime
Major migration to Deno runtime following the nupst project pattern:
Core Changes:
- Created deno.json configuration with tasks, imports, and settings
- Created mod.ts as main entry point with Deno permissions
- Updated all TypeScript imports from .js to .ts extensions
- Replaced Node.js APIs (process.exit) with Deno equivalents (Deno.exit)
- Updated path imports to use @std/path from JSR
Dependencies:
- Migrated all npm dependencies to use npm: prefix in import map
- Added Deno standard library imports (@std/path, @std/assert)
- Configured import aliases for all @push.rocks and @serve.zone packages
Build & Distribution:
- Created install.sh for downloading pre-compiled binaries
- Created uninstall.sh for clean system removal
- Created scripts/compile-all.sh for multi-platform compilation
- Supports Linux (x64, ARM64), macOS (x64, ARM64), Windows (x64)
Testing:
- Migrated tests to Deno test framework using @std/assert
- Created test.simple.ts for basic verification
- Updated test structure to use Deno.test instead of tap
CI/CD:
- Created .gitea/workflows/ci.yml for type checking, linting, and builds
- Created .gitea/workflows/release.yml for automated releases
- Created .gitea/release-template.md for release documentation
Cleanup:
- Removed package.json, pnpm-lock.yaml, tsconfig.json
- Removed Node.js CLI files (cli.js, cli.child.ts, cli.ts.js)
- Removed dist_ts/ compiled output directory
- Removed npmextra.json configuration
This migration enables standalone binary distribution without Node.js
runtime dependency while maintaining all existing functionality.
											
										 
											2025-10-23 23:22:16 +00:00
										 |  |  | import * as plugins from './spark.plugins.ts'; | 
					
						
							|  |  |  | import { SparkTaskManager } from './spark.classes.taskmanager.ts'; | 
					
						
							|  |  |  | import { SparkInfo } from './spark.classes.info.ts'; | 
					
						
							|  |  |  | import { SparkServicesManager } from './spark.classes.updatemanager.ts'; | 
					
						
							|  |  |  | import { logger } from './spark.logging.ts'; | 
					
						
							|  |  |  | import { SparkConfig } from './spark.classes.config.ts'; | 
					
						
							| 
									
										
										
										
											2024-05-08 20:49:10 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | export class Spark { | 
					
						
							|  |  |  |   public smartdaemon: plugins.smartdaemon.SmartDaemon; | 
					
						
							| 
									
										
										
										
											2024-12-20 01:29:21 +01:00
										 |  |  |   public sparkConfig: SparkConfig; | 
					
						
							| 
									
										
										
										
											2024-05-08 20:49:10 +02:00
										 |  |  |   public sparkTaskManager: SparkTaskManager; | 
					
						
							|  |  |  |   public sparkInfo: SparkInfo; | 
					
						
							| 
									
										
										
										
											2024-12-20 01:29:21 +01:00
										 |  |  |   public sparkUpdateManager: SparkServicesManager; | 
					
						
							| 
									
										
										
										
											2024-05-08 20:49:10 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   constructor() { | 
					
						
							|  |  |  |     this.smartdaemon = new plugins.smartdaemon.SmartDaemon(); | 
					
						
							| 
									
										
										
										
											2024-12-20 01:29:21 +01:00
										 |  |  |     this.sparkConfig = new SparkConfig(this); | 
					
						
							| 
									
										
										
										
											2024-05-08 20:49:10 +02:00
										 |  |  |     this.sparkInfo = new SparkInfo(this); | 
					
						
							|  |  |  |     this.sparkTaskManager = new SparkTaskManager(this); | 
					
						
							| 
									
										
										
										
											2024-12-20 01:29:21 +01:00
										 |  |  |     this.sparkUpdateManager = new SparkServicesManager(this); | 
					
						
							| 
									
										
										
										
											2024-05-08 20:49:10 +02:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   public async daemonStart() { | 
					
						
							|  |  |  |     await this.sparkUpdateManager.start(); | 
					
						
							|  |  |  |     this.sparkTaskManager.start(); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |