Releases: saifulapm/emmet-cli
Releases · saifulapm/emmet-cli
v1.0.1 - Improvements and Fixes
Emmet CLI v1.0.1
Minor release with improvements and bug fixes.
What's New
🚀 New Features
-
Short Option Flags: Added convenient short flags for faster CLI usage
-cfor--config-ifor--indent-tfor--tab-stops-nfor--no-tab-stops
Example:
emmet expand 'div>p' -s html -n
🐛 Bug Fixes
- Fixed comment filter to use correct default template values
- Fixed CLI variable options (
--var-*) to work correctly - Fixed example JSX snippets to use proper Emmet syntax instead of plain JavaScript
📚 Documentation
- Updated README with correct npm installation instructions
- Fixed API usage examples with proper function names
- Added examples using new short option flags
- Clarified that snippets must use Emmet abbreviation syntax
🔧 CI/CD Improvements
- Added
package-lock.jsonfor better dependency caching - Enhanced publish workflow to run tests before publishing to npm
- Changed release trigger from
createdtopublished
Installation
npm install -g @saifulapm/emmet-cliQuick Examples
# Using short flags
emmet expand 'ul>li*3' -s html -n
# With custom indentation
emmet expand 'div>p' -s html -i ' ' -n
# With filters
emmet expand 'div#app>header' -s html -f c -nTesting
All 69 tests passing ✅
Full Changelog: v1.0.0...v1.0.1
v1.0.0 - First Stable Release
Emmet CLI v1.0.0
First stable release of Emmet CLI - a powerful command-line interface for Emmet abbreviation expansion.
Features
- Full VSCode Emmet Support: All filters (BEM, comment, trim), wrapping, custom snippets, and configuration options
- 15+ Languages: HTML, CSS, JSX, Vue, SCSS, LESS, Sass, Pug, HAML, Slim, and more
- Flexible Configuration: Load custom snippets, variables, and syntax profiles from
.emmet/directory - Standard I/O: Read from stdin, write to stdout for easy piping and integration
- CLI Variable Overrides: Use
--var-*flags to override template variables - Subcommands:
expand,wrap,extract, andvalidate
Installation
npm install -g @saifulapm/emmet-cliQuick Start
# Expand HTML abbreviation
emmet expand "ul>li*3" --syntax html
# CSS abbreviation
emmet expand "m10+p5" --syntax css
# With filters
emmet expand "div#app>header.header" --syntax html --filter cTesting
All 69 tests passing ✅
Documentation
See README.md for full documentation.