This commit is contained in:
parent
6531454724
commit
48880a469b
2 changed files with 3 additions and 6 deletions
|
@ -5,12 +5,11 @@ pipeline:
|
||||||
build:
|
build:
|
||||||
image: node:18-alpine
|
image: node:18-alpine
|
||||||
commands:
|
commands:
|
||||||
- apk update
|
|
||||||
- apk add git
|
- apk add git
|
||||||
- npm update
|
|
||||||
- npm install
|
- npm install
|
||||||
- mkdir build
|
- 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
|
- 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}"
|
- 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 ]
|
secrets: [ gitea_token ]
|
|
@ -9,9 +9,7 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"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",
|
"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"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in a new issue