@webtekteam/elementor-widget-cli

4.0.1 • Public • Published

elementor-widget-cli

Cli generator for Elementor widgets based on Webtek conventions

Compatibility

Sage: 9, 10

Implementations

Use flag -i 4 with Sage 10.

Use flag -i 3 with Sage 9 and Elementor 3.5 and newer.

For previous Elementor versions use flag -i 2 of this package.

Installation

npm i -g bitbucket:webtekteam/elementor-widget-cli

Usage

The command must be run from the theme directory, not from the wordpress root or inside other directories.

Example: ew PascalName

Option Type Description
[name] string name in pascal case of the widget
-y / --js bool does the widget requires Javascript configuration?
-f / --force bool flag to force override of destination files
-i / --impl int (1-4) implementation to use
-v / --version show CLI version
-h / --help show CLI help

What it does

  • Generate php widget class
  • Generate scss file
  • Generate js file (based on flag)
  • Register widget class in PluginInit.php
  • Register entry in assets.json file

Readme

Keywords

none

Package Sidebar

Install

npm i @webtekteam/elementor-widget-cli

Weekly Downloads

5

Version

4.0.1

License

MIT

Unpacked Size

33.4 kB

Total Files

38

Last publish

Collaborators

  • webtekspa
  • paolo.trinca
  • mattia.dellamina