Skip to content

v1.0.1 - Improvements and Fixes

Latest

Choose a tag to compare

@saifulapm saifulapm released this 14 Dec 10:46
· 1 commit to main since this release

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

    • -c for --config
    • -i for --indent
    • -t for --tab-stops
    • -n for --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.json for better dependency caching
  • Enhanced publish workflow to run tests before publishing to npm
  • Changed release trigger from created to published

Installation

npm install -g @saifulapm/emmet-cli

Quick 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 -n

Testing

All 69 tests passing ✅

Full Changelog: v1.0.0...v1.0.1