Skip to content

FEAT : add ts, prettier, vitest and CI - #1

Merged
CMarzin merged 7 commits into
mainfrom
upgrade-to-ts
Jul 21, 2025
Merged

FEAT : add ts, prettier, vitest and CI#1
CMarzin merged 7 commits into
mainfrom
upgrade-to-ts

Conversation

@CMarzin

@CMarzin CMarzin commented Jul 17, 2025

Copy link
Copy Markdown
Owner
  • Update roadmap package
  • Add Typescript instead of babel
  • Add test
  • Add CI
  • Add format prettier

@CMarzin CMarzin self-assigned this Jul 21, 2025
@CMarzin CMarzin added the enhancement New feature or request label Jul 21, 2025
@CMarzin
CMarzin merged commit d44e7e0 into main Jul 21, 2025
1 check passed
@CMarzin
CMarzin deleted the upgrade-to-ts branch July 21, 2025 15:00
Comment thread .github/workflows/ci.yml
with:
node-version: '20.17.0'

- name: Install dependencies

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

npm ci is what you want to do since it will NOT write your package-lock, I think you can remove this step

Comment thread README.md
[x] Add CI
[x] Add Typescript
[x] Add License
[ ] Add the possibility to create a pull request for Github.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔥

Comment thread bin/api-client.js.map

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

is it expected to version bin files ?

Comment thread coverage/base.css

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Seems weird to push coverage results, you might want to use https://about.codecov.io/

Comment thread src/api.ts
}: MergeRequestData) {
let mergeRequestUrl = ''

mergeRequestUrl += `source_branch=${sourceBranch}`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you might want to use https://developer.mozilla.org/fr/docs/Web/API/URLSearchParams to handle such case

Comment thread package.json
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest --coverage.enabled --ui",
"ci": "npm run build && npm run check-format && npm run test"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

while this works, keep in mind that ci is a reserved keyword https://docs.npmjs.com/cli/v8/commands/npm-ci

Comment thread package.json
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest --coverage.enabled --ui",
"ci": "npm run build && npm run check-format && npm run test"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
"ci": "npm run build && npm run check-format && npm run test"
"ci": "npm ci && npm run build && npm run check-format && npm run test"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants