From 37fcd2c158a77c13ee52bff548d62e3b7d898c30 Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 17 Jul 2023 16:42:03 -0300 Subject: [PATCH] borrar tool --- .woodpecker.yml | 6 +++--- package.json | 6 +++--- tool | 28 ---------------------------- 3 files changed, 6 insertions(+), 34 deletions(-) delete mode 100755 tool diff --git a/.woodpecker.yml b/.woodpecker.yml index 155075d..de71d24 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,15 +6,15 @@ pipeline: check: image: gitea.nulo.in/nulo/super-image:3.18 commands: - - ./tool check + - pnpm check when: path: include: ["*.js", "*.ts", "package.json", "pnpm-lock.yaml", "tsconfig.json"] build: image: gitea.nulo.in/nulo/super-image:3.18 commands: - - ./tool refresh_feeds - - ./tool build + - pnpm refresh-feeds + - pnpm build upload: image: gitea.nulo.in/nulo/super-image:3.18 commands: diff --git a/package.json b/package.json index 9883eaf..db5f55f 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,9 @@ "description": "", "main": "index.js", "scripts": { - "build-ts": "./tool build_ts", - "build": "./tool build", - "check": "./tool check" + "build": "esbuild compilar.ts --target=node18 --outdir=build.js --sourcemap && cp *.js build.js/ && node --enable-source-maps --trace-uncaught build.js/compilar.js", + "check": "tsc", + "refresh-feeds": "node feeds.js refresh" }, "keywords": [], "author": "", diff --git a/tool b/tool deleted file mode 100755 index d0b724f..0000000 --- a/tool +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -build_ts() { - ./node_modules/.bin/esbuild compilar.ts --target=node18 --outdir=build.js --sourcemap || exit $? - cp *.js build.js/ -} -build() { - build_ts - node --enable-source-maps --trace-uncaught build.js/compilar.js || exit $? -} -check() { - ./node_modules/.bin/tsc --noEmit || exit $? -} -refresh_feeds() { - node feeds.js refresh -} - -fatal() { - echo "$1" - exit 1 -} - -test "$1" = build_ts \ - -o "$1" = build \ - -o "$1" = check \ - -o "$1" = refresh_feeds \ - || fatal "Comando no vĂ¡lido" -"$1"