-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: migrate oas libraries of ours into this new monorepo #811
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have a lot of ideas for how we can consolidate a lot of the config here, but for the sake of this PR, LGTM!
|
||
[![Build](https://github.com/readmeio/oas/workflows/CI/badge.svg)](https://github.com/readmeio/oas/tree/main/packages/oas-extensions) | ||
|
||
[![](https://raw.githubusercontent.com/readmeio/.github/main/oss-header.png)](https://readme.io) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohhh thank you for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i was sick of seeing that cloudfront.net link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have an open design request to update this and i was literally thinking of doing this so we can just update the graphic in one fell swoop
packages/oas/.npmignore
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we're specifying files via that files
array in the package.json
, we might not need a lot of this but that can happen in a separate PR.
packages/oas-to-har/tsup.config.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would love to make a shared tsup
config at the top level (but again, can happen in a separate PR)
.github/workflows/ci.yml
Outdated
@@ -31,4 +31,16 @@ jobs: | |||
steps: | |||
- uses: actions/checkout@v4 | |||
- run: npm ci | |||
|
|||
# With the way these libraries use each other we need to run our build step for linting in a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it'd be safer to configure stuff like this via lerna, that way we can run a top-level npm run build
command. i think something like this? https://lerna.js.org/docs/concepts/task-pipeline-configuration#define-task-dependencies-aka-task-pipelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It only seems like we're able to say "run before " but only on a global level. I don't see any way with Lerna/NX to set up something that says "run oas-normalize
build before oas
build`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i might play around with turborepo at some point: https://turbo.build/repo/docs/core-concepts/monorepos/task-dependencies
} else if (typeof obj === 'object') { | ||
return 'json'; | ||
} else if (typeof obj === 'string') { | ||
if (obj.match(/\s*{/)) { |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
* refactor: remove pretest scripts that way we're not double linting * refactor: build using lerna * chore: oops
🧰 Changes
This migrates the following libraries into the new monorepo structure that I've started with #810:
Others that may be moved later: