2022-12-05 13:32:36 +01:00
|
|
|
default:
|
|
|
|
@just --list
|
|
|
|
|
|
|
|
# build the library
|
|
|
|
build:
|
|
|
|
cargo build
|
|
|
|
|
2022-12-05 14:42:34 +01:00
|
|
|
# regenerate test snapshots
|
|
|
|
snapshot:
|
|
|
|
cargo run --bin snapshot
|
|
|
|
|
2022-12-05 13:32:36 +01:00
|
|
|
# detect linting problems.
|
|
|
|
lint:
|
|
|
|
cargo fmt --all -- --check
|
|
|
|
cargo clippy
|
|
|
|
|
|
|
|
# fix linting problems.
|
|
|
|
fix:
|
|
|
|
cargo fmt
|
|
|
|
cargo clippy --fix --allow-dirty --allow-staged
|
|
|
|
|
|
|
|
# dump AST for the given file.
|
2022-12-07 09:01:54 +01:00
|
|
|
dump file:
|
2022-12-05 13:32:36 +01:00
|
|
|
cargo run --bin php-parser-rs -- {{file}}
|
|
|
|
|
|
|
|
# run all integration tests, except third-party.
|
2022-12-07 09:01:54 +01:00
|
|
|
test filter='':
|
2022-12-05 13:32:36 +01:00
|
|
|
cargo test --all {{filter}} -- --skip third_party
|
|
|
|
|
2022-12-07 09:26:36 +01:00
|
|
|
# run integration tests for `azjezz/psl` library.
|
|
|
|
test-psl:
|
|
|
|
cargo test php_standard_library -- --nocapture
|
|
|
|
|
|
|
|
# run integration tests for `nikic/php-parser` library.
|
|
|
|
test-php-parser:
|
|
|
|
cargo test nikic_php_parser -- --nocapture
|
|
|
|
|
|
|
|
# run integration tests for `symfony/symfony` framework.
|
|
|
|
test-symfony:
|
|
|
|
cargo test symfony_framework -- --nocapture
|
|
|
|
|
|
|
|
# run integration tests for `laravel/framework` framework.
|
|
|
|
test-laravel:
|
|
|
|
cargo test laravel_framework -- --nocapture
|