bootstrap task file

This commit is contained in:
Dennis Wielepsky
2024-09-24 16:15:44 +02:00
parent 55973a978d
commit a4c176bc53
2 changed files with 16 additions and 0 deletions

15
Taskfile.yml Normal file
View File

@@ -0,0 +1,15 @@
version: '3'
tasks:
world:
aliases: [ default ]
cmds:
- task: clean
- task: test
- task: build
run-local: ./run-local.sh
clean: npm run clean
test: npm run test
build: npm run build

View File

@@ -4,6 +4,7 @@
"description": "mirror all your public github repositories to your gitea server",
"main": "index.cjs",
"scripts": {
"clean": "rm -rf dist/",
"build": "esbuild src/index.cjs --bundle --outdir=dist/ --platform=node",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
},