2023-03-25 10:12:09 +00:00
|
|
|
# Run an individual test using the Lune CLI
|
|
|
|
run-test TEST_NAME:
|
2023-06-12 11:20:36 +01:00
|
|
|
cargo run -- "tests/{{TEST_NAME}}"
|
2023-03-25 10:12:09 +00:00
|
|
|
|
2023-03-27 12:00:45 +01:00
|
|
|
# Run an individual file using the Lune CLI
|
|
|
|
run-file FILE_NAME:
|
2023-06-12 11:20:36 +01:00
|
|
|
cargo run -- "{{FILE_NAME}}"
|
2023-03-27 12:00:45 +01:00
|
|
|
|
2023-03-22 13:12:05 +00:00
|
|
|
# Run tests for the Lune library
|
|
|
|
test:
|
2023-07-20 08:47:00 +01:00
|
|
|
cargo test --lib -- --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
|