mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
82884348cb
This PR integrates [Malva](https://github.com/g-plane/malva) into `deno fmt`, which introduces the ability to format CSS, SCSS, Sass and Less files. On Linux x64 6.10, this PR increases about 800KiB: ``` ❯ wc -c target/release/deno 125168728 target/release/deno ❯ wc -c target/release/deno 124349456 target/release/deno ```
25 lines
566 B
Text
25 lines
566 B
Text
{
|
|
"tempDir": true,
|
|
"tests": {
|
|
"nothing": {
|
|
"args": "fmt",
|
|
"output": "Checked 1 file\n"
|
|
},
|
|
"flag": {
|
|
"args": "fmt --unstable-css",
|
|
"output": "[WILDLINE]badly_formatted.css\nChecked 1 file\n"
|
|
},
|
|
"config_file": {
|
|
"steps": [{
|
|
"args": [
|
|
"eval",
|
|
"Deno.writeTextFile('deno.json', '{\\n \"unstable\": [\"fmt-css\"]\\n}\\n')"
|
|
],
|
|
"output": "[WILDCARD]"
|
|
}, {
|
|
"args": "fmt",
|
|
"output": "[WILDLINE]badly_formatted.css\nChecked 2 files\n"
|
|
}]
|
|
}
|
|
}
|
|
}
|