Skip to content
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

Update Blitz boilerplate to 2.x #1050

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions framework-boilerplates/blitzjs/.babelrc.js

This file was deleted.

11 changes: 11 additions & 0 deletions framework-boilerplates/blitzjs/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# https://EditorConfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
5 changes: 5 additions & 0 deletions framework-boilerplates/blitzjs/.env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SQLite is ready to go out of the box, but you can switch to Postgres
# by first changing the provider from "sqlite" to "postgres" in the Prisma
# schema file and by second swapping the DATABASE_URL below.
DATABASE_URL="file:./db_test.sqlite"
# DATABASE_URL=postgresql://ethanarrowood@localhost:5432/blitz-v2_test
10 changes: 0 additions & 10 deletions framework-boilerplates/blitzjs/.eslintrc.js

This file was deleted.

4 changes: 4 additions & 0 deletions framework-boilerplates/blitzjs/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx pretty-quick --staged
10 changes: 10 additions & 0 deletions framework-boilerplates/blitzjs/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
save-exact=true
legacy-peer-deps=true
strict-peer-dependencies=false
side-effects-cache=false

public-hoist-pattern[]=@tanstack/react-query
public-hoist-pattern[]=next
public-hoist-pattern[]=secure-password
public-hoist-pattern[]=*jest*
public-hoist-pattern[]=@testing-library/*
# Needed for Blitz to work properly. Don't remove the lines above.
10 changes: 7 additions & 3 deletions framework-boilerplates/blitzjs/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.gitkeep
.env
.env*
*.ico
*.lock
db/migrations

.next
.blitz
.yarn
.pnp.*
node_modules
.blitz.config.compiled.js
2 changes: 1 addition & 1 deletion framework-boilerplates/blitzjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This directory is a brief example of a [Blitz.js](https://blitzjs.com/) project

Deploy your own Blitz.js project with Vercel by viewing the [documentation on deploying to Vercel](https://blitzjs.com/docs/deploy-vercel)

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/framework-boilerplates/blitzjs&template=blitzjs)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/blitzjs&template=blitzjs)

_Live Example: https://blitz-template.vercel.app_

Expand Down
Empty file.
21 changes: 0 additions & 21 deletions framework-boilerplates/blitzjs/app/components/ErrorBoundary.tsx

This file was deleted.

Empty file.
5 changes: 0 additions & 5 deletions framework-boilerplates/blitzjs/app/pages/_app.tsx

This file was deleted.

197 changes: 0 additions & 197 deletions framework-boilerplates/blitzjs/app/pages/index.tsx

This file was deleted.

15 changes: 0 additions & 15 deletions framework-boilerplates/blitzjs/blitz.config.js

This file was deleted.

15 changes: 0 additions & 15 deletions framework-boilerplates/blitzjs/db/index.ts

This file was deleted.

Empty file.
27 changes: 0 additions & 27 deletions framework-boilerplates/blitzjs/db/schema.prisma

This file was deleted.

Empty file.
5 changes: 5 additions & 0 deletions framework-boilerplates/blitzjs/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
9 changes: 9 additions & 0 deletions framework-boilerplates/blitzjs/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @ts-check
const { withBlitz } = require("@blitzjs/next")

/**
* @type {import('@blitzjs/next').BlitzConfig}
**/
const config = {}

module.exports = withBlitz(config)
Loading