|
1 | 1 | # BiomeJsBundle |
2 | 2 |
|
3 | 3 | [](https://github.com/Kocal/BiomeJsBundle/actions/workflows/ci.yaml) |
4 | | - |
| 4 | +[](https://packagist.org/packages/kocal/biome-js-bundle) |
5 | 5 |
|
6 | | -This bundle makes it easy to use [Biome.js](https://biomejs.dev/) in your Symfony project, |
7 | | -to lint and format your assets files without Node.js |
8 | | -(ex: when using Symfony's [AssetMapper Component](https://symfony.com/doc/current/frontend/asset_mapper.html)). |
| 6 | +A Symfony Bundle to easily download and use [Biome.js](https://biomejs.dev/) in your Symfony applications, |
| 7 | +to lint your front assets without needing Node.js (ex: when using [Symfony AssetMapper](https://symfony.com/doc/current/frontend/asset_mapper.html)). |
9 | 8 |
|
10 | 9 | ## Installation |
11 | 10 |
|
@@ -112,46 +111,3 @@ bin/biome --version |
112 | 111 | php bin/console biomejs:download path/to/bin |
113 | 112 | path/to/bin/biome --version |
114 | 113 | ``` |
115 | | - |
116 | | -### `biomejs:check` (deprecated) |
117 | | - |
118 | | -> [!WARNING] |
119 | | -> **Deprecated since 1.5.0** |
120 | | -> |
121 | | -> In version 2.0.0, the command `biomejs:check` will be removed. |
122 | | -> Instead, run the command `biomejs:download <version>` and use `bin/biome check`. |
123 | | - |
124 | | -> [!NOTE] |
125 | | -> This command will **not use the Biome.js CLI binary downloaded through `biomejs:download`**, |
126 | | -> but will instead automatically download another Biome.js CLI binary 1.x.x through the **legacy downloading system**. |
127 | | - |
128 | | -Run formatter, linter, and import sorting to the requested files. |
129 | | - |
130 | | -```shell |
131 | | -# Shows format and lint errors |
132 | | -php bin/console biomejs:check . |
133 | | -
|
134 | | -# Shows format and lint errors, and fix them if possible |
135 | | -php bin/console biomejs:check . --write |
136 | | -``` |
137 | | - |
138 | | -### `biomejs:ci` (deprecated) |
139 | | - |
140 | | -> [!WARNING] |
141 | | -> **Deprecated since 1.5.0** |
142 | | -> |
143 | | -> In version 2.0.0, the command `biomejs:ci` will be removed. |
144 | | -> Instead, run the command `biomejs:download <version>` and use `bin/biome ci`. |
145 | | - |
146 | | -> [!NOTE] |
147 | | -> This command will **not use the Biome.js CLI binary downloaded through `biomejs:download`**, |
148 | | -> but will instead automatically download another Biome.js CLI binary 1.x.x through the **legacy downloading system**. |
149 | | - |
150 | | -Command to use in CI environments. Run formatter, linter, and import sorting to the requested files. |
151 | | - |
152 | | -Files won't be modified, the command is a read-only operation. |
153 | | - |
154 | | -```shell |
155 | | -# Shows format and lint errors |
156 | | -php bin/console biomejs:ci . |
157 | | -``` |
0 commit comments