@gamely/gly-cli
Version:
A Lua-based command-line interface for managing GLY game engine projects.
44 lines (43 loc) • 2.17 kB
JSON
{
"name": "@gamely/gly-cli",
"version": "0.2.4",
"author": "RodrigoDornelles",
"license": "Apache-2.0",
"homepage": "https://docs.gamely.com.br",
"repository": "https://github.com/gly-engine/gly-engine",
"funding": "https://github.com/sponsors/RodrigoDornelles",
"bugs": "https://github.com/gly-engine/gly-engine/issues",
"description": "A Lua-based command-line interface for managing GLY game engine projects.",
"keywords": [
"game engine",
"game",
"engine",
"lua",
"love",
"cli",
"tizen",
"webos",
"webassembly"
],
"bin": {
"gly-cli": "bin/cli.js"
},
"scripts": {
"step1": "cd ../.. && node cli.js cli-build",
"step2": "cd ../.. && node cli.js compile dist/cli.lua --outfile dist/cli.out",
"step3": "cd ../.. && node -e \"require('fs').writeFileSync('dist/cli.txt', require('zlib').deflateRawSync(require('fs').readFileSync('dist/cli.out'),{level:9,memLevel:9}).toString('base64'))\"",
"step4": "cd ../.. && npx bun build --entrypoint npm/gly-cli/src/cli.ts --target node --format cjs --outfile dist/cli.js --minify",
"step5": "cd ../.. && echo '#!/usr/bin/env node' > dist/cli.header && mkdir -p dist/bin && cat dist/cli.header dist/cli.js > dist/bin/cli.js && rm dist/cli.*",
"step6": "cd ../.. && node cli.js meta source/cli/main.lua --infile npm/gly-cli/package.json --outfile dist/package.json",
"step7": "cd ../.. && node cli.js fs-replace README.md ./dist/README.md --format 'lua cli.lua' --replace 'npx gly-cli'",
"step8": "cd ../.. && node cli.js fs-replace ./dist/README.md ./dist/README.md --format '%[%<img [^\n]*' --replace ''",
"step9": "cd ../.. && chmod +x dist/bin/cli.js",
"build": "npm run step1 && npm run step2 && npm run step3 && npm run step4 && npm run step5 && npm run step6 && npm run step7 && npm run step8 && npm run step9"
},
"devDependencies": {
"bun": "*",
"npm": "*",
"@types/node": "*",
"fengari": "github:fengari-lua/fengari#6a8908380a9b5fc3a8f0fe1e9c1b79ce5dba9312"
}
}