move actions to package.json

This commit is contained in:
David Ventura
2024-04-26 10:32:56 +02:00
parent 04baa7ad9a
commit e77a3c27fe
2 changed files with 5 additions and 4 deletions
+2 -3
View File
@@ -9,9 +9,8 @@ venv: requirements.txt
touch venv touch venv
build: node_modules build: node_modules
./node_modules/.bin/tsc npm run tsc
./node_modules/.bin/esbuild cmd/bin.ts --bundle --platform=node --outfile=dist/bin.cjs --target=node12 npm run build
tar czf build.tar.gz build package.json
run: node_modules run: node_modules
./node_modules/.bin/ts-node --esm cmd/bin http_server --port=1234 ./node_modules/.bin/ts-node --esm cmd/bin http_server --port=1234
+3 -1
View File
@@ -1,7 +1,9 @@
{ {
"type": "module", "type": "module",
"scripts": { "scripts": {
"test": "mocha tests" "test": "mocha tests",
"tsc": "tsc",
"build": "esbuild cmd/bin.ts --bundle --platform=node --outfile=dist/bin.cjs --target=node12"
}, },
"devDependencies": { "devDependencies": {
"@types/yargs": "^17.0.32", "@types/yargs": "^17.0.32",