1. Home
  2. Docs
  3. Application Framework
  4. CLI Reference
  5. add-js

add-js

$ wp mwp add-js <slug> <name>

This command adds a new javascript modules to your plugin.

@Params

<slug> (required) The slug (directory) of the plugin to add to
<name> (required) The name of the new javascript file

@Example

$ wp mwp add-js acmecompany-gizmo gizmo-module.js
Creating new javascript module...
Javascript module added succesfully.

Was this article helpful to you? Yes No

How can we help?