update Makefile (fix CI ui build?)
parent
a8d4d58ee4
commit
1c8f35f6d0
16
Makefile
16
Makefile
|
@ -14,9 +14,12 @@ backend: target/release/upend
|
||||||
target/release/upend:
|
target/release/upend:
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
|
tools_upend_js:
|
||||||
|
cd tools/upend_js && yarn install && yarn build
|
||||||
|
|
||||||
frontend: ui/dist/index.html
|
frontend: ui/dist/index.html
|
||||||
|
|
||||||
ui/dist/index.html:
|
ui/dist/index.html: tools_upend_js
|
||||||
cd ui && yarn install && yarn build
|
cd ui && yarn install && yarn build
|
||||||
|
|
||||||
lint: backend_lint frontend_lint
|
lint: backend_lint frontend_lint
|
||||||
|
@ -24,18 +27,15 @@ lint: backend_lint frontend_lint
|
||||||
backend_lint:
|
backend_lint:
|
||||||
cargo clippy
|
cargo clippy
|
||||||
|
|
||||||
frontend_lint: ui/node_modules
|
frontend_lint:
|
||||||
cd ui && yarn lint
|
cd ui && yarn instlal && yarn lint
|
||||||
|
|
||||||
backend_test:
|
backend_test:
|
||||||
cargo test --workspace --verbose
|
cargo test --workspace --verbose
|
||||||
|
|
||||||
ui/node_modules:
|
|
||||||
cd ui && yarn install
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -r target
|
rm -vr target
|
||||||
rm -r ui/node_modules ui/dist
|
rm -vr ui/dist
|
||||||
|
|
||||||
update_schema:
|
update_schema:
|
||||||
rm -f upend.sqlite3
|
rm -f upend.sqlite3
|
||||||
|
|
Loading…
Reference in New Issue