2023-03-25 11:12:09 +01:00
|
|
|
# Run an individual test using the Lune CLI
|
|
|
|
run-test TEST_NAME:
|
2023-06-12 12:20:36 +02:00
|
|
|
cargo run -- "tests/{{TEST_NAME}}"
|
2023-03-25 11:12:09 +01:00
|
|
|
|
2023-03-27 13:00:45 +02:00
|
|
|
# Run an individual file using the Lune CLI
|
|
|
|
run-file FILE_NAME:
|
2023-06-12 12:20:36 +02:00
|
|
|
cargo run -- "{{FILE_NAME}}"
|
2023-03-27 13:00:45 +02:00
|
|
|
|
2023-03-22 14:12:05 +01:00
|
|
|
# Run tests for the Lune library
|
|
|
|
test:
|
2023-07-20 09:47:00 +02:00
|
|
|
cargo test --lib -- --test-threads 1
|
2023-03-22 14:12:05 +01:00
|
|
|
|
2023-03-24 12:51:37 +01:00
|
|
|
# Generate gitbook directory
|
|
|
|
generate-gitbook:
|
|
|
|
rm -rf ./gitbook
|
|
|
|
|
|
|
|
mkdir gitbook
|
|
|
|
mkdir gitbook/docs
|
|
|
|
|
|
|
|
cp -R docs gitbook
|
2023-03-24 14:09:16 +01:00
|
|
|
cp README.md gitbook/docs/README.md
|
2023-03-24 12:51:37 +01:00
|
|
|
cp .gitbook.yaml gitbook/.gitbook.yaml
|
|
|
|
|
|
|
|
rm -rf gitbook/docs/typedefs
|
|
|
|
|
|
|
|
cargo run -- --generate-gitbook-dir
|
|
|
|
|
2023-03-24 12:38:57 +01:00
|
|
|
# Publish gitbook directory to gitbook branch
|
2023-05-01 12:20:42 +02:00
|
|
|
publish-gitbook: generate-gitbook
|
2023-03-24 12:51:37 +01:00
|
|
|
npx push-dir --dir=gitbook --branch=gitbook
|