{"library":"riot-cli","title":"Riot CLI","description":"Riot CLI is the command-line utility for precompiling Riot.js tags, an open-source UI library. As of its latest stable release, v10.0.0, it wraps the `@riotjs/compiler` to transform Riot.js component files (typically `.riot` files) into standard JavaScript modules. While often installed implicitly with the main `riot` package, it can also be installed and used as a standalone tool. The project follows an active development cycle, releasing major versions to align with new Riot.js framework updates and Node.js environment changes, such as the shift to ESM and stricter Node.js version requirements. Key differentiators include its tight integration with the Riot.js ecosystem, support for various pre-processors and TypeScript, and its ability to not only compile individual tags but also bundle entire Riot.js applications for quick prototypes or development workflows.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install riot-cli"],"cli":{"name":"riot","version":null}},"imports":["import cli from 'riot-cli'","import { run } from 'riot-cli'","import { version } from 'riot-cli'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install -g riot-cli\n\n# Create a simple Riot.js tag file (e.g., my-component.riot)\n// my-component.riot\n<my-component>\n  <h1>Hello, {props.name}!</h1>\n  <script>\n    export default {\n      onMounted() {\n        console.log('Component mounted with name:', this.props.name)\n      }\n    }\n  </script>\n</my-component>\n\n# Compile the tag file to a JavaScript module\nriot my-component.riot my-component.js\n\nconsole.log('my-component.js has been compiled. You can now import and use it in your application.')","lang":"javascript","description":"Demonstrates global installation and compiling a basic Riot.js tag file into a JavaScript module using the `riot` command.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}