2021-04-08 13:19:55 +03:00
|
|
|
# WIP
|
|
|
|
default: build-frontend
|
|
|
|
cargo build
|
|
|
|
|
2021-05-01 12:11:22 +03:00
|
|
|
run: build-frontend-dev
|
2021-04-08 13:19:55 +03:00
|
|
|
cargo run
|
|
|
|
|
|
|
|
dev-env:
|
|
|
|
cargo fetch
|
2021-04-09 11:51:43 +03:00
|
|
|
yarn install
|
2021-04-08 13:19:55 +03:00
|
|
|
|
|
|
|
docs:
|
|
|
|
cargo doc --no-deps --workspace --all-features
|
|
|
|
|
2021-04-09 12:33:50 +03:00
|
|
|
build-frontend-dev:
|
|
|
|
yarn start
|
|
|
|
|
2021-04-08 13:19:55 +03:00
|
|
|
build-frontend:
|
2021-04-09 11:51:43 +03:00
|
|
|
yarn build
|
2021-04-08 13:19:55 +03:00
|
|
|
|
|
|
|
test: migrate
|
|
|
|
cargo test
|
|
|
|
|
|
|
|
xml-test-coverage: migrate
|
|
|
|
cargo tarpaulin -t 1200 --out Xml
|
|
|
|
|
|
|
|
coverage: migrate
|
|
|
|
cargo tarpaulin -t 1200 --out Html
|
|
|
|
|
|
|
|
release: build-frontend
|
|
|
|
cargo build --release
|
|
|
|
|
|
|
|
clean:
|
|
|
|
cargo clean
|
|
|
|
yarn clean
|
|
|
|
|
|
|
|
migrate:
|
|
|
|
cargo run --bin tests-migrate
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo ' docs - build documentation'
|
|
|
|
@echo ' run - run developer instance'
|
|
|
|
@echo ' test - run unit and integration tests'
|
|
|
|
@echo ' migrate - run database migrations'
|
|
|
|
@echo ' dev-env - download dependencies'
|
|
|
|
@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 ''
|