Skip to content

Conversation

@tduyng
Copy link

@tduyng tduyng commented Feb 25, 2025

Summary

Rewrite @ekino/config for v2.0

Motivation

  • It's been so long time the library is not maintained
  • Rewrite this library for adapting the modern Node.js (Typescript, ESM)

What has changed?

Here are the key changes made in this PR:

  • Rewritten in ESM and support for dual package (CommonJS and ESM)
  • Removed lodash and other unnecessary dependencies
  • Replaced yarn with pnpm, which is faster and more convenient with different commands and management
  • Update GitHub Actions and use git-cliff on GitHub Actions for easily customizable CHANGELOG
  • Replaced ESLint + Prettier with Biome, which is faster, has sufficient rules, and is easier to set up
  • Rewrote all tests from jest + nyc to vitest (compatible with ESM)

Test plan

  • All unit tests have been remained the same and fix correctly with Vitest syntax

Also close issue #40

tduyng and others added 30 commits October 29, 2024 20:57
@tduyng
Copy link
Author

tduyng commented May 23, 2025

TODO: fix github-action for release and changelog.


strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

Choose a reason for hiding this comment

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

Suggested change
node-version: [18.x, 20.x, 22.x]
node-version: [20.x, 22.x, 24.x]

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, it’s been quite a long time since this PR was created.

release:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: ${{ github.actor == 'pebie' || github.actor == 'leguellec' }}

Choose a reason for hiding this comment

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

are you sure about that ? xD

Copy link
Author

Choose a reason for hiding this comment

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

I took the idea from other projects like veggies and node-logger. But now I’ve set it up for all maintainers and admins, not just Mika or Julos.

version: 10
run_install: false

- name: Setup Node.js 22.x

Choose a reason for hiding this comment

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

Suggested change
- name: Setup Node.js 22.x
- name: Setup Node.js 24.x

Copy link
Author

Choose a reason for hiding this comment

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

Done!

- name: Setup Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: '22.x'

Choose a reason for hiding this comment

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

Suggested change
node-version: '22.x'
node-version: '24.x'

Copy link
Author

Choose a reason for hiding this comment

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

Done!

CONTRIBUTING.md Outdated

## How to contribute

Follow this guide to ensure a smooth contribution process. If you're planning significant work or substantial changes, please create an issue labeled "contribution enquiry" to discuss your proposal. This will help ensure that your work aligns with the project's goals.

Choose a reason for hiding this comment

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

  1. The label does not exist
  2. New comers cannot add labels themself

Copy link
Author

Choose a reason for hiding this comment

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

Yes, same issues like node-logger. Thank @Nico385412. Done!

@coveralls
Copy link

coveralls commented Dec 3, 2025

Coverage Status

coverage: 97.08% (+5.7%) from 91.358%
when pulling 0fc2b64 on tduyng:2.0
into fb6a80f on ekino:master.

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