23 Commits

Author SHA1 Message Date
6117b20cc5 1.2.4
All checks were successful
CI / Type Check & Lint (push) Successful in 11s
CI / Build Test (Current Platform) (push) Successful in 22s
CI / Build All Platforms (push) Successful in 1m55s
Release / build-and-release (push) Successful in 2m8s
2025-10-23 23:35:18 +00:00
91ed2a5b5d 1.2.3
Some checks failed
CI / Type Check & Lint (push) Failing after 3s
CI / Build Test (Current Platform) (push) Failing after 3s
CI / Build All Platforms (push) Failing after 3s
Release / build-and-release (push) Failing after 4s
2025-10-23 23:33:32 +00:00
67f97e6115 feat(npm): Add npm package distribution support
Some checks failed
CI / Type Check & Lint (push) Failing after 4s
CI / Build Test (Current Platform) (push) Failing after 3s
CI / Build All Platforms (push) Failing after 3s
Added npm package wrapper to enable installation via npm while
maintaining the Deno binary distribution model.

New Files:
- package.json: npm package configuration with binary wrapper
- bin/spark-wrapper.js: Detects platform and executes correct binary
- scripts/install-binary.js: Downloads appropriate binary on npm install
- .npmignore: Excludes source files from npm package
- npmextra.json: npm extra configuration

Updated:
- readme.md: Added npm installation instructions

How It Works:
1. User runs: npm install -g @serve.zone/spark
2. Postinstall script (install-binary.js) downloads the correct
   pre-compiled binary for the user's platform from Gitea releases
3. Binary is cached in dist/binaries/
4. Wrapper script (spark-wrapper.js) executes the binary when user
   runs 'spark' command

Supported via npm:
- Linux (x64, ARM64)
- macOS (Intel, Apple Silicon)
- Windows (x64)

This maintains the benefits of Deno compilation (no runtime deps)
while providing familiar npm-based installation for users who prefer it.
2025-10-23 23:31:53 +00:00
526b4f46dd feat(migration): Migrate from Node.js to Deno runtime
All checks were successful
CI / Type Check & Lint (push) Successful in 13s
CI / Build Test (Current Platform) (push) Successful in 19s
CI / Build All Platforms (push) Successful in 1m48s
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
34cac57de8 1.2.2 2024-12-20 01:29:21 +01:00
a72227ce0d 1.2.1 2024-12-19 22:57:45 +01:00
6cc1df8bdb 1.2.0 2024-12-18 10:52:24 +01:00
875971407e 1.1.0 2024-12-18 10:51:57 +01:00
47b186ebd1 feat(core): Update package dependencies and improve API integration. 2024-12-18 10:51:57 +01:00
d306f5e184 1.0.90 2024-06-13 15:37:20 +02:00
da443d0734 fix(core): update 2024-06-13 15:37:19 +02:00
c216f167ab 1.0.89 2024-06-13 15:30:49 +02:00
3d805da0f7 fix(core): update 2024-06-13 15:30:49 +02:00
8296e79d7e 1.0.88 2024-06-13 15:20:00 +02:00
23661f60e5 fix(core): update 2024-06-13 15:19:59 +02:00
8a8e901205 1.0.87 2024-06-13 15:15:42 +02:00
4cf570afbd 1.0.86 2024-06-13 15:12:08 +02:00
8913faebde fix(core): update 2024-06-13 15:12:07 +02:00
9e523de620 1.0.85 2024-05-08 21:31:32 +02:00
02e68ebb68 1.0.84 2024-05-08 20:53:35 +02:00
4e73bf7a0e fix(core): update 2024-05-08 20:53:35 +02:00
51db49265e 1.0.83 2024-05-08 20:49:10 +02:00
1d6d056942 fix(core): update 2024-05-08 20:49:10 +02:00