51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# WIP
|
|
default: frontend
|
|
cargo build
|
|
|
|
run: frontend-dev
|
|
cargo run
|
|
|
|
dev-env:
|
|
cargo fetch
|
|
yarn install
|
|
|
|
docs:
|
|
cargo doc --no-deps --workspace --all-features
|
|
|
|
frontend-dev:
|
|
yarn start
|
|
|
|
frontend:
|
|
yarn build
|
|
|
|
test: migrate
|
|
cargo test
|
|
|
|
xml-test-coverage: migrate
|
|
cargo tarpaulin -t 1200 --out Xml
|
|
|
|
coverage: migrate
|
|
cargo tarpaulin -t 1200 --out Html
|
|
|
|
release: frontend
|
|
cargo build --release
|
|
|
|
clean:
|
|
cargo clean
|
|
yarn clean
|
|
|
|
migrate:
|
|
cargo run --bin tests-migrate
|
|
|
|
help:
|
|
@echo ' run - run developer instance'
|
|
@echo ' test - run unit and integration tests'
|
|
@echo ' frontend-dev - build static assets in dev mode'
|
|
@echo ' frontend - build static assets in prod mode'
|
|
@echo ' migrate - run database migrations'
|
|
@echo ' dev-env - download dependencies'
|
|
@echo ' docs - build documentation'
|
|
@echo ' clean - drop builds and environments'
|
|
@echo ' coverage - build test coverage in HTML format'
|
|
@echo ' xml-coverage - build test coverage in XML for upload to codecov'
|
|
@echo ''
|