1
0
mirror of synced 2026-02-03 18:01:02 -05:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Dillon Raphael
4603a2b7bd alpha.17 2022-04-29 20:04:23 -04:00
Dillon Raphael
01f3a03ea9 alpha.16 2022-04-29 18:21:07 -04:00
Dillon Raphael
36e26193b7 alpha.15 2022-04-29 18:13:17 -04:00
Dillon Raphael
4a9aa9f7ff alpha.14 2022-04-29 18:08:06 -04:00
25 changed files with 245 additions and 43 deletions

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
fix app generator for pnpm unmet dependency

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
set default enviornment variable to development unless build and start command

View File

@@ -18,6 +18,8 @@
"changesets": [
"breezy-cameras-double",
"dirty-monkeys-greet",
"empty-berries-rule",
"flat-bees-approve",
"great-months-train",
"lovely-colts-share",
"nine-onions-admire",
@@ -28,6 +30,8 @@
"swift-drinks-dress",
"ten-rivers-burn",
"thirty-countries-build",
"twenty-beans-pump"
"twenty-beans-pump",
"unlucky-papayas-sleep",
"wicked-ghosts-cough"
]
}

View File

@@ -0,0 +1,5 @@
---
"blitz": patch
---
remove console logs inside onPostInstall in the new cli command

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
fix template sourcepath because of new env variable

View File

@@ -1,5 +1,47 @@
# toolkit-app
## 1.0.1-alpha.12
### Patch Changes
- blitz@2.0.0-alpha.17
- @blitzjs/auth@2.0.0-alpha.17
- @blitzjs/next@2.0.0-alpha.17
- @blitzjs/rpc@2.0.0-alpha.17
- @blitzjs/config@2.0.0-alpha.17
## 1.0.1-alpha.11
### Patch Changes
- Updated dependencies
- blitz@2.0.0-alpha.16
- @blitzjs/auth@2.0.0-alpha.16
- @blitzjs/next@2.0.0-alpha.16
- @blitzjs/rpc@2.0.0-alpha.16
- @blitzjs/config@2.0.0-alpha.16
## 1.0.1-alpha.10
### Patch Changes
- blitz@2.0.0-alpha.15
- @blitzjs/auth@2.0.0-alpha.15
- @blitzjs/next@2.0.0-alpha.15
- @blitzjs/rpc@2.0.0-alpha.15
- @blitzjs/config@2.0.0-alpha.15
## 1.0.1-alpha.9
### Patch Changes
- Updated dependencies
- blitz@2.0.0-alpha.14
- @blitzjs/auth@2.0.0-alpha.14
- @blitzjs/next@2.0.0-alpha.14
- @blitzjs/rpc@2.0.0-alpha.14
- @blitzjs/config@2.0.0-alpha.14
## 1.0.1-alpha.8
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "toolkit-app",
"version": "1.0.1-alpha.8",
"version": "1.0.1-alpha.12",
"scripts": {
"start:dev": "pnpm run prisma:start && next dev",
"buildapp": "prisma generate && next build",
@@ -29,7 +29,7 @@
"@blitzjs/rpc": "workspace:*",
"@hookform/resolvers": "2.8.8",
"@prisma/client": "3.9.0",
"blitz": "workspace:2.0.0-alpha.13",
"blitz": "workspace:2.0.0-alpha.17",
"next": "12.1.1",
"prisma": "3.9.0",
"react": "18.0.0",

View File

@@ -1,5 +1,31 @@
# @blitzjs/auth
## 2.0.0-alpha.17
### Patch Changes
- blitz@2.0.0-alpha.17
## 2.0.0-alpha.16
### Patch Changes
- Updated dependencies
- blitz@2.0.0-alpha.16
## 2.0.0-alpha.15
### Patch Changes
- blitz@2.0.0-alpha.15
## 2.0.0-alpha.14
### Patch Changes
- Updated dependencies
- blitz@2.0.0-alpha.14
## 2.0.0-alpha.13
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/auth",
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.17",
"scripts": {
"build": "unbuild",
"predev": "wait-on -d 250 ../blitz/dist/index-server.d.ts",
@@ -24,7 +24,7 @@
"@types/secure-password": "3.1.1",
"b64-lite": "1.4.0",
"bad-behavior": "1.0.1",
"blitz": "2.0.0-alpha.13",
"blitz": "2.0.0-alpha.17",
"cookie": "0.4.1",
"debug": "4.3.3",
"http": "0.0.1-security",
@@ -35,7 +35,7 @@
"url": "0.11.0"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-alpha.13",
"@blitzjs/config": "workspace:2.0.0-alpha.17",
"@testing-library/react": "13.0.0",
"@testing-library/react-hooks": "7.0.2",
"@types/cookie": "0.4.1",

View File

@@ -1,5 +1,29 @@
# @blitzjs/next
## 2.0.0-alpha.17
### Patch Changes
- @blitzjs/rpc@2.0.0-alpha.17
## 2.0.0-alpha.16
### Patch Changes
- @blitzjs/rpc@2.0.0-alpha.16
## 2.0.0-alpha.15
### Patch Changes
- @blitzjs/rpc@2.0.0-alpha.15
## 2.0.0-alpha.14
### Patch Changes
- @blitzjs/rpc@2.0.0-alpha.14
## 2.0.0-alpha.13
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/next",
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.17",
"scripts": {
"build": "unbuild",
"dev": "pnpm predev && pnpm watch unbuild src --wait=0.2",
@@ -23,13 +23,13 @@
"eslint.js"
],
"dependencies": {
"@blitzjs/rpc": "2.0.0-alpha.13",
"@blitzjs/rpc": "2.0.0-alpha.17",
"debug": "4.3.3",
"fs-extra": "10.0.1",
"react-query": "3.21.1"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-alpha.13",
"@blitzjs/config": "workspace:2.0.0-alpha.17",
"@testing-library/dom": "8.13.0",
"@testing-library/jest-dom": "5.16.3",
"@testing-library/react": "13.0.0",
@@ -40,7 +40,7 @@
"@types/react": "17.0.43",
"@types/react-dom": "17.0.14",
"@types/testing-library__react-hooks": "4.0.0",
"blitz": "2.0.0-alpha.13",
"blitz": "2.0.0-alpha.17",
"cross-spawn": "7.0.3",
"find-up": "4.1.0",
"lodash.frompairs": "4.0.1",

View File

@@ -1,5 +1,35 @@
# @blitzjs/rpc
## 2.0.0-alpha.17
### Patch Changes
- blitz@2.0.0-alpha.17
- @blitzjs/auth@2.0.0-alpha.17
## 2.0.0-alpha.16
### Patch Changes
- Updated dependencies
- blitz@2.0.0-alpha.16
- @blitzjs/auth@2.0.0-alpha.16
## 2.0.0-alpha.15
### Patch Changes
- blitz@2.0.0-alpha.15
- @blitzjs/auth@2.0.0-alpha.15
## 2.0.0-alpha.14
### Patch Changes
- Updated dependencies
- blitz@2.0.0-alpha.14
- @blitzjs/auth@2.0.0-alpha.14
## 2.0.0-alpha.13
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/rpc",
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.17",
"scripts": {
"build": "unbuild",
"predev": "wait-on -d 250 ../blitz/dist/index-server.d.ts && wait-on -d 250 ../blitz-auth/dist/index-browser.d.ts",
@@ -20,7 +20,7 @@
"dist/**"
],
"dependencies": {
"@blitzjs/auth": "2.0.0-alpha.13",
"@blitzjs/auth": "2.0.0-alpha.17",
"b64-lite": "1.4.0",
"bad-behavior": "1.0.1",
"chalk": "^4.1.0",
@@ -30,11 +30,11 @@
"zod": "3.10.1"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-alpha.13",
"@blitzjs/config": "workspace:2.0.0-alpha.17",
"@types/debug": "4.1.7",
"@types/react": "17.0.43",
"@types/react-dom": "17.0.14",
"blitz": "2.0.0-alpha.13",
"blitz": "2.0.0-alpha.17",
"next": "12.1.1",
"react": "18.0.0",
"react-dom": "18.0.0",
@@ -43,7 +43,7 @@
"watch": "1.0.2"
},
"peerDependencies": {
"blitz": "2.0.0-alpha.13",
"blitz": "2.0.0-alpha.17",
"next": "*"
},
"publishConfig": {

View File

@@ -1,5 +1,33 @@
# blitz
## 2.0.0-alpha.17
### Patch Changes
- Updated dependencies
- @blitzjs/generator@2.0.0-alpha.17
## 2.0.0-alpha.16
### Patch Changes
- remove console logs inside onPostInstall in the new cli command
- @blitzjs/generator@2.0.0-alpha.16
## 2.0.0-alpha.15
### Patch Changes
- Updated dependencies
- @blitzjs/generator@2.0.0-alpha.15
## 2.0.0-alpha.14
### Patch Changes
- set default enviornment variable to development unless build and start command
- @blitzjs/generator@2.0.0-alpha.14
## 2.0.0-alpha.13
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "blitz",
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.17",
"scripts": {
"build": "unbuild",
"dev": "watch unbuild src --wait=0.2",
@@ -23,7 +23,7 @@
"blitz": "bin/blitz"
},
"dependencies": {
"@blitzjs/generator": "2.0.0-alpha.13",
"@blitzjs/generator": "2.0.0-alpha.17",
"arg": "5.0.1",
"chalk": "^4.1.0",
"console-table-printer": "2.10.0",
@@ -47,7 +47,7 @@
"tslog": "3.3.1"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-alpha.13",
"@blitzjs/config": "workspace:2.0.0-alpha.17",
"@types/cookie": "0.4.1",
"@types/cross-spawn": "6.0.2",
"@types/debug": "4.1.7",

View File

@@ -264,7 +264,6 @@ const newApp: CliCommand = async (argv) => {
{ignoreCache: true},
)
const result = await runPrisma(["migrate", "dev", "--name", "Initial migration"], true)
console.log("primsa result", result)
if (!result.success) throw new Error()
} catch (error) {
postInstallSteps.push(

View File

@@ -58,7 +58,8 @@ if (args["--help"]) {
forwardedArgs.push("--help")
}
const defaultEnv = command === "dev" ? "development" : "production"
// env variable should default to dev unless the command is build or start
const defaultEnv = command === "build" || command === "start" ? "production" : "development"
const standardEnv = ["production", "development", "test"]
if (process.env.NODE_ENV && !standardEnv.includes(process.env.NODE_ENV)) {

View File

@@ -1,5 +1,13 @@
# @blitzjs/config
## 2.0.0-alpha.17
## 2.0.0-alpha.16
## 2.0.0-alpha.15
## 2.0.0-alpha.14
## 2.0.0-alpha.13
## 2.0.0-alpha.12

View File

@@ -1,7 +1,7 @@
{
"name": "@blitzjs/config",
"private": true,
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.17",
"license": "MIT",
"dependencies": {
"@typescript-eslint/eslint-plugin": "5.9.1",

View File

@@ -1,5 +1,21 @@
# @blitzjs/generator
## 2.0.0-alpha.17
### Patch Changes
- fix app generator for pnpm unmet dependency
## 2.0.0-alpha.16
## 2.0.0-alpha.15
### Patch Changes
- fix template sourcepath because of new env variable
## 2.0.0-alpha.14
## 2.0.0-alpha.13
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/generator",
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.17",
"scripts": {
"dev": "watch unbuild src --wait=0.2",
"build": "unbuild && pnpm build:templates",
@@ -45,7 +45,7 @@
"vinyl": "2.2.1"
},
"devDependencies": {
"@blitzjs/config": "2.0.0-alpha.13",
"@blitzjs/config": "2.0.0-alpha.17",
"@juanm04/cpx": "2.0.1",
"@types/babel__core": "7.1.19",
"@types/diff": "5.0.2",

View File

@@ -302,9 +302,7 @@ export abstract class Generator<
return path.join(
__dirname,
"..",
process.env.NODE_ENV === "test" || process.env.NODE_ENV === "development"
? "./templates"
: "./dist/templates",
process.env.NODE_ENV === "test" ? "./templates" : "./dist/templates",
this.sourceRoot.path,
...paths,
)

View File

@@ -155,6 +155,12 @@ export class AppGenerator extends Generator<AppGeneratorOptions> {
cp.stdout?.setEncoding("utf8")
cp.stderr?.setEncoding("utf8")
cp.stdout?.on("data", (data) => {
if (pkgManager === "pnpm") {
if (data.includes("ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies")) {
spinners[spinners.length - 1]?.succeed()
}
}
if (pkgManager === "yarn") {
let json = getJSON(data)
if (json && json.type === "step") {

View File

@@ -25,7 +25,7 @@
"@typescript-eslint/parser": "5.9.1"
},
"devDependencies": {
"@blitzjs/config": "2.0.0-alpha.13",
"@blitzjs/config": "2.0.0-alpha.17",
"@types/react": "17.0.43",
"@types/react-dom": "17.0.14",
"react": "18.0.0",

32
pnpm-lock.yaml generated
View File

@@ -50,7 +50,7 @@ importers:
"@types/node": 17.0.16
"@types/preview-email": 2.0.1
"@types/react": 17.0.43
blitz: workspace:2.0.0-alpha.12
blitz: workspace:2.0.0-alpha.16
eslint: 7.32.0
husky: 7.0.4
jest: 27.5.1
@@ -263,8 +263,8 @@ importers:
packages/blitz:
specifiers:
"@blitzjs/config": workspace:2.0.0-alpha.12
"@blitzjs/generator": 2.0.0-alpha.12
"@blitzjs/config": workspace:2.0.0-alpha.16
"@blitzjs/generator": 2.0.0-alpha.16
"@types/cookie": 0.4.1
"@types/cross-spawn": 6.0.2
"@types/debug": 4.1.7
@@ -356,7 +356,7 @@ importers:
packages/blitz-auth:
specifiers:
"@blitzjs/config": workspace:2.0.0-alpha.12
"@blitzjs/config": workspace:2.0.0-alpha.16
"@testing-library/react": 13.0.0
"@testing-library/react-hooks": 7.0.2
"@types/b64-lite": 1.3.0
@@ -368,7 +368,7 @@ importers:
"@types/secure-password": 3.1.1
b64-lite: 1.4.0
bad-behavior: 1.0.1
blitz: 2.0.0-alpha.12
blitz: 2.0.0-alpha.16
cookie: 0.4.1
debug: 4.3.3
http: 0.0.1-security
@@ -413,8 +413,8 @@ importers:
packages/blitz-next:
specifiers:
"@blitzjs/config": workspace:2.0.0-alpha.12
"@blitzjs/rpc": 2.0.0-alpha.12
"@blitzjs/config": workspace:2.0.0-alpha.16
"@blitzjs/rpc": 2.0.0-alpha.16
"@testing-library/dom": 8.13.0
"@testing-library/jest-dom": 5.16.3
"@testing-library/react": 13.0.0
@@ -425,7 +425,7 @@ importers:
"@types/react": 17.0.43
"@types/react-dom": 17.0.14
"@types/testing-library__react-hooks": 4.0.0
blitz: 2.0.0-alpha.12
blitz: 2.0.0-alpha.16
cross-spawn: 7.0.3
debug: 4.3.3
find-up: 4.1.0
@@ -472,14 +472,14 @@ importers:
packages/blitz-rpc:
specifiers:
"@blitzjs/auth": 2.0.0-alpha.12
"@blitzjs/config": workspace:2.0.0-alpha.12
"@blitzjs/auth": 2.0.0-alpha.16
"@blitzjs/config": workspace:2.0.0-alpha.16
"@types/debug": 4.1.7
"@types/react": 17.0.43
"@types/react-dom": 17.0.14
b64-lite: 1.4.0
bad-behavior: 1.0.1
blitz: 2.0.0-alpha.12
blitz: 2.0.0-alpha.16
chalk: ^4.1.0
debug: 4.3.3
next: 12.1.1
@@ -534,7 +534,7 @@ importers:
"@babel/plugin-transform-typescript": 7.12.1
"@babel/preset-env": 7.12.10
"@babel/types": 7.12.10
"@blitzjs/config": 2.0.0-alpha.12
"@blitzjs/config": 2.0.0-alpha.16
"@juanm04/cpx": 2.0.1
"@mrleebo/prisma-ast": 0.2.6
"@types/babel__core": 7.1.19
@@ -625,7 +625,7 @@ importers:
packages/pkg-template:
specifiers:
"@blitzjs/config": 2.0.0-alpha.12
"@blitzjs/config": 2.0.0-alpha.16
"@types/react": 17.0.43
"@types/react-dom": 17.0.14
"@typescript-eslint/eslint-plugin": 5.9.1
@@ -5318,7 +5318,7 @@ packages:
hasBin: true
dependencies:
caniuse-lite: 1.0.30001334
electron-to-chromium: 1.4.127
electron-to-chromium: 1.4.128
escalade: 3.1.1
node-releases: 2.0.4
picocolors: 1.0.0
@@ -6616,10 +6616,10 @@ packages:
jake: 10.8.5
dev: false
/electron-to-chromium/1.4.127:
/electron-to-chromium/1.4.128:
resolution:
{
integrity: sha512-nhD6S8nKI0O2MueC6blNOEZio+/PWppE/pevnf3LOlQA/fKPCrDp2Ao4wx4LFwmIkJpVdFdn2763YWLy9ENIZg==,
integrity: sha512-DT8G+2drgywCWN+74jbYJ7yXbdec9wefs+K8C0Tu2Hbhj7K0nod17Iq8hoS21MpuYYrL6oXu2Kd636KmzXVugQ==,
}
/emittery/0.8.1: