lune/.justfile

31 lines
677 B
Makefile
Raw Normal View History

# Run an individual test using the Lune CLI
run-test TEST_NAME:
cargo run -- "tests/{{TEST_NAME}}"
# Run an individual file using the Lune CLI
run-file FILE_NAME:
cargo run -- "{{FILE_NAME}}"
2023-03-22 13:12:05 +00:00
# Run tests for the Lune library
test:
cargo test --package lune -- --test-threads 1
2023-03-22 13:12:05 +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
2023-05-01 11:20:42 +01:00
publish-gitbook: generate-gitbook
2023-03-24 11:51:37 +00:00
npx push-dir --dir=gitbook --branch=gitbook