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