chore, ci: add webext, jslib to taskfile

feat/type-attributes
Tomáš Mládek 2023-05-21 21:33:39 +02:00
parent 95efedb00f
commit 3fd29a962e
1 changed files with 25 additions and 1 deletions

View File

@ -51,7 +51,7 @@ tasks:
- cargo nextest run --workspace
build:
deps: [build:frontend, build:backend]
deps: [build:frontend, build:backend, build:webext]
build:backend:
dir: cli
@ -88,6 +88,30 @@ tasks:
- yarn add ../tools/upend_js
- yarn install --immutable
build:webext:
deps: [setup:webext, build:jslib]
dir: webext
sources:
- ./**/*.ts
- ./**/*.svelte
cmds:
- yarn build
setup:webext:
dir: webext
sources:
- ../tools/upend_js/*.js
- package.lock
cmds:
- yarn add ../tools/upend_js
- yarn install --immutable
dev:update_tool_deps:
cmds:
- task: build:jslib
- cd webui && yarn add ../tools/upend_js && cd ..
- cd webext && yarn add ../tools/upend_js && cd ..
dev:
deps: [dev:backend, dev:frontend]