Create Additional Modules for an Extension

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 file options are:

    • JavaScript

    • SuiteScript

    • Templates

    • Sass

    • Configuration

    • SuiteScript2

    The developer tools create a baseline of these files to get you started.

    Note:

    Only 2020.1 Extension Developer Tools and later include the SuiteScript 2.0 file type as an option.

    Select extension to add module

    Select the name of the extension to contain this module. This option only appears if your Workspace directory contains more than one extension.

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

Important:

NetSuite imposes certain record limits to control the consumption of web services. To avoid errors related to record limits when deploying themes and extensions, limit the number of files and folders at the same level to 100 when developing themes and extensions. Some options include introducing images across multiple folders and placing custom modules in a different top-level directory. For more information on record limiting, see SOAP Web Services Governance Overview.

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

Related Topics

Edit and Create Extension Modules

General Notices