From 48880a469b3f093f20c2ea52f3d5936c38a0c71f Mon Sep 17 00:00:00 2001 From: jusax23 Date: Tue, 8 Nov 2022 20:54:09 +0100 Subject: [PATCH] test --- .woodpecker.yml | 5 ++--- package.json | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 76c80d0..6ff7a43 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,12 +5,11 @@ pipeline: build: image: node:18-alpine commands: - - apk update - apk add git - - npm update - npm install - mkdir build - - npm run build + - npx esbuild stear/main.js --jsx-factory=s --loader:.js=jsx --loader:.html=text --bundle --minify --outfile=stear.min.js + - npx esbuild stear/main.js --jsx-factory=s --loader:.js=jsx --loader:.html=text --bundle --outfile="staer.js" - ls build - npx gitea-release "https://jusax.de/git/api/v1/" "$${GITEA_TOKEN}" "$${CI_REPO}" "$${CI_COMMIT_BRANCH}" "$${CI_COMMIT_TAG}" "build" "$${CI_COMMIT_MESSAGE}" secrets: [ gitea_token ] \ No newline at end of file diff --git a/package.json b/package.json index af1c117..184ead5 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,7 @@ "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "serveMenu": "esbuild example/menu/index.js --jsx-factory=s --loader:.js=jsx --loader:.html=text --bundle --minify --servedir=example/menu #--sourcemap", - "build": "esbuild stear/main.js --jsx-factory=s --loader:.js=jsx --loader:.html=text --bundle --minify --outdir=build", - "te": "gitea-release" + "serveMenu": "esbuild example/menu/index.js --jsx-factory=s --loader:.js=jsx --loader:.html=text --bundle --minify --servedir=example/menu #--sourcemap" }, "repository": { "type": "git",