UI Plugin Examples
Usage
Executing gtmhub-codegen ui
will generate an example_plugin
directory with default values in the directory the command is executed in.
All available options can be listed by executing gtmhub-codegen ui -h
which will display the help text explaining all available flags/options.
Example project structure, default values
When running the command gtmhub-codegen ui
, without passing any options, will create a directory named example_plugin
with the following content:
example_plugin
|
└─── src/
| |
| └─── index.html
| |
| └─── script.js
|
└─── README.md
|
└─── ngrok.js
|
└─── package.json
|
└─── server.js
|
└─── webpack.config.js
|
└─── .gitignore
Example project structure with supplied name for the app
When running the command gtmhub-codegen ui -pluginName best_plugin_ever
will create a directory named best_plugin_ever
with the following content:
best_plugin_ever
|
└─── src/
| |
| └─── index.html
| |
| └─── script.js
|
└─── README.md
|
└─── ngrok.js
|
└─── package.json
|
└─── server.js
|
└─── webpack.config.js
|
└─── .gitignore