* Use latest versions for app template
* Make dependency swapping more robust
* Make it faster
* Only upgrade as far as the current major version
* Use dep replace for devDependencies as well
* pretty print json and add .npmrc
* Clean up fetching
* Fail on a case-by-case basis
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
* adds blitz branding to welcome template screen
* add dynamic name tag back in
* updates and new logo
* adds dynamic title
Co-authored-by: Brandon Bayer <b@bayer.ws>
* add the `blitz` package (but yarn blitz start not working)
* wip
* working
* updates
* cleanup
* adjustment
* chore: make 'blitz' work (#129)
* chore: make 'blitz' work
* fix: make example work in dev mode with blitz mono-package
* test: skip failing test re patched version of next
* fix: issues re bundling & store example
* fix blitz building in development and some other cleanup
* fixes for CLI usage from blitz
* more changes. blitz build still broken from child_process thing
* remove .yarnrc
* few DX fixes
* fix bug in store example
* fix the build and CLI!
* code comments
* delete vanilla-next
* fix tests
* fix tests
* fix CI tests
* remove server export from `blitz` since end-users don't use it
* move README into the Blitz package
* add link-cli script
* change prisma resolve to use resolveBinAsync
Co-authored-by: Michael Edelman <michael@fabulas.io>
* First pass at warning about duplicate routes
* Move dupe checker to its own function
* Fix some accidental changes
* Revert yarn.lock(?)
* Route > page
* Use pages for store example
* Warn about nested api routes
* Check for duplicate api routes
* Warn api dupe routes
* Remove stray process.exit
* Merge api and pages dupe checkers
* Delete old checkers
* Remove stray line
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
* wip
* working rpc mutation
* queries and mutations working!!
* prewarm the lamba
* update withBlitz config wrapper - remove stuff no longer needed
* switch from `pages` to `routes`
* fix a test issue
* fix cli test
* Add file addition and subtraction to transform stream
* Remove comments
* Allow pages and routes
* Allow routes folder without context
* Tidy up build rules
* Fix broken transform test
* Use done callback to ensure all events have passed in stream test
* Fix next build breaking
* File generation RPC works
* Remove commented out code
* Ensure correct jest version so tests run and tidy up
* Fix up linting
* Tidy up synchroniser
* Ensure watcher close is run when watchmode is false
* typo
* update cli readme
* Fix start error
* Downgrade ts-jest to remove warning
* fix build with static pages
* rerun prettier on all files
* yarn workspace: nohoist husky and prisma
* add missing dependency
Co-authored-by: Rudi Yardley <contact@rudiyardley.com>
* Add logging
* Add better commit message
* Ensure will only run if jest is running
* Add manifest to output log
* Update message
* Use specific ignore in build folder
* Add dot ahead of ignored patterns
* Close Watcher
* Remove stray reference
* Neaten up
* Add base generator class
* change from mem-fs to fs.mkdirSync due to undefined error
* Add base command class
* Add conflict checker
* Add dry run to generator
* Add install via npm or yarn
* Add --no-yarn
* remove unused nyc dependency
Co-authored-by: marcoseoane <marcorseoane@outlook.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
* Added financial contributors to the README
* Add @flybayer as a contributor
* Add @medelman17 as a contributor
* Add @ryardley as a contributor
* Add @toddgeist as a contributor
* Add @quirk0o as a contributor
* Add @tsawan as a contributor
* Add @camilo86 as a contributor
* Add @dkempner as a contributor
* Add @gielcobben as a contributor
* Add @MrLeebo as a contributor
* Add @jimthedev as a contributor
* update readme & add CONTRIBUTING.md
* add Kristina
* Add @robdrosenberg as a contributor
* Add @jasonblalock as a contributor
* Add @coreybrown89 as a contributor
* Add @aej11a as a contributor
* update badegs
* tweak
* tweak
* more
Co-authored-by: Jess <jessachandler@gmail.com>
* Extract config
* Use gulp pipes to apply tranforms and write manifest.
* Add linting comments to allow import reordering
* Fix manifest bug
* Refactor to pipeline and fix testing method
* Include clean
* Fix up dependencies and tidy up code
* Fix newline issue
* Fix dependencies again
* Fix up testing strategy for file manipulations
* Renaming file because of inconsistency pt1
* Renaming file because of inconsistency pt2
* Update CLI test
* Debug CI build failures not occuring locally
* Include catch for missing unlink
* Expose next-executable
* Redirecting errors correctly with mocked rules
* Add comments about what is waiting
* Remove prepare as it was causing errors when installing dependencies
* Mock outer function instead of call to spawn
* Try using import *
* Remove CI switch as that was not the problem
Co-authored-by: Brandon Bayer <b@bayer.ws>
* Only create a prisma client when it actually needed
* Setup start script for a simple next-project
* Enable "compile to next" on first-demo
* Whitespace
* Fix failing webpack config test
* Testing spawn call
* Neaten up code
* Test tsExtraMock instead of reporter
* Test file deletion
* Better file locations
* Dont need persistent anymore
* Development, Production, Build, Deploy
* Add ts-ignore so we dont get compiler errors
* Remove test on command with flags
* Tidy up typescript config and add test
* Add comment around type issues
* Remove author field
* Tidy up config changs
* quiet core tests
* move es6 from root tsconfig to cli tsconfig
* Rename start -> scripts and tidy up descriptions
* Test build script
* Fix up test description
* Fix bug in build script
Closes#21, #36
Co-authored-by: Brandon Bayer <b@bayer.ws>
* add run tests command
* add test command
* add test cmd unit test
* uses project package manager (npm/yarn) to run test script
Co-authored-by: Brandon Bayer <b@bayer.ws>
closes#22
* Add core tests
- Tests cover Form and Controller
- You can check code coverage with "yarn test --coverage"
* A little formatting + form test modifications
* add back console log
Co-authored-by: Yanick Bélanger <yanick.belanger@yahoo.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
* v0.0.1
Initial PR for oclif CLI
* update prettier config
* chore: repo updates - run prettier on commit
* organize package.json + correct package name
* Add initial app generator
* changes & cleanup
* more tweaks
* Add basic nextjs generation
* #9 Swapping Mocha with Jest for CLI
Swapped Mocha with Jest.
* Swapping Mocha with Jest for CLI
Swapped Mocha with Jest.
* add `yarn b [COMMAND]` for dev convenience
* Formalize path arg
* Make jest work
* Remove empty commands and make tests pass
* Fix path argument
* Revert "target" in tsconfig.json
* Remove `target` from cli package.json
* Fix build command
* Use custom tsconfig for test script
* remove nyc because jest has coverage built in
* little cleanup
Co-authored-by: Mina Abadir <mina@abadir.email>
Co-authored-by: Lorenzo Rapetti <lorenzo.rapetti.94@gmail.com>
* add github link to demo
* fix(core): connect to db right away + fix for connection undefined
* changes to demo needed for production deployment
* fix(demo): relax tsconfig
* upgrade prisma & fix core for deployment
* demo updates
* wip
* chore: fix typings, tweak build config
* update prettier config
* set up husky to run prettier on commit
* add migrate script and update readme
* changes, still broken
* add yarn dev command
* more changes, still broken
* demo working again!
* fix: yarn why do you hate me so much?
* add to gitignore
* trying to get demo dev to work right
* refactor and cleanup
* more cleanup
* update deps
* tweak
* update readme
* fix
* update readme
Co-authored-by: Michael Edelman <michael@edel.mn>
Bump react, react-dom, @types/react and next versions
This fixes a console warning: `Warning: Received `true` for a non-boolean attribute `global`.` when using `styled-jsx`. Versions bump also fixes React Hydration error that happens on and off when using `redirectAuthenticatedTo`.
Guard `blitz g` input via an allow-list of characters; throw if unwanted characters are found. Prevents to break the blitz command by accident (https://github.com/blitz-js/blitz/issues/4021).
These are various changes to will make the codemod more dynamic and work with a larger variety of codebases. These fixes are implemented to make the codemod work with flightdeck.
- New Blitz Auth Function `getAppSession`, This function will use the cookies and headers provided by the server component and returns the current session.
- New Blitz Auth Hook `useAuthenticatedAppSession`, This hook is implemented as the replacement of the BlitzPage seurity auth utilities provided for the pages directory to work with React Server Components in the Nextjs 13 app directory
- New Blitz React Server Component Wrapper, `BlitzProvider` is to be imported from setupBlitzClient in src/blitz-client.ts and to used to ideally wrap the entire application in the `RootLayout` in the root layout.ts file of next app directory.
- Fix failing tests due to the error `NextRouter is not mounted` in next 13 blitz apps
This updates the suspense patch to work with Next.js 13.2+. Hopefully soon we can stop patching once Next.js catches up with all the other frameworks and properly [exposes the `onRecoverableError` react hook](https://github.com/vercel/next.js/discussions/36641).
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.