Skip to content

Feature/yarn clientjs scripts#3097

Open
danoswaltCL wants to merge 4 commits intodevfrom
feature/yarn-clientjs-scripts
Open

Feature/yarn clientjs scripts#3097
danoswaltCL wants to merge 4 commits intodevfrom
feature/yarn-clientjs-scripts

Conversation

@danoswaltCL
Copy link
Copy Markdown
Collaborator

  • makes yarn the js clientlib default
  • adds some root-level utilties for clean/ install / build / launch all the things, because why not

@danoswaltCL danoswaltCL requested review from bcb37 and zackcl May 4, 2026 17:34
Copy link
Copy Markdown
Collaborator

@bcb37 bcb37 left a comment

Choose a reason for hiding this comment

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

This looks convenient for some things.

Comment thread package.json Outdated
"install:all": "yarn && yarn --cwd clientlibs/js install",
"build": "yarn types build && concurrently \"yarn backend build\" \"yarn js-clientlib build\" \"yarn frontend build\"",
"launch": "concurrently -p \"[{name}]\" -n \"types,backend,frontend\" -c \"blue,magenta,cyan\" \"yarn types build\" \"yarn backend dev\" \"yarn frontend start\"",
"do-all-the-things": "yarn clean && yarn install:all && yarn build && yarn launch"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is a bit vague (e.g. it doesn't run tests or build either of the other 2 client libs) and a lot to type: Maybe 'clean-launch?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

i like clean-launch, will update

Comment thread package.json Outdated
"js-clientlib": "yarn --cwd clientlibs/js run",
"clean": "rm -rf node_modules clientlibs/js/node_modules packages/types/dist packages/backend/dist packages/frontend/dist clientlibs/js/dist",
"install:all": "yarn && yarn --cwd clientlibs/js install",
"build": "yarn types build && concurrently \"yarn backend build\" \"yarn js-clientlib build\" \"yarn frontend build\"",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should be careful this top-level build doesn't get used for CI, since we don't want to necessarily build the js clientlib in the container.

@danoswaltCL danoswaltCL requested a review from bcb37 May 5, 2026 15:50
@danoswaltCL
Copy link
Copy Markdown
Collaborator Author

@bcb37 updated based on comments

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