Create Additional Modules for an Extension

This topic applies to

Applies to

SuiteCommerce Web Stores

The gulp extension:create command builds an extension with one baseline module. However, if your extension requires more than one module, the developer tools let you create more using the —module attribute.

To add an additional module to your baseline extension:

  1. Create a baseline extension, if you have not done so already. See Create a Baseline Extension for details.

  2. Open a command line or terminal.

  3. Access the top-level extension development directory you created when you installed the extension developer tools.

  4. Enter the following command:

    gulp extension:create-module
  5. When prompted, enter the following information:

    Important

    Unless otherwise directed, create all entries using only alphanumeric characters without spaces.


    • Set the Module Name – Name the module to be created as part of the baseline extension. Use only alphanumeric characters without spaces.

    • For This Module You Will Be Using – Select one or more file types your extension requires. Your options are: avaScript, SuiteScript, Templates, Sass, and Configuration.

      An asterisk (*) identifies a selected option. Press the spacebar to select. Use arrow keys to scroll. Press the A key to select all. Press the I key to invert your selections.

  6. Repeat these steps to add any additional modules as needed.

When you have completed building baseline extension files in your developer environment, you are ready to develop your extension. See Extensions for details.