2023-03-25 10:12:09 +00:00
|
|
|
# Run an individual test using the Lune CLI
|
|
|
|
run-test TEST_NAME:
|
|
|
|
cargo run -- "tests/{{TEST_NAME}}"
|
|
|
|
|
2023-03-22 13:12:05 +00:00
|
|
|
# Run tests for the Lune library
|
|
|
|
test:
|
|
|
|
cargo test --package lune -- --test-threads 1
|
|
|
|
|
|
|
|
# Run tests for the Lune CLI
|
|
|
|
test-cli:
|
|
|
|
cargo test --package lune-cli
|
2023-03-24 11:38:57 +00:00
|
|
|
|
2023-03-24 11:51:37 +00:00
|
|
|
# Generate gitbook directory
|
|
|
|
generate-gitbook:
|
|
|
|
rm -rf ./gitbook
|
|
|
|
|
|
|
|
mkdir gitbook
|
|
|
|
mkdir gitbook/docs
|
|
|
|
|
|
|
|
cp -R docs gitbook
|
2023-03-24 13:09:16 +00:00
|
|
|
cp README.md gitbook/docs/README.md
|
2023-03-24 11:51:37 +00:00
|
|
|
cp .gitbook.yaml gitbook/.gitbook.yaml
|
|
|
|
|
|
|
|
rm -rf gitbook/docs/typedefs
|
|
|
|
|
|
|
|
cargo run -- --generate-gitbook-dir
|
|
|
|
|
2023-03-24 11:38:57 +00:00
|
|
|
# Publish gitbook directory to gitbook branch
|
|
|
|
publish-gitbook:
|
2023-03-24 11:51:37 +00:00
|
|
|
npx push-dir --dir=gitbook --branch=gitbook
|