move pow wasm lib out to a separate repo

This commit is contained in:
realaravinth
2021-12-01 21:18:30 +05:30
parent 41b99c1019
commit ab77eed91c
25 changed files with 33 additions and 8075 deletions

View File

@@ -4,19 +4,16 @@ default: frontend ## Build app in debug mode
clean: ## Delete build artifacts
@cargo clean
@yarn cache clean
@-rm -rf browser/pkg
@-rm ./src/cache_buster_data.json
@-rm -rf ./static/cache/bundle
@-rm -rf ./assets
coverage: migrate ## Generate code coverage report in HTML format
cd browser && cargo tarpaulin -t 1200 --out Html
cargo tarpaulin -t 1200 --out Html
doc: ## Generate documentation
#yarn doc
cargo doc --no-deps --workspace --all-features
cd browser && cargo doc --no-deps --workspace --all-features
docker: ## Build Docker image
docker build -t mcaptcha/mcaptcha:master -t mcaptcha/mcaptcha:latest .
@@ -27,22 +24,17 @@ docker-publish: docker ## Build and publish Docker image
env: ## Setup development environtment
cargo fetch
cd browser && wasm-pack build --release
yarn install
cd docs/openapi && yarn install
frontend: env ## Build frontend
cd docs/openapi/ && yarn build
cd browser && wasm-pack build --release
yarn install
yarn build
@./scripts/librejs.sh
frontend-test: ## Run frontend tests
cd browser && wasm-pack test --release --headless --chrome
cd browser && wasm-pack test --release --headless --firefox
cd docs/openapi && yarn test
cd browser && cargo test
yarn test
lint: ## Lint codebase
@@ -66,7 +58,6 @@ test: frontend-test frontend ## Run all available tests
cargo test --all-features --no-fail-fast
xml-test-coverage: migrate ## Generate code coverage report in XML format
cd browser && cargo tarpaulin -t 1200 --out Xml
cargo tarpaulin -t 1200 --out Xml
help: ## Prints help for targets with comments