Skip to content

Conversation

@thien-remote
Copy link
Collaborator

@thien-remote thien-remote commented Jan 21, 2025

To follow up on #108, this PR adds the Build step. It belongs to the same internal ticket of DEVXP-2530.

Unlike V1, we will use tsup now. Fun fact: it's built on top of esbuild, which is what we are using in V1. I actually don't know why V1 has Babel along though. Anyway, we will have a minimal build setup for V2: one config for TypeScript, and one for tsup.

(Reminder for contributors: add "tsup" to your spell check dictionary from now!)

That's it! That's the change. You can try it with pnpm run build right now.

wip

build(next): Switch to 1.0

build(next): Add lint

Co-Authored-By: David Dragovacz <[email protected]>
@thien-remote thien-remote marked this pull request as ready for review January 21, 2025 08:04
Copy link
Collaborator

@lukad lukad left a comment

Choose a reason for hiding this comment

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

👍 thanks Thien

Copy link
Collaborator Author

@thien-remote thien-remote left a comment

Choose a reason for hiding this comment

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

@sandrina-p @dragidavid this is ready for review now!

@antoniocapelo @lukad FYI

Copy link
Collaborator

@dragidavid dragidavid left a comment

Choose a reason for hiding this comment

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

Let's go! 🚀

@thien-remote thien-remote merged commit 6c00ce3 into main Jan 21, 2025
3 checks passed
@thien-remote thien-remote deleted the devxp-2530-build branch January 21, 2025 10:01
"sourcemap": true,
"minify": true,
"target": "es2020",
"outDir": "dist"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question

Should we update our package.json main value include the dist folder?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh yes we missed that 😆 I intend to do that in the Release step, last step of the setup

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.

5 participants