Registry / devops / acode-pluginx

acode-pluginx

JSON →
library1.1.0jsnpmunverified

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.

npm install acode-pluginx
INSTALL
IMPORT
SIG · ACODE-PLUGINX
A
acode-pluginx
devopsjavascriptv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

acode-pluginx
npx acode-pluginx <projectName> <pluginId>
npm install -g acode-pluginx && acode-pluginx
Recommended to use npx to avoid global install; run without installing.
main.js/main.ts
import { plugin } from 'acode'
import acode from 'acode'
The generated entry file uses Acode's import syntax; actual import depends on plugin API documentation.
esbuild.config.mjs
the generated config is ESM (.mjs)
trying to use require() inside esbuild.config.mjs
The config file is ES module; CommonJS require will fail.

Scaffolds a TypeScript Acode plugin with SCSS support and npm, then installs and runs dev server.

npx acode-pluginx samplePlugin com.example.plugin --ts --use-npm --scss cd samplePlugin npm install npm run dev
acode-pluginx --version
Debug
Known issues
gotchaDo not pass both --ts and --js flags together; the CLI will error.
fix
Use only one of --ts or --js.
affects: >=1.0.0
gotchaExperimental --cm-types may generate incomplete or incorrect CodeMirror typings.
fix
Use with caution; verify typings or avoid if stability is needed.
affects: >=1.0.0
breakingThe generated esbuild.config.mjs uses ES module syntax; older versions of esbuild may not support it.
fix
Ensure esbuild version is 0.19+ or use compatible config.
affects: >=1.0.0
gotchaIf you run 'npx acode-pluginx . com.plugin.acode' in a non-empty directory, you'll get a warning but it will still overwrite files.
fix
Run in empty directory or confirm no important files will be overwritten.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Unknown option '--ts'
Typo or using an older version of the CLI without that flag.
fix
Update to latest version: npx acode-pluginx@latest
Error: Must provide projectName and pluginId
Missing required positional arguments.
fix
npx acode-pluginx <projectName> <pluginId>
Error: Cannot find module 'esbuild'
esbuild is not installed globally or in the project.
fix
Run 'npm install esbuild' in your project directory before building.
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
57 hits · last 30 days
node
52
OpenAI (training)
1
Resources
acode-pluginx — npm install acode-pluginx · libregistry