Fix plugin and upgrade frontend [ALL]
This commit is contained in:
parent
49816e8659
commit
5061f593dd
|
@ -4,18 +4,33 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- cd frontend
|
- cd frontend
|
||||||
- npm install --save-dev
|
- npm install --save-dev
|
||||||
|
when:
|
||||||
|
path:
|
||||||
|
include:
|
||||||
|
- frontend/*
|
||||||
|
- .woodpecker/frontend.yml
|
||||||
eslint:
|
eslint:
|
||||||
image: node:alpine
|
image: node:alpine
|
||||||
commands:
|
commands:
|
||||||
- cd frontend
|
- cd frontend
|
||||||
- npm run lint
|
- npm run lint
|
||||||
group: build
|
group: build
|
||||||
|
when:
|
||||||
|
path:
|
||||||
|
include:
|
||||||
|
- frontend/*
|
||||||
|
- .woodpecker/frontend.yml
|
||||||
svelte:
|
svelte:
|
||||||
image: node:alpine
|
image: node:alpine
|
||||||
commands:
|
commands:
|
||||||
- cd frontend
|
- cd frontend
|
||||||
- npm run build
|
- npm run build
|
||||||
group: build
|
group: build
|
||||||
|
when:
|
||||||
|
path:
|
||||||
|
include:
|
||||||
|
- frontend/*
|
||||||
|
- .woodpecker/frontend.yml
|
||||||
docker build:
|
docker build:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -32,6 +32,6 @@
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@game-algorithms/o-x-rust": "^0.0.9"
|
"@game-algorithms/o-x-rust": "^0.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ if [[ "${PLUGIN_ACTIONS}" =~ '(^|,)build(,|$)' ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${PLUGIN_ACTTIONS}" =~ '(^|,)test(,|$)' ]]; then
|
if [[ "${PLUGIN_ACTIONS}" =~ '(^|,)test(,|$)' ]]; then
|
||||||
wasm-pack test --node
|
wasm-pack test --node
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue