-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Implement Wasp SDK generation #1626
Merged
Merged
Changes from all commits
Commits
Show all changes
144 commits
Select commit
Hold shift + click to select a range
da8b259
Early prototype
sodic 0d7087f
Add prototype migration script and fix some issues
sodic e3fdecc
Merge branch 'main' into filip-restructuring-prototype
sodic 6789cd5
Update the todo-ts prototype version to match main
sodic eb338c6
Switch user files to the new (vertical) structure in prototype
sodic 35c9efa
Prototype with direct imports works in development
sodic d51e64b
Fix typo in package.json
sodic 22c7706
Revert cosmetic updates to todo-typescript example apps
sodic 02bdcbe
Remove old queries files
sodic 1002c4b
Remove extra dependencies from auth package
sodic 8d39046
Remove completed todo
sodic 3fd2f16
Remove redundant server types
sodic 20b5ef7
Remove redundant exports from operations
sodic 577c6cf
Remove redundant dependencies and package lock
sodic 3da3f52
Remove npm install skip
sodic 3ceb92d
Fix formatting
sodic 1c6a12f
Make migrate script more portable
sodic d22922d
Turn scoped package into a single package
sodic 49c85e0
Generate SDK from templates in prototype
sodic a02e047
Add project and sdk depdency installation
sodic fbbda45
Remove redundant npm install message
sodic 3606f45
Add package.json to AppSpec
sodic 6ece919
Handle dependencies through package.json
sodic 6ad7c54
Implement wasp reset
sodic fba7e16
Remove redundant import
sodic df7d9e1
Merge branch 'filip-project-install-step' into filip-wasp-reset
sodic d8f9ee2
Fix double installation of dependencies
sodic 52c547b
Move prisma client to top-level node_modules
sodic a1dfcdd
Rename args to cmdArgs
sodic a985446
Fix formatting
sodic 53ac450
Fix formatting
sodic ea5a4c1
Remove @prisma/client from project deps
sodic b4f813e
Merge branch 'filip-project-install-step' into filip-restructuring-pr…
sodic 45a827f
Merge branch 'filip-project-install-step' into filip-wasp-reset
sodic afdb509
Merge branch 'main' into filip-restructuring-prototype
sodic a5a7382
Make prototype work with inject auth changes
sodic 3de8205
Merge branch 'filip-restructuring-prototype' into filip-project-insta…
sodic 2459306
Merge branch 'filip-project-install-step' into filip-restructuring-pr…
sodic 06fc466
Merge branch 'filip-project-install-step' into filip-wasp-reset
sodic 1999b21
Add fix and cleanstart scripts
sodic 60ae566
Merge branch 'filip-project-install-step' into filip-restructuring-pr…
sodic b43e704
Merge branch 'filip-restructuring-prisma' into filip-wasp-reset
sodic 1a17a72
Add generated sdk code to Git for easier diffing
sodic 9bd044e
Update restructuring sdk base for cleaner diffs
sodic 7838707
Update cleanstart script for cleaner diffs
sodic 37d0662
Update cleanstart script for cleaner diffs
sodic cf00106
Set up proper SDK generation and generate api module
sodic f76ed37
Update restructuring sdk base for cleaner diffs
sodic b6c353c
Update cleanstart script for cleaner diffs
sodic 668f999
Update cleanstart script for cleaner diffs
sodic 15f77f0
Add server/_types to proper SDK generation
sodic de4cf8a
Make relative imports aboslute in api sdk
sodic 6ea38e7
Update restructuring sdk base for cleaner diffs
sodic 6a0748c
Update cleanstart script for cleaner diffs
sodic 227675e
Merge branch 'filip-base-sdk' into filip-sdk
sodic 281ddcd
Add ext-src (operations), dbClient, and public to proper SDK gen
sodic d17fbe9
Fix deps duplication in restructuring
sodic ba1c358
Merge branch 'filip-restructuring-prisma' into filip-wasp-reset
sodic 132eaf3
Merge branch 'filip-wasp-reset' into filip-base-sdk
sodic aa0d496
Dedups probably fixes duplicate React
infomiho 0a0ac89
Start building SDK during project setup
sodic d710143
Add universal to proper SDK gen
sodic fcfe160
Add server/utils to proper SDK gen
sodic 79bf3cd
Change React plugin
infomiho 754fb29
fix
Martinsos 2749b95
Merge branch 'filip-project-install-step' into filip-restructuring-pr…
Martinsos 24c8d78
fix
Martinsos 0c6ee6c
Add server actions and queries to proper SDK gen
sodic 0894f5f
Merge branch 'filip-restructuring-prisma' into filip-wasp-reset
Martinsos c13216d
fix
Martinsos 667a31b
Merge branch 'main' into filip-restructuring-prototype
infomiho 2d44d9c
Reverted stdout prefix to similar how Filip improved it.
Martinsos 36f73c9
Merge branch 'filip-project-install-step' into filip-restructuring-pr…
Martinsos a1ac860
Merge branch 'filip-restructuring-prisma' into filip-wasp-reset
Martinsos 1146237
Updated docs regarding dependencies.
Martinsos 6061e8f
Merge branch 'filip-project-install-step' into filip-restructuring-pr…
Martinsos 23f2e85
Merge branch 'filip-restructuring-prisma' into filip-wasp-reset
Martinsos a35040e
Apply latest auth changes to the prototype (#1646)
infomiho 662219c
Merge branch 'filip-restructuring-prototype' into filip-project-insta…
sodic 453986c
Fix types after merge
sodic 38ffdd3
Merge branch 'filip-project-install-step' into filip-restructuring-pr…
sodic 66682ff
Fixes HttpError and AuthError instanceof bug (#1648)
infomiho 24b2540
Fix problems after merge
sodic 66a68c9
Merge branch 'filip-restructuring-prisma' into filip-wasp-reset
sodic 6ca93dd
Merge branch 'filip-wasp-reset' into filip-base-sdk
sodic 14fce19
Update base sdk after recent changes
sodic a514067
Merge filip-base-sdk into filip-sdk
sodic 48e9778
Fix changes after merge
sodic 7e8ae2c
Removed redundant TODOs
Martinsos 1ddd3e3
Add core to proper SDK gen
sodic 873ddbe
Remove hardcoded leftovers in SDK
sodic bba4df8
Add operations to proper SDK gen
sodic a7748ef
Add types to proper SDK gen and fix auth leftovers
sodic b3dcdd1
Moves custom Vite config in project root dir (#1651)
infomiho edf2fc9
Add auth to proper SDK gen: step 1
sodic 55edb3b
Add client-side auth to proper SDK gen
sodic 261e495
Remove redundant files from react-app templates
sodic ec5165c
Add server-side auth to proper SDK gen
sodic eeabe8e
Clean out some leftovers
sodic 22b48e0
SDK fixes for Email and Social auth (#1654)
infomiho 27e50da
Add rpc to proper SDK gen
sodic f1a51c0
Fixes DB seeding to work with new structure (#1659)
infomiho bb11866
Fixes all Prisma commands that depend on env (#1662)
infomiho ca3c11c
Add apis/types to proper SDK gen (#1661)
Martinsos 0f1786f
Moved middleware configuration to SDK + fixed sdk/server/config.
Martinsos 6fd7c91
Add server setup to proper SDK gen (#1667)
Martinsos 309638b
Added test for import dbClient in the todo-typescript. (#1668)
Martinsos d72109e
Fix signup export in SDK (#1669)
Martinsos 4358d26
Add configureQueryClient to proper SDK gen
sodic 73d9e6d
Added test for wasp/auth/useAuth.
Martinsos b85f8a4
Added wasp/auth to sdk/package.json.
Martinsos 5894c5d
Fixed comment in sdk/package.json for auth/user.
Martinsos 885f923
Added auth/types to sdk/package.json.
Martinsos be2ca4b
Added small test to todo-typescript for wasp/auth/validation.
Martinsos b55c1a6
Added small test to todo-typescript for wasp/auth/utils.
Martinsos 7ca496c
Added auth/email to sdk/package.json.
Martinsos 4a02f51
Added small test for AuthError to todo-typescript.
Martinsos d2e96e9
Migrate router helpers to SDK (#1666)
infomiho ac352ba
Migrates auth form elems and social helpers (#1676)
infomiho 22560f9
Add jobs to proper SDK gen (#1663)
infomiho 9699b61
Add email content functions to SDK gen (#1675)
Martinsos d2510da
Add WebSockets to proper SDK gen (#1670)
infomiho b5e24c7
Add email sender to proper SDK gen (#1674)
infomiho 6506ff1
Add email utils to proper SDK gen (#1677)
infomiho b058eab
Add CRUD to proper SDK gen (#1656)
infomiho 151b478
Removes redundant comment
infomiho 79526b2
Fix npm installation in restructuring (#1652)
Martinsos 675df9a
Merge branch 'filip-wasp-reset' into filip-base-sdk
sodic c8370bf
Migrating `vitest` to SDK (#1672)
infomiho 7b73b1d
Merge branch 'filip-base-sdk' into filip-sdk
sodic 8588660
Merge branch 'main' into filip-restructuring-prototype
sodic f85daea
Merge branch 'filip-restructuring-prototype' into filip-project-insta…
sodic ca188eb
Merge branch 'filip-project-install-step' into filip-restructuring-pr…
sodic 6c26c91
Merge branch 'filip-restructuring-prisma' into filip-wasp-reset
sodic 9d2bc94
Merge branch 'filip-wasp-reset' into filip-base-sdk
sodic c044d87
Merge branch 'filip-base-sdk' into filip-sdk
sodic c2d5bcd
Move all JS in SDK files to TS (#1680)
infomiho a3951a2
Merge branch 'filip-restructuring' into filip-restructuring-prisma
sodic 009ceb8
Merge branch 'filip-restructuring-prisma' into filip-wasp-reset
sodic b71d7ea
Merge branch 'filip-restructuring' into filip-wasp-reset
sodic 4d4664d
Merge branch 'filip-restructuring' into filip-wasp-reset
sodic 403b837
Merge branch 'filip-wasp-reset' into filip-sdk
sodic 7fea5dc
Remove generator output from Git
sodic 76d0cd0
Merge branch 'filip-restructuring' into filip-sdk
sodic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
waspc/data/Generator/templates/react-app/scripts/validate-env.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { throwIfNotValidAbsoluteURL } from './universal/validators.mjs'; | ||
import { throwIfNotValidAbsoluteURL } from 'wasp/universal/validators'; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this file is now a part of an NPM package (the SDK):
|
||
console.info("🔍 Validating environment variables..."); | ||
throwIfNotValidAbsoluteURL(process.env.REACT_APP_API_URL, 'Environemnt variable REACT_APP_API_URL'); |
10 changes: 0 additions & 10 deletions
10
waspc/data/Generator/templates/react-app/src/actions/_action.ts
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
waspc/data/Generator/templates/react-app/src/actions/core.d.ts
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
waspc/data/Generator/templates/react-app/src/actions/core.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The SDK needs these two for building. Also, our framework code relies on them existing.
Therefore, I concluded this is the best place to specify them as dependencies.