一覧へ戻る
tmpie/rollup-plugin-kintone-plugin(新しいタブで開きます)
主要言語: TypeScript
- star 数
- 0
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2023/05/22
主要言語: TypeScript
🍣 A Rollup plugin to create a plugin zip of kintone.
npm install git+https://github.com/i-tmsh/rollup-plugin-kintone-plugin.git --save-devCreate a rollup.config.mjs configuration file and import the plugin:
import { defineConfig } from 'rollup'; import kintonePlugin from 'rollup-plugin-kintone-plugin'; export default defineConfig({ input: { config: 'src/config.js', desktop: 'src/desktop.js', }, output: { dir: 'plugin/js', format: 'es', }, plugins: [kintonePlugin()], });
You can customize the paths of manifest.json, privateKey and plugin zip. Those default values are like the following.
manifestJSONPath: './manifest.json',
privateKeyPath: './private.ppk',
pluginZipPath: './dist/plugin.zip'
If you want to customize these values, you can update the values like this.
plugins: [kintonePlugin({ manifestJSONPath: './plugin/manifest.json', privateKeyPath: './private.ppk', pluginZipPath: (id, manifest) => `${id}.${manifest.version}.plugin.zip` })],