0.1.5-beta.4 • Published 1 year ago
@haiyulu/unplugin-schemas-to-planuml v0.1.5-beta.4
@lx-frontend/unplugin-schemas-to-planuml
Starter template for unplugin.
Template Usage
To use this template, clone it down using:
npx degit antfu/@lx-frontend/unplugin-schemas-to-planuml my-unplugin
And do a global replace of @lx-frontend/unplugin-schemas-to-planuml
with your plugin name.
Then you can start developing your unplugin 🔥
To test your plugin, run: pnpm run dev
To release a new version, run: pnpm run release
Install
npm i @lx-frontend/unplugin-schemas-to-planuml
// vite.config.ts
import Starter from '@lx-frontend/unplugin-schemas-to-planuml/vite'
export default defineConfig({
plugins: [
Starter({ /* options */ }),
],
})
Example: playground/
// rollup.config.js
import Starter from '@lx-frontend/unplugin-schemas-to-planuml/rollup'
export default {
plugins: [
Starter({ /* options */ }),
],
}
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('@lx-frontend/unplugin-schemas-to-planuml/webpack')({ /* options */ })
]
}
// nuxt.config.js
export default {
buildModules: [
['@lx-frontend/unplugin-schemas-to-planuml/nuxt', { /* options */ }],
],
}
This module works for both Nuxt 2 and Nuxt Vite
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('@lx-frontend/unplugin-schemas-to-planuml/webpack')({ /* options */ }),
],
},
}
// esbuild.config.js
import { build } from 'esbuild'
import Starter from '@lx-frontend/unplugin-schemas-to-planuml/esbuild'
build({
plugins: [Starter()],
})