Plugin CLI
The PS Maker Plugin CLI creates new plugin projects and builds them into bundles that Pixel Stories Maker can load.
Quick Start
Section titled “Quick Start”Create a plugin project with the default template:
npx @ps-maker/plugin-cli createCreating a Plugin
Section titled “Creating a Plugin”create [target-dir]
Section titled “create [target-dir]”Scaffolds a new plugin project. If you do not pass a directory, the CLI will prompt you for one.
# Create a new pluginnpx @ps-maker/plugin-cli create
# Create a new plugin in ./my-pluginnpx @ps-maker/plugin-cli create my-plugin
# Create a plugin in the current directorynpx @ps-maker/plugin-cli create .Building a Plugin
Section titled “Building a Plugin”Builds your plugin from src/index.ts into a single bundled file.
# In project rootnpm run build
# Or using npxnpx @ps-maker/plugin-cli build
# Or using the command directly with it installed in the projectnpx ps-maker-plugin buildBy default, the output is written to dist/.
Generally, the plugin development workflow looks like this:
- Edit your plugin logic in
src/index.ts - Run
npm run buildto generate the final plugin bundle - Copy the built file into your Pixel Stories Maker project’s plugins folder