1.3.1 • Published 5 years ago

@uihc/dew v1.3.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Dew

A command line utility for creating custom Drupal modules. Works for Drupal 7 & 8.

Installation

Dew is installed through npm. To get it, be sure you have npm installed, then run this command in your terminal:

$ npm i -g @uihc/dew

Usage

Simply run dew followed by your human readable module name from your Drupal site's docroot directory.

$ dew "Human readable name" -m optional_machine_name 

If you omit the machine name option (-m or --machine-name), dew will automatically generate it for you by taking the human readable name you provide and converting it to lower snake case.

Options

--machine-name, -m: Allows you to specify the machine name rather than having dew generate it. As per Drupal standards, this name must be represented in snake case with all lower case letters.

--seven, -s: Create a Drupal 7 module. Without this option, Dew will default to Drupal 8.

--default, -d: Drupal 7 only Create the module within the sites/default/ folder rather than the sites/all/ folder.

--current-directory, -c: Create a module in the current directory. This option is useful, for example, if you are creating a contrib module for publishing on Drupal.org.

Todo

  • Automate template bundling.
  • Clean up code.
1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago