Skip to content
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

Merged
merged 16 commits into from
Feb 12, 2025
Merged

feat(rest): add @kintone/rest package #3099

merged 16 commits into from
Feb 12, 2025

Conversation

tasshi-me
Copy link
Member

Why

What

How to test

Checklist

  • Read CONTRIBUTING.md
  • Updated documentation if it is required.
  • Added tests if it is required.
  • Passed pnpm lint and pnpm test on the root directory.

Copy link
Member Author

@tasshi-me tasshi-me left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ざっくり修正するところリスト

@shabaraba shabaraba marked this pull request as ready for review February 10, 2025 06:56
@shabaraba shabaraba requested a review from a team as a code owner February 10, 2025 06:56
@shabaraba shabaraba requested review from chihiro-adachi and shabaraba and removed request for a team February 10, 2025 06:56
Comment on lines 1 to 3
esm
lib
ndoe_modules
Copy link
Member Author

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/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: node_modules

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
esm
lib
ndoe_modules
/esm
/lib
/node_modules

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちらで修正しました!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

すみません、ありがとうございます 🙇

Copy link
Member Author

@tasshi-me tasshi-me left a 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"],
Copy link
Member Author

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\""
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

テストの実行は後続タスクで追加する(まだJestも未導入なので)

Copy link
Member Author

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"
Copy link
Member Author

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"
Copy link
Member Author

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: クライアントをモックしてテスト実行できるようにする

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

テストは諸々後で修正するのでとりあえずeslint-ignoreなども使ってCIを通している

Copy link
Contributor

@chihiro-adachi chihiro-adachi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

@tasshi-me tasshi-me merged commit ad34908 into main Feb 12, 2025
18 checks passed
@tasshi-me tasshi-me deleted the feat/add-rest-js branch February 12, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants