move actions to package.json
This commit is contained in:
@@ -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
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user