From a4c176bc53bdd8d3f032b3bf37de4eae088f2b98 Mon Sep 17 00:00:00 2001 From: Dennis Wielepsky Date: Tue, 24 Sep 2024 16:15:44 +0200 Subject: [PATCH] bootstrap task file --- Taskfile.yml | 15 +++++++++++++++ package.json | 1 + 2 files changed, 16 insertions(+) create mode 100644 Taskfile.yml diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..db0b4ba --- /dev/null +++ b/Taskfile.yml @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index e8909d5..96fd83c 100644 --- a/package.json +++ b/package.json @@ -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" },