1
0
mirror of synced 2025-12-25 11:00:31 -05:00
Commit Graph

70 Commits

Author SHA1 Message Date
Dillon Raphael
1e1bb73b2d alpha.13 @blitzjs/generator@2.0.0-alpha.13 blitz@2.0.0-alpha.13 @blitzjs/auth@2.0.0-alpha.13 @blitzjs/next@2.0.0-alpha.13 @blitzjs/rpc@2.0.0-alpha.13 2022-04-29 16:25:20 -04:00
beerose
99205f52d5 alpha.12 @blitzjs/generator@2.0.0-alpha.12 @blitzjs/auth@2.0.0-alpha.12 @blitzjs/next@2.0.0-alpha.12 @blitzjs/rpc@2.0.0-alpha.12 blitz@2.0.0-alpha.12 2022-04-29 20:10:31 +02:00
Aleksandra
d03a1165d7 Use alpha version for blitz dependency, fix package manager selection (#3327) 2022-04-29 20:08:10 +02:00
beerose
d87288a2e9 alpha.11 blitz@2.0.0-alpha.11 @blitzjs/auth@2.0.0-alpha.11 @blitzjs/generator@2.0.0-alpha.11 @blitzjs/next@2.0.0-alpha.11 @blitzjs/rpc@2.0.0-alpha.11 2022-04-29 16:00:15 +02:00
beerose
fdff45a592 Update isInBlitzMonorepo check in postinstall script 2022-04-29 15:58:48 +02:00
beerose
469f55a429 Fix pre-publish script to build packages after
changeset version
2022-04-29 15:47:01 +02:00
Dillon Raphael
e6c31704ed added postinstall script to blitz/next package json 2022-04-29 09:41:57 -04:00
Dillon Raphael
35a070ad7d alpha.10 @blitzjs/auth@2.0.0-alpha.10 @blitzjs/next@2.0.0-alpha.10 @blitzjs/rpc@2.0.0-alpha.10 blitz@2.0.0-alpha.10 @blitzjs/generator@2.0.0-alpha.10 2022-04-28 19:37:39 -04:00
Dillon Raphael
9674efc0bf alpha.9 @blitzjs/next@2.0.0-alpha.9 @blitzjs/generator@2.0.0-alpha.9 @blitzjs/rpc@2.0.0-alpha.9 blitz@2.0.0-alpha.9 @blitzjs/auth@2.0.0-alpha.9 2022-04-28 19:07:56 -04:00
Dillon Raphael
666a3ae3e6 fix cli versioning 2022-04-28 17:35:54 -04:00
Dillon Raphael
c9cf7adc33 alpha.7 changeset @blitzjs/generator@2.0.0-alpha.8 @blitzjs/auth@2.0.0-alpha.8 blitz@2.0.0-alpha.8 @blitzjs/rpc@2.0.0-alpha.8 @blitzjs/next@2.0.0-alpha.8 2022-04-28 17:18:04 -04:00
Dillon Raphael
f4c2234c4d add index.cjs to blitz externals @blitzjs/auth@2.0.0-alpha.7 @blitzjs/generator@2.0.0-alpha.7 @blitzjs/next@2.0.0-alpha.7 @blitzjs/rpc@2.0.0-alpha.7 blitz@2.0.0-alpha.7 2022-04-28 17:12:55 -04:00
Dillon Raphael
82916b21c2 remove config from changeset @blitzjs/generator@2.0.0-alpha.6 @blitzjs/next@2.0.0-alpha.6 blitz@2.0.0-alpha.6 @blitzjs/auth@2.0.0-alpha.6 @blitzjs/rpc@2.0.0-alpha.6 2022-04-28 15:19:52 -04:00
Dillon Raphael
bf1b2c8244 add alpha.6 changeset 2022-04-28 15:07:05 -04:00
Dillon Raphael
043c3498d0 Add routes manifest (#3317)
* Export routes from @blitzjs/next

* change to setupBlitzClient & setupBlitzServer in integrationtests

* update README

* a+d fixing stuff
2022-04-28 10:33:58 -04:00
Aleksandra
a2ebdbe7d6 make blitz CMD run the associated .bin file (#3310) 2022-04-27 11:38:55 +02:00
Dillon Raphael
de4e8084ef Fix generated blitz rpc api route in app generator 2022-04-26 12:45:27 -04:00
Dillon Raphael
bb9eaed520 remove withBundleAnalyzer 2022-04-26 12:15:10 -04:00
Dillon Raphael
ffe85b5ab6 fix toolkit-app example 2022-04-26 12:08:45 -04:00
Dillon Raphael
6edeed7c5a Change export to db instead of prisma in login mutation for app template 2022-04-26 12:02:19 -04:00
Dillon Raphael
1d9d890d9c use projectName variable for postInstallSteps in new app generator 2022-04-20 17:21:38 -04:00
Dillon Raphael
b8f51a2354 remove name flag from new app generator cli 2022-04-20 17:09:19 -04:00
Dillon Raphael
6552b11b94 Make server and client setup consistent with naming 2022-04-20 16:25:36 -04:00
Dillon Raphael
d1dd2bc56e fix generator typescript config to make customTsParser work 2022-04-20 15:51:57 -04:00
Dillon Raphael
09b732860d export eslint file from blitz next package for use in app generator 2022-04-20 15:28:28 -04:00
Dillon Raphael
ccb6cfd2a0 Merge branch 'main' of github.com:blitz-js/blitz
merge
2022-04-20 15:14:05 -04:00
Dillon Raphael
502b8f7820 rename blitz rpc api route during precommit 2022-04-20 15:13:43 -04:00
Aleksandra
3888d7018a Add rpc resolver and update template app (#3307) 2022-04-20 14:33:41 +02:00
Dillon Raphael
02f7822437 Prisma CLI command (#3305)
* blitz prisma command & tidy up templates

* update lockfile

* update lockfile

* hardcode versions

* update ci pnpm version

* update ci pnpm version

* revert ci pnpm version

* fresh clone with updated pnpm-lock

* update packages
2022-04-15 18:38:53 -04:00
Brandon Bayer
00bd849eef 2.0.0-alpha.5 blitz@2.0.0-alpha.5 @blitzjs/auth@2.0.0-alpha.5 @blitzjs/generator@2.0.0-alpha.5 @blitzjs/next@2.0.0-alpha.5 @blitzjs/rpc@2.0.0-alpha.5 2022-04-15 09:03:01 -04:00
Dillon Raphael
c8db1a0b7e Toolkit template (#3298)
* migrate generate command

* tidy up the help command

* Convert legacy full template to new working example

* change db to prisma for templates

* change toolkit-app to use useQuery instead of invoke

* new app & generator templates working for npm only

* fixed npm install

* set blitz config package version

* assert session id

* add type assert to template
2022-04-15 08:35:47 -04:00
Brandon Bayer
fb32903bf9 2.0.0-alpha.4 fix more cli stuff @blitzjs/generator@2.0.0-alpha.4 @blitzjs/auth@2.0.0-alpha.4 @blitzjs/next@2.0.0-alpha.4 @blitzjs/rpc@2.0.0-alpha.4 blitz@2.0.0-alpha.4 2022-04-14 21:13:57 -04:00
Brandon Bayer
8dedca1a29 2.0.0-alpha.3 - fix cli esm problem blitz@2.0.0-alpha.3 @blitzjs/auth@2.0.0-alpha.3 @blitzjs/generator@2.0.0-alpha.3 @blitzjs/next@2.0.0-alpha.3 @blitzjs/rpc@2.0.0-alpha.3 2022-04-14 21:04:51 -04:00
Brandon Bayer
b1ef45bf28 2.0.0-alpha.2 - fix generator npm package dist @blitzjs/generator@2.0.0-alpha.2 @blitzjs/auth@2.0.0-alpha.2 @blitzjs/next@2.0.0-alpha.2 @blitzjs/rpc@2.0.0-alpha.2 blitz@2.0.0-alpha.2 2022-04-14 20:44:45 -04:00
Brandon Bayer
c6e8df5efd release 2.0.0-alpha.1 blitz@2.0.0-alpha.1 @blitzjs/generator@2.0.0-alpha.1 @blitzjs/auth@2.0.0-alpha.1 @blitzjs/next@2.0.0-alpha.1 @blitzjs/rpc@2.0.0-alpha.1 2022-04-14 20:31:40 -04:00
Brandon Bayer
46a34c7b3a install changeset 2022-04-14 20:28:16 -04:00
Dillon Raphael
18d4ef74a9 Migrate cli generate command (#3294)
* migrate generate command

* tidy up the help command
2022-04-14 16:49:59 -04:00
Dillon Raphael
212a1cb941 Cli codegen command (#3276)
* WIP: init cli + init env utils

* remove pnpm global link artifacts

* WIP: migrate legacy new cli command

* change enums to objects

* remove chromedriver package from integration test

* create cli bin file that requires blitz/dist/index.cj

* fix prisma-utils pEvent

* fix missing modules

* use form key types & rename bin script

* init cli-codegen

* add fs-extra package to blitz-next

* read config file as a buffer then eval the string

Co-authored-by: Dillon Raphael <dillonraphael@Dillons-MBP.hitronhub.home>
2022-04-14 11:17:19 -04:00
Aleksandra
151dcc308e Add RpcClientPlugin 🎉 (#3302) 2022-04-13 14:24:26 +02:00
Aleksandra
fd90cbedb4 Support blitz next CMD (#3272) 2022-04-13 11:23:49 +02:00
Brandon Bayer
10d27c74af refactor toolkit setup a bit for better DX (#3297) 2022-04-12 15:56:15 -04:00
Brandon Bayer
9810d984f1 toolkit: remove hook exports from setupClient (#3287)
* cleanup exports

* bump

* Update example app

Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
2022-04-12 14:31:10 +02:00
Brandon Bayer
10574b7359 Add RPC package to toolkit, including magical imports 🎉 (#3278)
* wip

* webpack loader working

* time to switch to babel

* wip

* wip - next broken

* build & babel working, but resolver not loaded at runtime

* webpack loaders fully working!

* rpc server handler ported

* fully working e2e!

* ci

* fix

* fix

* fix test

* refactor integration test setup

* port rpc integration test

* remove duplicate constants

* fix timeout

* add more explicit timeouts for tests

* use pnpm exec

* add custom _document for auth test

* await killapp

* add next as dependency for test utils

* update pnpm ci

* add vitest config file

* add hookTimeout to global vitest file

Co-authored-by: Dillon Raphael <dillon@creatorsneverdie.com>
2022-04-11 14:18:02 -04:00
Aleksandra
c28684b8e5 Add jest config to blitz-next package (#3267) 2022-04-08 13:38:09 +02:00
Dillon Raphael
a590820c14 Cli (#3270)
* WIP: init cli + init env utils

* remove pnpm global link artifacts

* WIP: migrate legacy new cli command

* change enums to objects

* remove chromedriver package from integration test

* create cli bin file that requires blitz/dist/index.cj

* fix prisma-utils pEvent

* fix missing modules

* use form key types & rename bin script

Co-authored-by: Dillon Raphael <dillonraphael@Dillons-MBP.hitronhub.home>
2022-04-07 18:02:52 -04:00
Dillon Raphael
ff3ef58a47 Auth tests (#3260)
* Auth tests setup

* WIP: Updated test-utils

* WIP: Fix lowdb for tests + passing unauth tests + create elementByXpath webdriver chain

* Using prisma & sqlite for tests

* manypkg fix dependency

* fix server mode for auth test

* Add .env template to auth integration test

* Add default value for .env + fix how chrome window is rendered in next-webdriver + install chromedriver in package.json

* Rename test directory

* Update pnpm-lock

* trying to set debug port

* add chrome to ci

* Install chrome with apt-get for github actions

* set headless and chrome bin in env file

* find chrome path inside webdriver

* run the right chrome command in github action based on os

* fix step cannot have both the  and  keys

* add explicit bash shell for github action

* use matrix os expression and run if statement under chrome run

* dont cancel in progress tests to see if one works

* add chrome driver

* remove potential conflicting chromedriver versions

* let selenium find chromedriver path instead of manually setting it

* set chrome option to no gpu & disable shm usage

* remove chrome install github action

* use chromedriver path for binary

* add --headless attribute to chrome driver options

* use chrome bin instead of chromedriver bin

* set path if chromewebdriver env variable present

* set next commands inside try/catch

* remove try/catch

* increase timeout

* disable gpu

* add back headless env

* set shell to bash

* set default shell

* set timeout for webdriver test function

* remove run chromedriver for windows since we're using bash

* scl_source enable

* remove scl_source enable

* add try catch

* remove bash default

* whitelist ips for chromedriver in windows matrix

* set shell to cmd for windows matrix

* console.log path

* force cmd for running chromedriver

* start chromedriver for cmd

* set default windows command to pwsh

* set path for windows test command

* set dynamic path for windows os

* remove if statement for test command

* remove chromedriver from github yaml

* remove windows os from tests

Co-authored-by: Aleksandra <alexsandra.sikora@gmail.com>
Co-authored-by: Dillon Raphael <dillonraphael@Dillons-MacBook-Pro.local>
Co-authored-by: Dillon Raphael <dillonraphael@Dillons-MBP.hitronhub.home>
2022-04-07 12:46:37 -04:00
Aleksandra
e33c81a70f Add useParams to blitz-next (#3269) 2022-04-05 18:34:16 +02:00
Aleksandra
dc41f8eedc Add paginate utility to blitz package (#3266) 2022-04-04 11:04:43 +02:00
Brandon Bayer
f49aa37892 toolkit: fix some various package and build issues (#3263) 2022-04-02 16:06:25 -04:00
Aleksandra
e218d5f84d Migrate generator package (#3245) 2022-03-30 14:34:49 +02:00