Back to results
tmpie/rollup-plugin-kintone-plugin(opens in a new tab)
Language: TypeScript
- stars
- 0
- watchers
- 1
- forks
- 0
- open issues
- 0
- Last updated
- 05/22/2023
Language: 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` })],