npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@zygapp/kintone-plugineer-cli

v0.1.1

Published

It's a CLI tool designed to simplify and streamline the development of plugin for kintone.

Downloads

23

Readme

kintone プラグイン CLI ツール

この CLI ツールは、kintone のプラグインを簡単かつ効率的に開発するためのものです!


🎯 特徴

  • リアルタイム開発: ローカル環境で変更が即座に kintone に反映されます。
  • TypeScript 完全対応: .tsファイルやvite.plugins.tsをネイティブサポート。
  • 複数環境デプロイ: 一度のコマンドで複数の本番環境に同時デプロイ可能。
  • エラー耐性: 開発モードでエラーが発生してもプロセスを継続し、次の変更を監視。
  • 柔軟なビルド: Vite の高速ビルドを活用。
  • 簡単なデプロイ: コマンド 1 発で本番環境に反映。
  • プラグイン対応: Vite プラグインを手軽に追加できます。

🔧 コマンド一覧

kintone-plugineer <command>

| コマンド | 説明 | | -------------- | ----------------------------------------------------------------------------------------------- | | dev | リアルタイムに開発モードで kintone への反映 | | build | プラグインを本番モードでビルド | | deploy | プラグインを本番モードで kintone に本番反映※ デプロイ対象のファイル名を指定します。 | | build:deploy | 本番モードビルドとデプロイを同時に実行 |


🛠️ 機能

1. Vite プラグインを簡単追加

プロジェクトルートにあるvite.plugins.jsまたはvite.plugins.tsにプラグインを追加するだけで、カスタマイズできます。

例:

// vite.plugins.js または vite.plugins.ts
import vue from "@vitejs/plugin-vue";
import { Plugin } from "vite";

const plugins: Plugin[] = [vue()];

export default plugins;

2. TypeScript & モダンフレームワーク対応

  • TypeScript: .tsファイルのネイティブサポート
  • React/Vue: モダンフレームワークとの組み合わせが可能
  • エラー継続: 開発中にエラーが発生してもプロセスが継続し、ファイル監視を継続

🚀 始め方

  1. インストール

    npm install -g @zygapp/kintone-plugineer-cli
  2. プロジェクトを初期化
    各種ファイルが生成されます。

    create-kintone-plugineer <ディレクトリ名|kintone-plugineer>
  3. 設定ファイル修正
    必要に応じて./config.jsonの各項目を書き換えます。

    {
      "version": "0.1",
      "name": {
        "ja": "<プラグイン名>",
        "en": "<PLUGIN NAME>"
      },
      "description": {
        "ja": "<プラグイン 説明文>",
        "en": "<PLUGIN DESCRIPTION>"
      },
      "homepage_url": {
        "ja": "<ホームページURL>",
        "en": "<WEBSITE URL>"
      },
      "required_params": [],
      "entryFiles": {
        "public": "src/public",
        "js": {
          "config": "src/config.ts",
          "mobile": "src/plugin.ts",
          "desktop": "src/plugin.ts"
        }
      },
      "dev": {
        "baseUrl": "https://<KINTONE DEV SUBDOMAIN>.cybozu.com",
        "auth": {
          "username": "<KINTONE DEV USERNAME>",
          "password": "<KINTONE DEV PASSWORD>"
        }
      },
      "prod": {
        "baseUrl": "https://<KINTONE PROD SUBDOMAIN>.cybozu.com",
        "auth": {
          "username": "<KINTONE PROD USERNAME>",
          "password": "<KINTONE PROD PASSWORD>"
        }
      }
    }

    複数環境デプロイの設定例
    prodプロパティを配列にすることで、複数の本番環境に同時デプロイできます:

    {
      "prod": [
        {
          "baseUrl": "https://company-a.cybozu.com",
          "auth": {
            "username": "admin-a",
            "password": "password-a"
          }
        },
        {
          "baseUrl": "https://company-b.cybozu.com",
          "auth": {
            "username": "admin-b",
            "password": "password-b"
          }
        }
      ]
    }

    | プロパティ | 型 | 必須 | 説明 | | ----------------------- | :----------------: | :--: | ---------------------------------------------------- | | version | StringorNumber | ✅️ | プラグインのバージョン | | name | Object | ✅️ | プラグイン名 | | name.ja | Object | ✅️ | 日本語 | | name.en | Object | ✅️ | 英語 | | description | Object | | プラグインの説明文 | | description.ja | String | | 日本語 | | description.en | String | | 英語 | | required_params[] | String | | プラグイン設定画面で設定必須とするパラメーター | | entryFiles | Object | ✅️ | ビルド時に読み込むディレクトリやファイルの情報 | | entryFiles.public | String | ✅️ | config.htmlicon.pngが存在するディレクトリパス | | entryFiles.js | Object | ✅️ | Javascript ファイルの情報 | | entryFiles.js.config | Object | | config.jsのファイルパス | | entryFiles.js.mobile | Object | | mobile.jsのファイルパス | | entryFiles.js.desktop | Object | | desktop.jsのファイルパス | | dev | Object | ✅️ | 開発環境 | | dev.auth | Object | ✅️ | 認証情報 | | dev.auth.username | String | ✅️ | アプリ設定権限をもつ kintone ユーザーのアカウント ID | | dev.auth.password | String | ✅️ | アプリ設定権限をもつ kintone ユーザーのパスワード | | prod | ObjectorArray | ✅️ | 本番環境(配列指定で複数環境同時デプロイ対応) | | prod.auth | Object | ✅️ | 認証情報 | | prod.auth.username | String | ✅️ | アプリ設定権限をもつ kintone ユーザーのアカウント ID | | prod.auth.password | String | ✅️ | アプリ設定権限をもつ kintone ユーザーのパスワード |

    ※ CSS ファイルは、各 JS ファイルでimportするとビルド時に生成され、自動的にプラグインに含まれます。

    【例】src/config.ts

    import "./main.css";
    import "./style.scss";
  4. ローカル環境でビルドし、逐次デプロイ

    kintone-plugineer --dev
    
    or
    
    # npm
    npm run dev:deploy
    # yarn
    yarn dev:deploy
  5. ローカル環境でビルド

    kintone-plugineer --build
    
    or
    
    # npm
    npm run build
    # yarn
    yarn build
  6. 本番環境にデプロイ

    kintone-plugineer --deploy <zipFileName>
    
    or
    
    # npm
    npm run deploy <zipFileName>
    # yarn
    yarn deploy <zipFileName>
  7. ローカル環境でビルドし、本番環境にデプロイ

    kintone-plugineer --build --deploy
    
    or
    
    # npm
    npm run build:deploy
    # yarn
    yarn build:deploy

📝 ライセンス

このプロジェクトは MIT ライセンスのもとで提供されています。

👨‍💻 開発者情報

加藤@合同会社 ZYG
https://www.zyg.jp