-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
[legacy-framework] feat: Implement the new Architecture! #95
Merged
Changes from 11 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
df432ab
wip
flybayer ed0157b
working rpc mutation
flybayer 2a65811
queries and mutations working!!
flybayer f0ecc03
prewarm the lamba
flybayer efd75e9
update withBlitz config wrapper - remove stuff no longer needed
flybayer 4d69717
switch from `pages` to `routes`
flybayer 129fb22
fix a test issue
flybayer 0e90a03
Merge branch 'canary' into new-arch
flybayer a94c052
fix cli test
flybayer 574b274
Add file addition and subtraction to transform stream
ryardley d1d8487
Remove comments
ryardley fbcba7c
Allow pages and routes
ryardley 31ec2f3
Allow routes folder without context
ryardley 4e4d20e
Tidy up build rules
ryardley 0030ea2
Fix broken transform test
ryardley 8e6f0a5
Use done callback to ensure all events have passed in stream test
ryardley 23877fc
Fix next build breaking
ryardley 2d02074
File generation RPC works
ryardley 2deeadb
Remove commented out code
ryardley c66d148
Ensure correct jest version so tests run and tidy up
ryardley 902e681
Fix up linting
ryardley 233def9
Tidy up synchroniser
ryardley a1e185c
Ensure watcher close is run when watchmode is false
ryardley fafa46c
typo
flybayer 63ddec8
update cli readme
flybayer 37251dc
Fix start error
ryardley 03dec76
Downgrade ts-jest to remove warning
ryardley 597f33e
fix build with static pages
flybayer a113685
rerun prettier on all files
flybayer 4ebfe46
yarn workspace: nohoist husky and prisma
flybayer 31dd966
add missing dependency
flybayer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
11 changes: 0 additions & 11 deletions
11
examples/store/app/products/mutations/createProduct_rpc.ts
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
examples/store/app/products/mutations/updateProduct_rpc.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const {withBlitz} = require('@blitzjs/server') | ||
|
||
module.exports = withBlitz({}) |
5 changes: 0 additions & 5 deletions
5
examples/store/routes/api/products/mutations/createProduct.ts
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
examples/store/routes/api/products/mutations/updateProduct.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import resolveBin from 'resolve-bin' | ||
|
||
export function resolveBinAsync(pkg: string) { | ||
return new Promise<string>((resolve, reject) => { | ||
resolveBin(pkg, (err, bin) => { | ||
if (err) { | ||
reject(err) | ||
} | ||
resolve(bin) | ||
}) | ||
}) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare module 'resolve-bin' { | ||
type Cb = (err: Error, bin: string) => void | ||
type Options = {executable?: boolean} | ||
export default function resolveBin(mod: string, opts: Cb | Options, callback?: Cb): void | ||
} |
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
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.
@ryardley is the issue with jest 25?
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 was finding having multiple versions of jest seemed to cause some tests that should have failed to pass at least on my local. We should try and upgrade it all to 25 to avoid the warning with
ts-jest
but I vaguely remember having issues with that too so maybe we can do that later or as a separate PR to ensure everything works?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.
Yes I just checked and tsdx can't handle the newer jest as it throws these errors:
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 just downgraded ts-jest and everything appears to be working with no warnings.