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

chore: configure repository #1

Merged
merged 5 commits into from
Jul 5, 2022
Merged

chore: configure repository #1

merged 5 commits into from
Jul 5, 2022

Conversation

tasshi-me
Copy link
Member

@tasshi-me tasshi-me commented Jul 4, 2022

Why

We split the data-loader from kintone/js-sdk to this repo.
However, some required configurations are missing.

What

  • can build, lint and test data-loader
    • pick missing configurations from js-sdk (tsconfig, deps, etc.)
    • configure eslint and prettier
  • update repository links

Test

yarn install
yarn build
yarn lint && yarn test

- add yarn.lock
- add hoisted dependencies
- extract tsconfig-base.json to tsconfig.json
- update .gitignore
@tasshi-me tasshi-me force-pushed the chore/configure-repository branch 2 times, most recently from 47f24fb to 6cef926 Compare July 4, 2022 06:02
@tasshi-me tasshi-me marked this pull request as ready for review July 4, 2022 07:09
@tasshi-me tasshi-me force-pushed the chore/configure-repository branch 2 times, most recently from 096380b to c059637 Compare July 4, 2022 08:18
@tasshi-me tasshi-me requested a review from ueokande July 4, 2022 08:34
@tasshi-me tasshi-me self-assigned this Jul 4, 2022
.github/ISSUE_TEMPLATE/bug.md Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
node-version: 16.x
cache: yarn
- run: yarn install --immutable
- run: yarn build
Copy link
Member

Choose a reason for hiding this comment

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

I belive this step is not required as test workflow run it.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ueokande
The src/__tests__/main.test.ts does E2E test using built js files in lib.

Besides, jest does not do type check, the build step also serves as a type check.

os: [ubuntu-latest, windows-latest]

steps:
- run: git config --global core.autocrlf false
Copy link
Member

Choose a reason for hiding this comment

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

why git config is required?

Copy link
Member Author

Choose a reason for hiding this comment

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

@ueokande
This is for the test case which compares a generated CSV and a fixture.
If autocrlf is enabled, The linebreak of fixture CSV is converted to CRLF and mismatches to generated CSV (LF).

Is it better to add .gitattribute?

FYI: the data-loader always exports JSON/CSV withLF currently.

@tasshi-me tasshi-me requested a review from ueokande July 5, 2022 05:49
@ueokande ueokande merged commit f2b1f0c into main Jul 5, 2022
@ueokande ueokande deleted the chore/configure-repository branch July 5, 2022 07:03
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.

2 participants