mCaptcha/Makefile

52 lines
1.1 KiB
Makefile
Raw Normal View History

2021-04-08 15:49:55 +05:30
# WIP
2021-05-03 20:24:03 +05:30
default: frontend
2021-04-08 15:49:55 +05:30
cargo build
2021-05-03 20:24:03 +05:30
run: frontend-dev
2021-04-08 15:49:55 +05:30
cargo run
dev-env:
cargo fetch
2021-04-09 14:21:43 +05:30
yarn install
2021-04-08 15:49:55 +05:30
docs:
cargo doc --no-deps --workspace --all-features
2021-05-03 20:24:03 +05:30
frontend-dev:
yarn build
2021-04-09 15:03:50 +05:30
2021-05-03 20:24:03 +05:30
frontend:
2021-04-09 14:21:43 +05:30
yarn build
2021-04-08 15:49:55 +05:30
test: migrate
cargo test
xml-test-coverage: migrate
cargo tarpaulin -t 1200 --out Xml
coverage: migrate
cargo tarpaulin -t 1200 --out Html
2021-05-03 20:24:03 +05:30
release: frontend
2021-04-08 15:49:55 +05:30
cargo build --release
clean:
cargo clean
yarn clean
migrate:
cargo run --bin tests-migrate
help:
2021-05-03 20:24:03 +05:30
@echo ' run - run developer instance'
@echo ' test - run unit and integration tests'
2021-05-04 10:30:22 +05:30
@echo ' frontend-dev - build static assets in dev mode'
@echo ' frontend - build static assets in prod mode'
2021-05-03 20:24:03 +05:30
@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'
2021-04-08 15:49:55 +05:30
@echo ''