@evolv-delivery/yml-min
v0.2.0
Published
Post processing for Evolv AI YAML files
Keywords
Readme
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-minUsage
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.ymlProcessing
The tool will:
- Minify JavaScript in template literals
- Optimize CSS with PostCSS
- Sort media queries
- Create minified output as
*.min.yml
Development
# Clone the repository
git clone [repository-url]
# Install dependencies
npm install
# Link for local development
npm link