From 5061f593ddb9f92593b099112bd24091c0e2bd02 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Tue, 9 Aug 2022 09:41:51 +0000 Subject: [PATCH] Fix plugin and upgrade frontend [ALL] --- .woodpecker/frontend.yml | 15 +++++++++++++++ frontend/package.json | 2 +- tools/wasm-pack-plugin/plugin.sh | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.woodpecker/frontend.yml b/.woodpecker/frontend.yml index 84f60fa..ec2c53e 100644 --- a/.woodpecker/frontend.yml +++ b/.woodpecker/frontend.yml @@ -4,18 +4,33 @@ pipeline: commands: - cd frontend - npm install --save-dev + when: + path: + include: + - frontend/* + - .woodpecker/frontend.yml eslint: image: node:alpine commands: - cd frontend - npm run lint group: build + when: + path: + include: + - frontend/* + - .woodpecker/frontend.yml svelte: image: node:alpine commands: - cd frontend - npm run build group: build + when: + path: + include: + - frontend/* + - .woodpecker/frontend.yml docker build: image: plugins/docker settings: diff --git a/frontend/package.json b/frontend/package.json index b72edca..bc214ed 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -32,6 +32,6 @@ }, "type": "module", "dependencies": { - "@game-algorithms/o-x-rust": "^0.0.9" + "@game-algorithms/o-x-rust": "^0.1.0" } } diff --git a/tools/wasm-pack-plugin/plugin.sh b/tools/wasm-pack-plugin/plugin.sh index a5f207a..3aa3445 100755 --- a/tools/wasm-pack-plugin/plugin.sh +++ b/tools/wasm-pack-plugin/plugin.sh @@ -35,7 +35,7 @@ if [[ "${PLUGIN_ACTIONS}" =~ '(^|,)build(,|$)' ]]; then fi fi -if [[ "${PLUGIN_ACTTIONS}" =~ '(^|,)test(,|$)' ]]; then +if [[ "${PLUGIN_ACTIONS}" =~ '(^|,)test(,|$)' ]]; then wasm-pack test --node fi