{"id":24887,"library":"acode-pluginx","title":"acode-pluginx","description":"A CLI starter tool for scaffolding Acode plugins (mobile code editor) with esbuild bundler. Current version 1.1.0. Supports TypeScript and JavaScript project generation, optional SCSS preprocessing, and integration with npm, pnpm, yarn, or bun. Provides pre-configured esbuild config, dev server, and zip packaging. Experimental support for CodeMirror typings. Requires Node.js 18+. Differentiates from generic scaffolding by tailoring output specifically to Acode plugin structure and build pipeline.","status":"active","version":"1.1.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install acode-pluginx","lang":"bash","label":"npm"},{"cmd":"yarn add acode-pluginx","lang":"bash","label":"yarn"},{"cmd":"pnpm add acode-pluginx","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Recommended to use npx to avoid global install; run without installing.","wrong":"npm install -g acode-pluginx && acode-pluginx","symbol":"acode-pluginx","correct":"npx acode-pluginx <projectName> <pluginId>"},{"note":"The generated entry file uses Acode's import syntax; actual import depends on plugin API documentation.","wrong":"import acode from 'acode'","symbol":"main.js/main.ts","correct":"import { plugin } from 'acode'"},{"note":"The config file is ES module; CommonJS require will fail.","wrong":"trying to use require() inside esbuild.config.mjs","symbol":"esbuild.config.mjs","correct":"the generated config is ESM (.mjs)"}],"quickstart":{"code":"npx acode-pluginx samplePlugin com.example.plugin --ts --use-npm --scss\ncd samplePlugin\nnpm install\nnpm run dev\n","lang":"javascript","description":"Scaffolds a TypeScript Acode plugin with SCSS support and npm, then installs and runs dev server."},"warnings":[{"fix":"Use only one of --ts or --js.","message":"Do not pass both --ts and --js flags together; the CLI will error.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use with caution; verify typings or avoid if stability is needed.","message":"Experimental --cm-types may generate incomplete or incorrect CodeMirror typings.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Ensure esbuild version is 0.19+ or use compatible config.","message":"The generated esbuild.config.mjs uses ES module syntax; older versions of esbuild may not support it.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Run in empty directory or confirm no important files will be overwritten.","message":"If you run 'npx acode-pluginx . com.plugin.acode' in a non-empty directory, you'll get a warning but it will still overwrite files.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Update to latest version: npx acode-pluginx@latest","cause":"Typo or using an older version of the CLI without that flag.","error":"Error: Unknown option '--ts'"},{"fix":"npx acode-pluginx <projectName> <pluginId>","cause":"Missing required positional arguments.","error":"Error: Must provide projectName and pluginId"},{"fix":"Run 'npm install esbuild' in your project directory before building.","cause":"esbuild is not installed globally or in the project.","error":"Error: Cannot find module 'esbuild'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}