-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat(rest): add @kintone/rest
package
#3099
Conversation
b92375c
to
39b1a9a
Compare
39b1a9a
to
d0570dc
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.
ざっくり修正するところリスト
packages/rest/.gitignore
Outdated
esm | ||
lib | ||
ndoe_modules |
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.
先頭に/
をつけるようにお願いしますー
(先頭に/
がない場合は再帰的にマッチするため)
ref. https://learning.postman.com/docs/tests-and-scripts/run-tests/run-tests-with-ci-cd/
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.
typo: node_modules
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.
esm | |
lib | |
ndoe_modules | |
/esm | |
/lib | |
/node_modules |
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.
すみません、ありがとうございます 🙇
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.
変更箇所
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [ | ||
{ | ||
ignores: ["lib", "esm", "src/schemas"], |
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.
schemasをignoreするついでにlib, esmも除外
"fix": "pnpm lint --fix", | ||
"clean": "rimraf lib esm umd", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"test:ci": "echo \"TODO: no test specified\"" |
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.
テストの実行は後続タスクで追加する(まだJestも未導入なので)
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.
今から導入するならVitestでもイイかも
"CHANGELOG.md", | ||
"esm", | ||
"lib", | ||
"!**/*.tsbuildinfo" |
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.
esm, libの中に*.tsbuildinfo
が生成されるのでPublish対象から除外
生成される場所自体を変えることもできるけど、一旦これでOK。
"openapi-typescript-helpers": "^0.0.15" | ||
}, | ||
"publishConfig": { | ||
"access": "public" |
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.
scoped packageを一般公開にするにはこの指定が必要
@@ -0,0 +1,121 @@ | |||
// FIXME: クライアントをモックしてテスト実行できるようにする | |||
|
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.
テストは諸々後で修正するのでとりあえずeslint-ignoreなども使ってCIを通している
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.
LGTM 🎉
Why
What
How to test
Checklist
pnpm lint
andpnpm test
on the root directory.