Commit Graph

7 Commits

Author SHA1 Message Date
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
da4b5ff9a3 docs: Create comprehensive Deno-based readme
All checks were successful
CI / Type Check & Lint (push) Successful in 9s
CI / Build Test (Current Platform) (push) Successful in 21s
CI / Build All Platforms (push) Successful in 1m53s
- Updated installation instructions for binary distribution
- Removed all npm/Node.js references
- Added detailed CLI command reference
- Included programmatic usage examples
- Added architecture diagrams
- Added troubleshooting section
- Added emojis for modern appeal
- Documented Deno development workflow
- Kept legal section up to date
2025-10-23 23:25:01 +00:00
da443d0734 fix(core): update 2024-06-13 15:37:19 +02:00
3d805da0f7 fix(core): update 2024-06-13 15:30:49 +02:00
23661f60e5 fix(core): update 2024-06-13 15:19:59 +02:00
4e73bf7a0e fix(core): update 2024-05-08 20:53:35 +02:00
1d6d056942 fix(core): update 2024-05-08 20:49:10 +02:00