🍣 A Rollup plugin to create a plugin zip of kintone.
npm install git+https://github.com/i-tmsh/rollup-plugin-kintone-plugin.git --save-dev
Create 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`
})],