-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(remix): Add release / sourcemap upload script. #5312
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
Conversation
size-limit report 📦
|
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.
Can we add a note that if they need more advanced config to set up sentry-cli
themselves?
Also any way we can unit test this script?
.option('buildPath', { type: 'string', describe: 'The path to the build directory' }) | ||
.usage('Usage: $0 --release RELEASE [--urlPrefix URL_PREFIX] [--buildPath BUILD_PATH]').argv; | ||
|
||
const RELEASE = argv.release; |
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.
Can we default the release to use propose-version? (https://docs.sentry.io/product/cli/releases/#creating-releases)
f3a6fc4
to
9d87ae7
Compare
@AbhiPrasad, |
// This is a workaround for that. | ||
// | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const SentryCli = require('@sentry/cli') as typeof SentryCliModule; |
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.
IMO, I’d rather just make this a javascript file and not have the workaround for TS. The unit tests should be enough to make sure we are enforcing correct behaviour.
3ebf2e7
to
524d4e0
Compare
524d4e0
to
b710150
Compare
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.
Nice, great work @onurtemizkan to bring this to the finish line.
I can take care of the release registry work + unprivating the package + cutting an alpha release so we can test. We'll probably release this with 7.4.0-alpha.0
.
In the meantime, do you mind getting started on the README/docs?
Ref: #4894
Adds a mini CLI tool to create releases and upload Remix sourcemaps with a default path / prefix.
Uses
sentry-cli
under the hood and requires a valid.sentryclirc
to work.Usage:
Also removed
webpack
-related dependencies from Remix SDK, as we don't need them.