https://github.com/spinspire/zx-scripting
https://github.com/spinspire/zx-scripting
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/spinspire/zx-scripting
- Owner: spinspire
- Created: 2023-10-08T17:32:24.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-09T03:17:18.000Z (almost 2 years ago)
- Last Synced: 2025-02-05T13:39:33.869Z (5 months ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ZX Scripting Template + Example
_This repo is a template based on [This DEV article](https://dev.to/zauni/create-a-zx-nodejs-script-as-binary-with-pkg-5abf)._
## Description
This is a template for using javascript to create complex CLI tools / games that can be packaged into a single binary that can be run on most systems (**Even systems that dont have node!** ).
## How to Use
A simple example has already been included at [src/index.ts](./src/index.ts). To package your script simply:
`npm run build`
A script will be generated specifically for your system, to change what system the script is designed for change the package script according to [the pkg npm package](https://github.com/vercel/pkg#targets)
Once created you can run your script:`./dist/start`
Happy scripting!