2025-06-30 11:10:20 +08:00
|
|
|
/**
|
|
|
|
* JavaScript Plugin Generator Wrapper
|
|
|
|
*/
|
|
|
|
|
2025-06-30 11:24:27 +08:00
|
|
|
const { PluginGenerator } = require("./create-plugin-core");
|
2025-06-30 11:10:20 +08:00
|
|
|
|
|
|
|
// Get plugin name from command line arguments
|
|
|
|
const pluginName = process.argv[2];
|
|
|
|
|
|
|
|
if (!pluginName) {
|
|
|
|
console.error("❌ Plugin name is required!");
|
|
|
|
console.log("Usage: npm run new-plugin-js <plugin-name>");
|
|
|
|
console.log("Example: npm run new-plugin-js MyJSPlugin");
|
|
|
|
process.exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Create JavaScript plugin
|
|
|
|
const generator = new PluginGenerator();
|
|
|
|
generator.createPlugin(pluginName, "js");
|