-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: plugin pack command for 2 #916
Conversation
9c9a9f2
to
a8e6a7d
Compare
0882ade
to
d56df1f
Compare
41f2bc3
to
5ec52a6
Compare
c2d994a
to
32cafad
Compare
62f1587
to
3312a0f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"node-rsa": "^1.1.1", | ||
"stream-buffers": "^3.0.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stream-buffers
は Node.js 標準の Utility Consumers に置き換えが案内されていたので置き換えた。
https://www.npmjs.com/package/stream-buffers
@@ -112,13 +110,9 @@ | |||
"chokidar": "^4.0.1", | |||
"csv-parse": "^4.16.3", | |||
"csv-stringify": "5.6.5", | |||
"debug": "^4.3.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug
はcli-kintoneのlogger.debug|trace
に置き換えた。
"https-proxy-agent": "^7.0.5", | ||
"iconv-lite": "^0.6.3", | ||
"mkdirp": "^3.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fs.promises.mkdir(data, {recursive: true})
に置き換え
@@ -112,13 +110,9 @@ | |||
"chokidar": "^4.0.1", | |||
"csv-parse": "^4.16.3", | |||
"csv-stringify": "5.6.5", | |||
"debug": "^4.3.7", | |||
"execa": "^9.4.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用していたテストを消した。
export { PublicKey } from "./public-key"; | ||
export type { PublicKeyInterface } from "./public-key"; | ||
export { PrivateKey } from "./private-key"; | ||
export type { PrivateKeyInterface } from "./private-key"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PublicKey と PrivateKey は変わることは当面なさそうだしInterfaceを切らなくても良さそう。
(アルゴリズムなどが変わるタイミングでIFを切れば良さそう)
|
||
const debug = _debug("packer"); | ||
|
||
const packer = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packerの処理はPluginZip.build()
に移動した。
import packer from "./index"; | ||
import { createContentsZip } from "./create-contents-zip"; | ||
|
||
export const packPluginFromManifest = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちらもPluginZip.build()
に集約
@@ -0,0 +1,29 @@ | |||
--- | |||
sidebar_position: 1400 | |||
draft: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
draft: true
なのでローカルビルドでした表示されない
* @param stability "experimental" or "deprecated" | ||
* @param message additional information | ||
*/ | ||
export const setStability = <T = {}, U = {}>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/kintone/cli-kintone/pull/915/files#r1815855917 の対応
setStability(cmd, stability, msg)
関数を追加した。
ヘルプメッセージにStabilityが表示され、実行時に警告が出るようになる。
どこかのflagsにstabilityの情報を集約して、それに連動して表示が変わるようにしたかったが、yargsの仕組み上難しそうだった。
コマンドの生成を全てラップするヘルパー関数を置けば実現できるが、既存のレコード系のコマンドにも影響が出るので今回は個別のコマンドをラップする方式にした。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tasshi-me
いくつかコメントしました!
定義がわかりやすくて処理が追いやすかったです!
39db43e
to
95110a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
レビュー対応
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ご対応ありがとうございました!良さそうです!
Why
Support plugin manifest v2.
What
plugin info
commandHow to test
Manual test example:
Checklist
pnpm lint
andpnpm test
on the root directory.