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:
- Open a command line or terminal.
- Access the top-level extension development directory you created when you installed the extension developer tools.
- Enter the following command:
gulp extension: create-module - When prompted, enter the following information:
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
Suite Script
Templates
Sass
Configuration
SuiteScript2
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 - Repeat these steps to add any additional modules as needed