Skip to content

tmpie/rollup-plugin-kintone-plugin

Repository files navigation

rollup-plugin-kintone-plugin

🍣 A Rollup plugin to create a plugin zip of kintone.

Install

npm install git+https://github.com/i-tmsh/rollup-plugin-kintone-plugin.git --save-dev

Usage

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()],
});

Options

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`
})],

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published