widget static resources are now built locally

This commit is contained in:
realaravinth
2021-07-07 00:28:32 +05:30
parent 5d55971f19
commit bfebca6e0e
36 changed files with 2086 additions and 168 deletions

View File

@@ -1,29 +1,45 @@
default: frontend
cargo build
run: frontend-dev
run: frontend
cargo run
dev-env:
cargo fetch
yarn install
docs:
doc:
#yarn doc
cargo doc --no-deps --workspace --all-features
frontend-dev:
yarn build
cd browser && cargo doc --no-deps --workspace --all-features
frontend:
cd browser && wasm-pack build --release
yarn install
yarn build
test: migrate
cargo test
test: migrations
cd browser && wasm-pack test --release --headless --chrome
cd browser && wasm-pack test --release --headless --firefox
cargo test --all --all-features --no-fail-fast
${MAKE} frontend-test
xml-test-coverage: migrate
frontend-test:
cd browser && wasm-pack test --release --headless --chrome
cd browser && wasm-pack test --release --headless --firefox
yarn test
a:
echo a
b:
${MAKE} a
xml-test-coverage: migrations
cd browser && cargo tarpaulin -t 1200 --out Xml
cargo tarpaulin -t 1200 --out Xml
coverage: migrate
coverage: migrations
cd browser && cargo tarpaulin -t 1200 --out Html
cargo tarpaulin -t 1200 --out Html
release: frontend
@@ -35,13 +51,12 @@ clean:
docker-build:
docker build -t mcaptcha/mcaptcha:master -t mcaptcha/mcaptcha:latest .
docker-publish: docker-build
docker push mcaptcha/mcaptcha:master
docker push mcaptcha/mcaptcha:latest
migrate:
migrations:
cargo run --bin tests-migrate
help:
@@ -50,10 +65,10 @@ help:
@echo ' dev-env - download dependencies'
@echo ' docker-build - build docker image'
@echo ' docker-publish - build and publish docker image'
@echo ' docs - build documentation'
@echo ' frontend-dev - build static assets in dev mode'
@echo ' doc - build documentation'
@echo ' frontend - build static assets in prod mode'
@echo ' migrate - run database migrations'
@echo ' frontend-test - run frontend tests'
@echo ' migrations - run database migrations'
@echo ' run - run developer instance'
@echo ' test - run unit and integration tests'
@echo ' xml-coverage - build test coverage in XML for upload to codecov'