@siimple/cli v0.3.1
@siimple/cli
The siimple command line.
This package is included in the main
siimplepackage and a separate installation is not required.
Installation
Add this package to your project using npm:
$ npm install --save @siimple/cliNote that Node.js version >=14 is required for running the CLI tool.
Usage
The easiest way is using npx for running the siimple CLI tool:
$ npx siimple -c siimple.config.js -o siimple.cssInstead of using npx, you can drop it inside of an npm run script in your package.json file:
{
"name": "my-project",
"version": "1.0.0",
"type": "module",
"scripts": {
"build-siimple": "siimple -c siimple.config.js -o siimple.css"
},
// ...other package.json content
}Or you can directly execute it using the relative path to the executable file instead:
$ ./node_modules/.bin/siimple -c siimple.config.js -o siimple.cssGenerate your CSS
Create a file called siimple.config.js with your configuration, and print the output CSS to stdout:
$ npx siimple -c siimple.config.jsIf you would like to save the generated CSS to a file, use the -o option instead with the path of the output .css file:
$ npx siimple -c siimple.config.js -o siimple.cssNote: siimple uses ECMAScript modules, so you will need to set
"type": "module"in yourpackage.jsonfile or use.mjsas the extension for your configuration file (siimple.config.mjs).