Skip to content

Commit

Permalink
Update Blitz boilerplate to 2.x (#1050)
Browse files Browse the repository at this point in the history
Bumped to 2.x
  • Loading branch information
trek authored Jan 24, 2025
1 parent 85f9418 commit 81946ae
Show file tree
Hide file tree
Showing 38 changed files with 17,100 additions and 9,958 deletions.
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

0 comments on commit 81946ae

Please sign in to comment.