* Apply transform to file-pipeline
* Rewrite writer to correctly report that file has been deleted
* Debug windows issues
* Fix up action changes to run all tests
* Fix bad merge
* Fire ready event as string down pipeline
* Fire ready event always
* Add comment
* Close stream in test
* Debugging: Try skip live watching test
* Don't create the watcher unless we are in watch mode
* Update agnostic-source.test.ts
* Wait for close promise to end before starting other test
* Debug watcher limit issue
* Try increasing watchers
* Try increasing watchers after dependency installation
* Only increase watchers in linux
* Only increase watchers in linux
* Fix bad os selection
Co-authored-by: Brandon Bayer <b@bayer.ws>
* Allow api folder inside global pages folder to accommodate plain next app
* Removed warning about nested API routes
* Revert useless change
* Add test cases and fix up algorhythm
* Remove unnecessary function
* Allow Stage to have a ReadWriteStream so we can test it easily
* Add normalize to paths to account for windowz hackrz
* Remove comment
* Tidy up normalize code so it is clearer
* Extract out synchronizer
* Alter codeowner of synchronizer
* Move agnostic input to pipeline
* Fix up manifest writing
* Abstract away Manifest ready output
* Extract rules from pipeline
* Move rules to live within server as they are blitz specific business concerns and depend on next.js
* Fix up auto import error
* Fix up incorrect Manifest type path
* Create DEBUG logger
* Pass configuration to rules not synchronizer
* Rename configureRules function
* Tidy up file transformer API
* Simplify configuration
* synchronizer -> file-pipeline
* Rule -> Stage
* Use nullish coalescing now we have it in TS
* Add documentation for file-pipeline
* Update docs
* Move image and remove outdated diagram
* Update Docs
* Refactor: Remove pipeline folder
* Update readme with a PR suggestion
* Update wait on scripts
* Add Documentation
* Update docs
* Add display package
* Extract out log to display package
* Remove server references from packages that dont use it
* Remove incorrect dependency
* Fix up incorrect module field
* initial scaffolding for generate command and validation in place
* page generator
* mutation generator
* add query and crud generator
* move to server logger
* update docs with most recent API changes
* undo logging changes in new command
* rename a few things, clean up early returns
* use path context relative to the root
* lots of cleanup, changes, fixes
* fix test
Co-authored-by: Brandon Bayer <b@bayer.ws>
* Refactor logger and beautify rpc logging
* Resolve conflicts and make requested changes
* move rpcHandler into server package where it belongs
* improve logging even more
* fix dependency issue
(patch)
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
* 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>
* docs: add code of conduct
* Update README.md
* remove broken gh action
* chore: update readme
* Add initial Blitz Core and First Demo 🎉 (#11)
* 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>
* Live Demo Deployment (#12)
* 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
* chore(demo): add some comments
* fix(demo): untitled posts
* fix(demo): add content filtering!
* Add Open Collective Sponsor button (#15)
* fix(demo): switch to fruit content filter
* chore: add flybayer as codeowner of everything
* chore: Add Patreon and Paypal to the sponsor button options (#18)
* chore: add sponsor section to readme
* feat(cli): Add initial CLI (#8)
* 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>
* chore(core): Add core tests (#16)
* 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>
* fix: noop @prisma/client in browser, closes#13 (#19)
Co-authored-by: Brandon Bayer <b@bayer.ws>
* feat(core): Add withBlitz webpack wrapper + fix prisma/client (#31)
* add withBlitz webpack config wrapper
* Move prisma/client noop into withBlitz!
* chore: add pull_request event to github action
* docs: Update CODE_OF_CONDUCT.md (#28)
* feat(cli): Add `blitz console` command (#32)
Co-authored-by: Brandon Bayer <b@bayer.ws>
* feat(cli): Add `blitz test` command (#30)
* 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
* docs: add dev onboarding blurb to readme
* docs: fix typo
* chore: comment cleanup
* bug(example): Fix Invalid hook call error. (#37)
* fix: Fix jest version incompatability (#43)
* bug(webpack): Create webpack package to avoid context bugs (#42)
* Add new webpack package
* Delete webpack files from core
* Pin dependencies
* feat(cli): use custom REPL in console command (#38)
Co-authored-by: Brandon Bayer <b@bayer.ws>
* feat(core): Return 404 if controller action is not defined (#39)
Co-authored-by: Brandon Bayer <b@bayer.ws>
* fix(core): Add support for multiple attribute types for id (#35)
* Add support for multiple attribute types for id
* Add comment + tests
* test(examples): add cypress tests to first demo (#47)
* [examples] feat: setup cypress in first demo
* [examples] spec: add cypress tests for first demo
closes#44
* feat(cli): Compile to Next (#45)
* 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>
* fix(cli): Fix bug in build script (#49)
* Unlink doesnt work on folders
* Mock remove
* feat(cli): Add `blitz test watch` command #23 (#50)
* Add test watch
* Add test:watch
closes#23
Co-authored-by: Brandon Bayer <b@bayer.ws>
* tweak funding
* feat(cli): Add `blitz db` command #24 (#51)
* Add db command
* fixed test
closes#24
Co-authored-by: Brandon Bayer <b@bayer.ws>
* docs: Add the Blitz Manifesto! (#52)
* refactor(server): create server package (#57)
* @blitzjs/webpack -> @blitzjs/server
* Move server code out of cli
* Fix up type and lerna issues
* Prebuild non-cli before test
* Remove noise in PR
* fix: running tests locally after packages have been built
* chore: tweak github actions to remove duplicate builds
* feat: Upgrade next to latest release v9.3.0, closes#60 (#65)
Co-authored-by: Brandon Bayer <b@bayer.ws>
* feat(server): Errors respect file path redirection (#66)
* 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>
* docs: add manifesto to readme
* docs: update readme
* chore: add github sponsor link
* feat(server): Transform rules and synchronisation manifest (#69)
* 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
* bug(server): CI pathname errors for readable-stream (#71)
* Try setting normalise to false on tree testing
* Remove debugging log
* feat(cli): load dependencies in blitz console (#68)
* [cli] feat: autoload package dependencies in console
* feat: load Prisma Client into console context
* [cli] spec: fix spec for console command
Co-authored-by: Brandon Bayer <b@bayer.ws>
* Update MANIFESTO.md
* add initial file structure rfc
* Revert "add initial file structure rfc"
This reverts commit f48a776e99.
* Update README.md
* doc: Add All Contributors Spec, Add CONTRIBUTING.md, Update Readme (#77)
* 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>
* docs: add lorenzorapetti as a contributor (#80)
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
* docs: add aem as a contributor (#79)
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
* docs: add rishabhpoddar as a contributor (#78)
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
* docs: add marcoseoane as a contributor (#81)
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
* fix readme
* refactor(cli): CLI refactoring (#25)
* 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>
* chore: fix rishabhpoddar readme link
* Add @merelinguist as a contributor
* chore: tweak readme
* chore: update readme
* Fix dangling chokidar watch and add temporary logging. (#82)
* 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
* chore: add rudi as code owner of packages/server
* chore(deps): bump acorn from 5.7.3 to 5.7.4 (#83)
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: Rudi Yardley <contact@rudiyardley.com>
* docs: Fix website link (#86)
* Fix website link
* regenerate readme
Co-authored-by: Brandon Bayer <b@bayer.ws>
* docs: update readme
* chore: remove all prototype code in prep for new architecture code (#90)
* remove all prototype code and clean up deps
* fixes
* Fix launchEditor bug (#92)
* fix(server): Fix ignorePath (#94)
* Fix up globs
* Revert move as it doesnt really matter because of ignorePaths
* chore: upgrade dependencies (#96)
* feat: Implement the new Architecture! (#95)
* 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>
* chore: change version to 0.0.0
* chore: update lerna config
* v0.0.1-canary.0
* chore: remove version from examples
* v0.0.1-canary.1
* chore: update githead
* fix(examples): Fix Yarn link blitz cli failing (#105)
* Add version to example
* Try using generic versions
* fix(cli): spawn Windows .cmd entrypoints on win32 platform (#109)
Co-authored-by: Brandon Bayer <b@bayer.ws>
* docs: add wKovacs64 as a contributor (#111)
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
* feat(server): Warning about invalid routes/api structure (#106)
* 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>
* docs: add merelinguist as a contributor (#112)
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
* feat: use `db` folder instead of `prisma` (#114)
* feat: use `db` folder instead of `prisma`
* fix tests
* feat(cli): don't bundle cli (and remove pkg) (#115)
* feat(cli): don't bundle cli with pkg or anything. npm package now working
* fix tests
* chore: update lerna script
* v0.0.1-0.0.1-canary.4.0
* v0.0.2-alpha.0
* chore: update example dependency versions
* fix: build from dependency issues
* chore(examples): Make store work in prod (switch to Postgres) (#117)
* wip
* fix(example): changes for deploying store to Zeit. Switch to postgres
* feat: enable concurrent mode for Blitz apps (#118)
* v0.0.2-canary.0
* build(cli): fix @blitzjs/cli build script on Windows (#120)
* chore: fix all contributors badge generation
* docs: add alpha release note to readme
* docs: readme typo
* Change blitz new template to be a working blitz app (#123)
* change blitz new template to be a working blitz app
* fix tests
* Add the `blitz` package (#125)
* Revert "Add the `blitz` package (#125)"
This reverts commit 9e1ce7dda0.
* fix(cli): leverage cross-spawn for cross-platform compatibility (#122)
* fix(cli): leverage cross-spawn for cross-platform compatibility
* refactor(server): use cross-spawn in next-utils for consistency
* feat(server): `blitz.config.js` config support without `withBlit… (#130)
* Allow blitz config
* Add error message
* Update tests
* Support only blitz.config.js
* Remove blitz.config.js
Co-authored-by: Brandon Bayer <b@bayer.ws>
* give the README a fresh coat of paint!
* Update .all-contributorsrc
* Update README.md
* Update README.md
* automatically read .env for blitz cli commands (#133)
(minor)
* Add `blitz db studio` and `blitz db introspect` (#134)
(minor)
* Implement ssrQuery (#136)
* add medelman17 for code
* Update new app template: favicon, blitz.config.js, .env, fixes (#137)
* Rexport Next stuff from Blitz (#138)
* Update CONTRIBUTING.md
* feat(cli): add help for db commands (#139)
* docs: add sijad as a contributor (#141)
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
* v0.0.2-canary.1
* tweak readme
* Fix server for deployment to Zeit (#143)
* fix production, but tests still failing
* Fix missing await and avoid changing source folder
Co-authored-by: Rudi Yardley <contact@rudiyardley.com>
* Fix ugly blitz start --production error (#144)
* Automatically run `blitz db migrate` on every `blitz start` (#147)
* Automatically run `blitz db migrate` on every `blitz start`
* Fix test
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
* Update readme with benefits and features
* Update README.md
* Update MANIFESTO.md
* Add the `blitz` package and proper global/local CLI handling (#128)
* 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>
* add register to server package
* add publish script
* v0.5.0-canary.0
* v0.5.0-canary.1
* Many updates to blitz new template, including prettier, eslint,… (#150)
* update template app
* fix `blitz -v`
* v0.5.0-canary.2
* fix cli template files in npm package
* tweak link-cli scripts
* v0.5.0-canary.3
* Back out the auto db migrate, and instead only auto generate pri… (#151)
* change to only generate prisma client on blitz start
* add comment
* v0.5.0-canary.4
* move test mocks to top of file
* v0.5.0-canary.5
* Add the Alpha User Guide (#131)
* Create USER_GUIDE.md
* Update USER_GUIDE.md
* Update USER_GUIDE.md
* Update USER_GUIDE.md
* Update USER_GUIDE.md
* add custom header image
* Update USER_GUIDE.md
* add cli commands
* add blitz db introspect
* Update USER_GUIDE.md
Co-authored-by: Michael Edelman <michael@edel.mn>
Co-authored-by: Mina Abadir <mina@abadir.email>
Co-authored-by: Lorenzo Rapetti <lorenzo.rapetti.94@gmail.com>
Co-authored-by: Jeremy Liberman <mrleebo@msn.com>
Co-authored-by: Yanick Bélanger <yanick.belanger@yahoo.com>
Co-authored-by: Jim Cummins <jim.for.cy@gmail.com>
Co-authored-by: Beata Obrok <beata.obrok@u2i.com>
Co-authored-by: Camilo Gonzalez <cgs.camilogonzalez@gmail.com>
Co-authored-by: Rudi Yardley <contact@rudiyardley.com>
Co-authored-by: Tahir Awan <tahir.awan@gmail.com>
Co-authored-by: Giel <g.cobben@gmail.com>
Co-authored-by: Jess <jessachandler@gmail.com>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: marcoseoane <marcorseoane@outlook.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dylan Brookes <24858006+merelinguist@users.noreply.github.com>
Co-authored-by: Justin Hall <justin.r.hall@gmail.com>
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Sajjad Hashemian <sijad@disroot.org>
Co-authored-by: Michael Edelman <michael@fabulas.io>
* 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>
Removes the check for when withBlitz is mounted before rendering the users app. We had this previously to avoid the react 18 suspense error being showin in development with nextjs.
[Read the Contributing Guide at Blitzjs.com](https://blitzjs.com/docs/contributing)
## To run tests
Make sure you have `chromedriver` installed for your Chrome version. You can install it with
-`brew install --cask chromedriver` on Mac OS X
-`chocolatey install chromedriver` on Windows
- Or manually download the version that matches your installed chrome version (if there's no match, download a version under it, but not above) from the [chromedriver repo](https://chromedriver.storage.googleapis.com/index.html) and add the binary to `<next-repo>/node_modules/.bin`
You may also have to [install Rust](https://www.rust-lang.org/tools/install) and build our native packages to see all tests pass locally. We check in binaries for the most common targets and those required for CI so that most people don't have to, but if you do not see a binary for your target in `packages/next/native`, you can build it by running `yarn --cwd packages/next build-native`. If you are working on the Rust code and you need to build the binaries for ci, you can manually trigger [the workflow](https://github.com/vercel/next.js/actions/workflows/build_native.yml) to build and commit with the "Run workflow" button.
[](https://www.apiseven.com/en/contributor-graph?chart=contributorOverTime&repo=blitz-js/blitz)
Currently at this very early stage it's basically a [BDFL situation](https://opensource.guide/leadership-and-governance/#what-are-some-of-the-common-governance-structures-for-open-source-projects), with me having the final say in decisions.
However we will move away from BDFL to something that looks more like Ember.js. It's extremely important to me (Brandon) that Blitz.js is a long-term, sustainable, and community-run project.
I would love some mentorship from people with experience in large open-source projects on making this transition.
Also, it's possible I will create one or more business around Blitz, perhaps similar to how Taylor Otwell has around Laravel, but Blitz itself will always remain a separate community-run project.
- Next major release will include auth by default and allow you to choose your form library
- Next auth features are email confirmation
- After that, logging and plugins are next
- Adam:
- Overhauled the recipe infrastructure. Now using jscodeshift instead of recast
- Added support for conditional JSX in templates
- Going to work on custom templates next
- Dwight
- Has been opening issues for problems
- Made a few PRs for some issues
# 2020-07-07 Blitz Contributor Call
- Attending: Brandon Bayer, Robert Rosenburg, Jeremy Liberman
- Brandon:
- Finishing up session managment code
- Waiting for review of session managment code from Rishabh
- Will be working on actual auth code (vs session management) like password hashing, password reset, social login, etc.
- Benefits of our session managment vs rails
- Don’t have to redirect to login page
- Using top level error component that catches authentication errors
- You can login from anywhere, during sign up
- Robert:
- Waiting on Kirstina’s website designs. Desktop design is finished, but she's working on mobile design
- Code snippet / sandbox of blitz code for the website
# 2020-06-23 Blitz Contributor Call
- Attending: Brandon Bayer, Robert Rosenberg, Justin Hall, Adam Markon
- Brandon:
- Server side session management code is mostly set up. Still need to integrate client side of RPC calls to expose session information
- Identity verification/Oauth integrations still need to be firmed up
- Once auth is wrapped up we should be ready to start on plugins
- Adam:
- Been experimenting with smart page generation based on the current schema model
- MDX installer recipes
- Robert:
- Waiting on designs from Kristina
- Prism component from theme ui customization? If not try and grab source code from docusaurus line highlighting component
- Justin:
- Updated the tutorial
- Helped with various bug fixes
# 2020-06-17 Blitz Contributor Call
- Attending: Brandon Bayer, Fran Zekan, Sigurd Wahl
- Brandon:
- Spent the past week implementing HTTP middlware which is now released!
- Now working on implementing session management!
- Fran:
- Finishing up the PR for adding `blitz db seed`
- Sigurd:
- New to the community, slowly learning the codebase
- Exicited to get a first PR in here sometime soon :)
# 2020-06-09 Blitz Contributor Call
- Attending: Brandon Bayer, Rudi Yardley, Fran Zekan, Adam Markon, Robert Rosenberg, Kristina Matuska
- Brandon:
- blitzjs.com published, docs + marketing site v0.1 live
- For now most of the docs copied from react-query and Next, we should eventually clean them up so they're stylistically similar to ours, but really easy to start
- HTTP middleware is almost done, just fixing a few edge cases
- Authentication is up next after that, translating pseudocode into actual code
- Kristina:
- Homepage design mostly wrapped up right now, have to finish up mobile and light mode and then ready to move on to the rest of the docs
- Syntax highlighting, we can customize colors
- Sidebar inspiration from tailwindcss
- Robert:
- Decided to wait to convert existing components to theme UI until the final design is done
- More docs content:
- More guides
- Improve the tutorial to incorporate relationship generation
- Add branches for canary and master
- If you add a feature you can add your documentation to the canary branch
- Adam:
- blitz generate model finished!
- Installer rewrite complete
- At similar place to what Gatsby has for installing stuff
- Next up:
- Support gatsby MDX recipes
- Make all code generators aware of actual model attributes
- Fran:
- Working on a package for getting the blitz config anywhere - getConfig()
- Prevent app from "warming" the server when deployed as server rather than serverless
- Testing examples - e2e with cypress and unit tests with Jest so we can link to a testing setup in the docs/getting started guide
- Rudi:
- Extracted out the @blitzjs/file-pipeline (previously synchronizer)
- Extracted out the @blitzjs/display package
- Working on various Next.js compatibility issues
- Debugging a bug in blitz start where it gets stuck at \_manifest.json
# 2020-05-26 Blitz Contributor Call
- Attending: Brandon Bayer, Robert Rosenberg, Adam Markon, Simon Debbarma
- Brandon:
- Kitze livestream last week went great — recording on youtube
- Codebase walkthrough yesterday went great — recording on youtube
- Website overhaul, installed Theme UI
- Adam:
- Opened PR for Prisma model generation from the CLI
- Working on Installer stuff and prepping for integration with Gatsby recipes
- Simon
- Working on custom illustrations for the web
- Robert
- Misc work on website
- Website
- Most website components are owned by us now instead of docusaurus, we'll need to be weary of api updates and any other important component updates
- Make sidebar like tailwind docs sidebar
- Dark theme needs to be fixed
- Theme switcher inconsistent
- Live code sandbox examples
- Code comparison between blitz and rails
- Auth
- Rishabh continuing to work on pseudo code for the session management library
- Brandon planning to build http middleware support this week
- CLI
- Adam working on new features, including generating prisma models and making existing templates aware of actual model attributes
- Plugin ideas / discussion once recipes are farther along. Will post an RFC for plugins at some point
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.