0.2.0 • Published 9 months ago
@evolv-delivery/yml-min v0.2.0
yml-min
A CLI tool for minifying Evolv AI metamodel YAML files.
Requirements
- Node.js: Version 20 or higher required
Installation
Install globally to use the CLI from anywhere:
npm install -g @evolv-delivery/yml-min
Usage
yml-min [options] [input-files...]
Options
-w, --watch
: Watch the indicated YML files and export on change-s, --silent
: Suppress logs-d, --debug
: Show debug output-t, --target
: Destination folder for minified YML (default: "./")
Examples
# Minify a single file
yml-min input.yml
# Minify multiple files
yml-min file1.yml file2.yml
# Watch mode with custom output directory
yml-min -w -t dist/ *.yml
# Minify all YML files in current directory
yml-min
# Show debug output
yml-min -d input.yml
Processing
The tool will:
1. Minify JavaScript in template literals
2. Optimize CSS with PostCSS
3. Sort media queries
4. Create minified output as *.min.yml
Development
# Clone the repository
git clone [repository-url]
# Install dependencies
npm install
# Link for local development
npm link
0.2.0
9 months ago