A javaScript plugin template for Acode Editor.
- Lightweight building with esbuild.
- Validate your plugin configuring.
- Supports JSX.
npm installBuild:
npm run buildDev:
npm run devThe project uses a config (build/BuildConfig) to control how the plugin is built.
export default {
ENTRY: "src/main.js",
OUTPUT: "dist/main.js",
ZIP: "{id}-v{version}.acodeplugin",
PORT: 3030,
JSX: false,
GLOBAL: {}
}
ENTRYMain source file used as the build entry point.
OUTPUTPath where the compiled output file will be written.
ZIPName of the final plugin archive. You can use placeholders like:
{id},{version},{author.name}. All supported placeholders fromplugin.jsonfile.
PORTDev server port used by the build process.
JSXEnables JSX support when set to true.
GLOBALDefines global variables that will be injected during build time. Example:
GLOBAL: {
__TEST__: JSON.stringify(10)
}- All passed values must be a
string.
Enjoy :3