Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish cli in npm using wasmoon #70

Open
4 tasks
RodrigoDornelles opened this issue Sep 14, 2024 · 0 comments
Open
4 tasks

publish cli in npm using wasmoon #70

RodrigoDornelles opened this issue Sep 14, 2024 · 0 comments
Labels
Core Team responsibility for project maintainers.

Comments

@RodrigoDornelles
Copy link
Member

RodrigoDornelles commented Sep 14, 2024

a name has yet to be defined, but a structure for publication via CD can now be created.

  • shebang #!/usr/bin/env -S npx demoon
  • build command: ./cli.sh bundler src/cli/main.lua --dist ./bin/
  • pre-build command: rm LICENSE and mkdir bin
  • binary write with Buffer.from

npm ignore:

cli.sh
Doxyfile
src/cli/
src/lib/cli/
examples/
  • npm cli
{
   "name": "@gamely/gly-cli",
   "version": "1.0.15",
   "author": "RodrigoDornelles",
   "license": "Apache-2.0",
   "homepage": "https://doxygen-engine.pages.dev/",
   "repository": "github:gamely/gly-cli",
   "funding": "https://github.com/sponsors/RodrigoDornelles",
   "bugs": "https://github.com/gamely/gly-cli/issues",
   "description": "A Lua-based command-line interface for managing GLY game engine projects.",
   "keywords": [
    "game engine",
    "game",
    "engine",
    "lua",
    "webassembly"
   ],
   "main": "bin/gly-cli",
   "bin": {
       "gly-cli": "bin/gly-cli"
   },
   "scripts": {
       "step1": "npx demoon cli.lua compile cli.lua",
       "step2": "echo '#!/usr/bin/env -S npx demoon' > header.txt && mkdir -p bin",
       "step3": "cat header.txt cli.lua.out > bin/gly-cli && chmod +x bin/gly-cli",
       "step4": "rm -f package-lock.json cli.lua cli.lua.out header.txt",
       "build": "npm run step1 && npm run step2 && npm run step3 && npm run step4"
   },
   "dependencies": {
       "demoon": "0.0.9"
   }
}
@RodrigoDornelles RodrigoDornelles added the Core Team responsibility for project maintainers. label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Team responsibility for project maintainers.
Projects
None yet
Development

No branches or pull requests

1 participant