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

[react-transform] Support more component definitions & expand tests #441

Merged
merged 37 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
88b7ce3
Add transform test for memo'ed components
andrewiggins Oct 5, 2023
7d7d8c3
Handle using memo and forwardRef on components in transform
andrewiggins Oct 5, 2023
6a8921d
Remove top-level restriction to transform components written in tests
andrewiggins Oct 5, 2023
bf6ed90
Add notes about additional tests to add
andrewiggins Oct 5, 2023
003cf2d
Add some more tests
andrewiggins Oct 6, 2023
e4a7ee9
Start build test generator
andrewiggins Oct 6, 2023
60063c2
Add call exp wrappers and restructure generators
andrewiggins Oct 8, 2023
95614f0
Align prettier versions
andrewiggins Oct 8, 2023
7198591
Add var decl, assignment, obj prop, export default & named generation
andrewiggins Oct 8, 2023
c1a882f
Simplify hoc tests to only test valid names or not
andrewiggins Oct 8, 2023
56cf7e1
Always check state first before checking name
andrewiggins Oct 8, 2023
7c36d15
Rename helpers extension to make TS importing work
andrewiggins Oct 8, 2023
4f6b041
Start using helpers in test file
andrewiggins Oct 8, 2023
de1da1e
Add TODO to refactor get function name methods
andrewiggins Oct 8, 2023
30d4ad0
Fix assignment expression tests
andrewiggins Oct 8, 2023
b87dcda
Add some notes to assist future debugging
andrewiggins Oct 8, 2023
02c384e
Change formatting a bit
andrewiggins Oct 8, 2023
dc17f03
Update transform to parse filename for export default components
andrewiggins Oct 9, 2023
251a0bc
WIP: Hook comment generation to tests
andrewiggins Oct 9, 2023
71f829f
Fix searching for opt in/out comment through HoCs
andrewiggins Oct 9, 2023
d0dbdcc
Clean up code a bit
andrewiggins Oct 9, 2023
c9349ed
Use block comments instead of line comments in generated code
andrewiggins Oct 9, 2023
dd2c9cf
Remove some redundant tests
andrewiggins Oct 9, 2023
7f9c314
Remove some redundant helpers
andrewiggins Oct 9, 2023
9ebc6f4
Cover additional test cases
andrewiggins Oct 9, 2023
1165bba
Rename some older tests to make them more scan-able
andrewiggins Oct 9, 2023
7642eb0
Support multiple test ids in debug helper
andrewiggins Oct 9, 2023
9527ce6
Setup inline variable comment tests
andrewiggins Oct 10, 2023
ab0dc8c
Fix object property tests
andrewiggins Oct 10, 2023
415210d
Update debug code again
andrewiggins Oct 10, 2023
150a8c3
Add some notes at the top of helpers.ts
andrewiggins Oct 10, 2023
1d2edd9
Refactor function name functions
andrewiggins Nov 15, 2023
5952b73
Add support for components assigned to member expressions
andrewiggins Nov 15, 2023
6ae9e81
Support object method components
andrewiggins Nov 16, 2023
575d530
Merge branch 'main' into improve-transform
andrewiggins Nov 16, 2023
ce7fc4a
Add changeset
andrewiggins Nov 16, 2023
ac06c35
Clean up old tests
andrewiggins Nov 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Align prettier versions
  • Loading branch information
andrewiggins committed Oct 8, 2023
commit 95614f02113b3cbdaac23cf5537cb4aba395ef58
4 changes: 2 additions & 2 deletions packages/react-transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@
"@types/babel__core": "^7.20.1",
"@types/babel__helper-module-imports": "^7.18.0",
"@types/babel__helper-plugin-utils": "^7.10.0",
"@types/prettier": "^3.0.0",
"@types/prettier": "^2.7.3",
"@types/react": "^18.0.18",
"@types/react-dom": "^18.0.6",
"@types/use-sync-external-store": "^0.0.3",
"assert": "^2.0.0",
"buffer": "^6.0.3",
"path": "^0.12.7",
"prettier": "^3.0.3",
"prettier": "^2.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.9.0"
Expand Down
21 changes: 6 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.