Skip to content

Conversation

@jaerod95
Copy link
Contributor

@jaerod95 jaerod95 commented Apr 7, 2025

Overview

Upgrades typescript and esbuild to latest versions and create a modern build script for bundling the CLI. This removes the need for the esbuild-node-tsc package which has been removed from the dev dependnencies list. The prepublish, start, and sync scripts have been updated to reflect the new esbuild file.
Additionally, drops the use of v8-compile-cache to simplify dependencies as the benefits for a cli of this size were minimal at best, and adds a basic CONTRIBUTING.md file to house future instructions to describe building and running the CLI locally.

Test Plan

  • install new dependencies with yarn install
  • DITTO_API_HOST=http://localhost:3001 yarn start builds and runs the plugin application like normal.

jaerod95 added 2 commits April 7, 2025 12:17
- Additionally removes the v8-compile-cache that provides little value in modern node applications of this size.
- Adds minification support via esbuild as well as cleaner map files.
- Updates package.json "files" property to now only ship required files to npm.
@jaerod95 jaerod95 changed the base branch from master to jrod/dit-10044-top-level-cli-branching April 7, 2025 19:35
@jaerod95 jaerod95 removed the request for review from rtbarnes April 8, 2025 19:29
Copy link
Contributor

@marla-hoggard marla-hoggard left a comment

Choose a reason for hiding this comment

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

I don't have a huge amount of context for these changes, but I was able to run yarn start yarn sync and yarn prepublishOnly successfully. prepublishOnly exits with an error, but the same is true on the parent branch, so I think that means it's expected?

@jaerod95 jaerod95 merged commit b866187 into jrod/dit-10044-top-level-cli-branching Apr 8, 2025
jaerod95 added a commit that referenced this pull request Apr 8, 2025
* Moves Legacy CLI into a `legacy` folder and provides a new entrypoint to the beta CLI

- adds a `--legacy (-l)` CLI option that forces the application to run in legacy mode.
- adds a new warning message when the CLI is run in legacy mode.

* Update lib/legacy/index.ts

Co-authored-by: Marla Hoggard <[email protected]>

* Cleanup build scripts and upgrade typescript and esbuild (#114)

* Modernize build system and upgrade esbuild and typescript

- Additionally removes the v8-compile-cache that provides little value in modern node applications of this size.
- Adds minification support via esbuild as well as cleaner map files.
- Updates package.json "files" property to now only ship required files to npm.

---------

Co-authored-by: Marla Hoggard <[email protected]>
@jaerod95 jaerod95 deleted the jrod/dit-10048-cleanup-npm-outputs-and-remove-package-warnings-when branch April 22, 2025 16:37
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