Skip to content

Releases: saifulapm/emmet-cli

v1.0.1 - Improvements and Fixes

14 Dec 10:46

Choose a tag to compare

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

v1.0.0 - First Stable Release

14 Dec 10:09

Choose a tag to compare

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, and validate

Installation

npm install -g @saifulapm/emmet-cli

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

Testing

All 69 tests passing ✅

Documentation

See README.md for full documentation.