First, navigate into your project folder:
Now, create a Rome configuration for your project. When prompted, use the recommended settings:
What did we do?
rome init with the recommended settings creates a Rome
rome.json, which looks like this:
This file tells
rome that it should be at least version 0.0.52
in order to work with your project, and that it should lint your code.
If you want to disable linting or apply advanced settings, see
rome init documentation.
Running your code
rome run command will run whatever file is passed to
it. Use this command with your project's main file, for example:
Rome is still under active development and may not be able to properly
process all source files. If you are able to run a file with
rome, please create an issue
This command will compile a file with a set of default transforms. There is currently no options for this command to specify a subset of transforms.
This command will parse a file and output a pretty formatted AST.