Coder Social home page Coder Social logo

koba04 / kintone-plugin-packer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kintone-labs/plugin-packer

0.0 2.0 0.0 1.7 MB

Package your kintone plugin with pure JavaScript

Home Page: https://teppeis.github.io/kintone-plugin-packer/

JavaScript 100.00%

kintone-plugin-packer's Introduction

kintone-plugin-packer

kintone plugin package.sh in JavaScript

npm version Node.js Version Support build status windows build status dependency status License

It's written in pure JavaScript, so

  • The CLI works with Node.js in Mac/Windows/Linux
  • The web page works in any modern browsers
  • Validate your manifest.json with JSON Schema

How to install

$ npm install -g @teppeis/kintone-plugin-packer

Usage: CLI

$ kintone-plugin-packer [OPTIONS] PLUGIN_DIR

Options

  • --ppk PPK_FILE: The path of input private key file. If omitted, it is generated automatically into <Plugin ID>.ppk in the same directory of PLUGIN_DIR or --out if specified.
  • --out PLUGIN_FILE: The path of generated plugin file. The default is plugin.zip in the same directory of PLUGIN_DIR.

How to use with npm run

If your private key is ./private.ppk and the plugin directory is ./plugin, edit package.json:

{
  "scripts": {
    "package": "kintone-plugin-packer --ppk private.ppk plugin"
  }
}

and then

$ npm run package

Usage: Node.js API

const packer = require('@teppeis/kintone-plugin-packer');
const fs = require('fs');

const buffer = createContentsZipBufferInYourSelf();
packer(buffer).then(output => {
  console.log(output.id);
  fs.writeFileSync('./private.ppk', output.privateKey);
  fs.writeFileSync('./plugin.zip', output.plugin);
});

License

MIT License: Teppei Sato <[email protected]>

kintone-plugin-packer's People

Contributors

teppeis avatar will-yama avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.