Skip to content
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

[Plugin] [0/9] Split plugin into separate files and add bundling option. #4209

Merged
merged 16 commits into from
Mar 28, 2023

Conversation

tjzel
Copy link
Contributor

@tjzel tjzel commented Mar 13, 2023

Summary

More work on plugin refactorization. This is simply splitting the code into files without any changes to it and adding esbuild bundler to generate a single file.

Test plan

Run yarn jest and build Example app.

plugin/package.json Outdated Show resolved Hide resolved
@tjzel tjzel changed the title [Plugin] Split plugin into separate files and add bundling option. [Plugin] [0/9] Split plugin into separate files and add bundling option. Mar 14, 2023
plugin/package.json Outdated Show resolved Hide resolved
plugin/package.json Outdated Show resolved Hide resolved
plugin/src/commonFunctions.ts Outdated Show resolved Hide resolved
plugin/src/commonFunctions.ts Outdated Show resolved Hide resolved
plugin/src/commonFunctions.ts Outdated Show resolved Hide resolved
tjzel and others added 3 commits March 27, 2023 14:09
Co-authored-by: Tomek Zawadzki <tomasz.zawadzki@swmansion.com>
move exports to variables and functions
tjzel and others added 4 commits March 27, 2023 16:29
plugin/src/commonFunctions.ts Outdated Show resolved Hide resolved
plugin/src/commonInterfaces.ts Outdated Show resolved Hide resolved
plugin/src/injectVersion.ts Outdated Show resolved Hide resolved
plugin/package.json Outdated Show resolved Hide resolved
plugin/src/commonObjects.ts Show resolved Hide resolved
plugin/tsconfig.json Outdated Show resolved Hide resolved
Copy link
Member

@tomekzaw tomekzaw left a comment

Choose a reason for hiding this comment

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

👏

@tjzel tjzel added this pull request to the merge queue Mar 28, 2023
Merged via the queue into main with commit 6095834 Mar 28, 2023
@tjzel tjzel deleted the @tjzel/plugin-split-into-separate-files branch March 28, 2023 11:06
tjzel added a commit that referenced this pull request Mar 28, 2023
## Summary

Follow-up to #4209.

See diff for `plugin/build/plugin.js`.

## Test plan

Run `yarn plugin` and `yarn jest`.
tjzel added a commit that referenced this pull request Mar 29, 2023
…se TypeScript for plugin. (#4210)

## Summary

Since we are using TypeScript for plugin now we should get rid of
passing the magic `t` object as a function argument and use proper
imports instead. Also we no longer import whole `BabelCore` and
`BabelTypes` but just the required objects. This is a direct follow up
to #4209

## Test plan

`Yarn jest`, these changes don't touch plugin's logic.
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
…on. (software-mansion#4209)

## Summary

More work on plugin refactorization. This is simply splitting the code
into files without any changes to it and adding `esbuild` bundler to
generate a single file.

## Test plan

Run `yarn jest` and build Example app.

---------

Co-authored-by: Tomek Zawadzki <tomasz.zawadzki@swmansion.com>
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
…mansion#4294)

## Summary

Follow-up to software-mansion#4209.

See diff for `plugin/build/plugin.js`.

## Test plan

Run `yarn plugin` and `yarn jest`.
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
…se TypeScript for plugin. (software-mansion#4210)

## Summary

Since we are using TypeScript for plugin now we should get rid of
passing the magic `t` object as a function argument and use proper
imports instead. Also we no longer import whole `BabelCore` and
`BabelTypes` but just the required objects. This is a direct follow up
to software-mansion#4209

## Test plan

`Yarn jest`, these changes don't touch plugin's logic.
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.

None yet

2 participants