@@ -3,9 +3,8 @@ _default:
33
44alias f := format
55alias t := test
6- # alias r := ready
6+ alias r := ready
77alias l := lint
8- # alias qt := test-quick
98
109# Installs the tools needed to develop
1110install-tools :
@@ -17,19 +16,6 @@ upgrade-tools:
1716 cargo install cargo-binstall --force
1817 cargo binstall cargo-insta taplo-cli --force
1918
20- # Generate all files across crates and tools. You rarely want to use it locally.
21- gen-all :
22- cargo run -p xtask_codegen -- all
23- # cargo codegen-configuration
24- # cargo codegen-migrate
25- # just gen-bindings
26- # just format
27-
28- # Generates TypeScript types and JSON schema of the configuration
29- # gen-bindings:
30- # cargo codegen-schema
31- # cargo codegen-bindings
32-
3319# Generates code generated files for the linter
3420gen-lint :
3521 cargo run -p xtask_codegen -- analyser
@@ -39,22 +25,12 @@ gen-lint:
3925 cargo run -p rules_check
4026 just format
4127
42- # Generates the linter documentation and Rust documentation
43- # documentation:
44- # RUSTDOCFLAGS='-D warnings' cargo documentation
45-
4628# Creates a new lint rule in the given path, with the given name. Name has to be camel case. Group should be lowercase.
4729new-lintrule group rulename :
4830 cargo run -p xtask_codegen -- new-lintrule --category=lint --name={{ rulename}} --group={{ group}}
4931 just gen-lint
5032 # just documentation
5133
52- # Creates a new lint rule in the given path, with the given name. Name has to be camel case.
53- # new-assistrule rulename:
54- # cargo run -p xtask_codegen -- new-lintrule --kind=js --category=assist --name={{rulename}}
55- # just gen-lint
56- # just documentation
57-
5834# Format Rust files and TOML files
5935format :
6036 cargo fmt
@@ -80,27 +56,6 @@ test-crate name:
8056test-doc :
8157 cargo test --doc
8258
83- # Tests a lint rule. The name of the rule needs to be camel case
84- # test-lintrule name:
85- # just _touch crates/biome_js_analyze/tests/spec_tests.rs
86- # just _touch crates/biome_json_analyze/tests/spec_tests.rs
87- # just _touch crates/biome_css_analyze/tests/spec_tests.rs
88- # just _touch crates/biome_graphql_analyze/tests/spec_tests.rs
89- # cargo test -p biome_js_analyze -- {{snakecase(name)}} --show-output
90- # cargo test -p biome_json_analyze -- {{snakecase(name)}} --show-output
91- # cargo test -p biome_css_analyze -- {{snakecase(name)}} --show-output
92- # cargo test -p biome_graphql_analyze -- {{snakecase(name)}} --show-output
93-
94- # Tests a lint rule. The name of the rule needs to be camel case
95- # test-transformation name:
96- # just _touch crates/biome_js_transform/tests/spec_tests.rs
97- # cargo test -p biome_js_transform -- {{snakecase(name)}} --show-output
98-
99- # Run the quick_test for the given package.
100- # test-quick package:
101- # cargo test -p {{package}} --test quick_test -- quick_test --nocapture --ignored
102-
103-
10459# Alias for `cargo clippy`, it runs clippy on the whole codebase
10560lint :
10661 cargo clippy
@@ -110,16 +65,14 @@ lint-fix:
11065 cargo clippy --fix
11166 cargo run -p rules_check
11267
113- # When you finished coding, run this command to run the same commands in the CI.
114- # ready:
115- # git diff --exit-code --quiet
116- # just gen-all
117- # just documentation
118- # #just format # format is already run in `just gen-all`
119- # just lint
120- # just test
121- # just test-doc
122- # git diff --exit-code --quiet
68+ # When you finished coding, run this command. Note that you should have already committed your changes.
69+ ready :
70+ git diff --exit-code --quiet
71+ cargo run -p xtask_codegen -- configuration
72+ cargo run -p docs_codegen
73+ just lint-fix
74+ just format
75+ git diff --exit-code --quiet
12376
12477# Creates a new crate
12578new-crate name :
@@ -130,14 +83,6 @@ new-crate name:
13083tree-print file :
13184 cargo run --bin tree_print -- -f {{ file}}
13285
133- # Creates a new changeset for the final changelog
134- # new-changeset:
135- # knope document-change
136-
137- # Dry-run of the release
138- # dry-run-release *args='':
139- # knope release --dry-run {{args}}
140-
14186clear-branches :
14287 git branch --merged | egrep -v " (^\\ *|main)" | xargs git branch -d
14388
0 commit comments