@usualoma/mt-plugin-builder
v1.0.0
Published
Build Movable Type plugins via CLI
Downloads
243
Readme
mt-plugin-builder
A build tool for Movable Type plugin development.
Installation
npm install --save-dev @movabletype/mt-plugin-builder
or just use npx:
npx @movabletype/mt-plugin-builder
Usage
Configuration File
Create mt-plugin.config.ts
in your project root:
import { defineConfig } from '@movabletype/mt-plugin-builder';
export default defineConfig({
script: 'main.js',
mt_static: 'dist',
});
Build Commands
Add build scripts to your package.json:
{
"scripts": {
"build:app": "vite build",
"build:plugin": "mt-plugin-builder build",
"build": "npm run build:app && npm run build:plugin"
}
}
License
MIT