Skip to content

Commit

Permalink
Merge pull request #7 from ncpleslie/feature/next-upgrade
Browse files Browse the repository at this point in the history
Feature/next upgrade
  • Loading branch information
ncpleslie authored Jan 23, 2024
2 parents 9bfdd8d + d0d4648 commit 5473434
Show file tree
Hide file tree
Showing 44 changed files with 1,831 additions and 1,001 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-empty-interface": "warn"
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-interface": "warn",
"react-hooks/exhaustive-deps": "off",
"@next/next/no-img-element": "off"
}
}
60 changes: 60 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Lint
on:
push:
branches: [main]
paths-ignore:
[
"documentation/**",
"public/**",
"docker-compose.yml",
"README.md",
"prettier.config.cjs",
]
pull_request:
branches: [main]
paths-ignore:
[
"documentation/**",
"public/**",
"docker-compose.yml",
"README.md",
"prettier.config.cjs",
]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm lint
continue-on-error: true
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
- 5932:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: pnpm/action-setup@v2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Draw for them

[![Test Backend](https://github.com/ncpleslie/draw-for-them/actions/workflows/test.yml/badge.svg)](https://github.com/ncpleslie/draw-for-them/actions/workflows/test.yml)
[![Test Results](https://camo.githubusercontent.com/6849be041b20ce8af9bee400d999597859f3f329f788e32ad13b93a8190e259c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f32352f32352d5041535345442d627269676874677265656e2e737667)](https://camo.githubusercontent.com/6849be041b20ce8af9bee400d999597859f3f329f788e32ad13b93a8190e259c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f32352f32352d5041535345442d627269676874677265656e2e737667)

![Image of the draw for you application](./documentation/draw_for_them_showcase.png)

Expand Down
13 changes: 7 additions & 6 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-check
// @ts-nocheck
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation.
* This is especially useful for Docker builds.
Expand All @@ -23,8 +23,9 @@ const config = {
},
};

export default withSuperjson()(
withPWA({ disable: process.env.NODE_ENV === "development", dest: "public" })(
config
)
);
const pwa = withPWA({
disable: process.env.NODE_ENV === "development",
dest: "public",
})(config);

export default withSuperjson()(pwa);
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
"@trpc/next": "10.0.0-rc.4",
"@trpc/react-query": "10.0.0-rc.4",
"@trpc/server": "10.0.0-rc.4",
"cookies": "^0.9.1",
"dotenv": "16.0.3",
"fabric": "github:ncpleslie/fabric.js",
"fabricjs-react": "github:ncpleslie/fabricjs-react",
"firebase-admin": "11.5.0",
"next": "13.0.2",
"next-auth": "4.15.1",
"next": "14.0.4",
"next-auth": "4.24.5",
"next-pwa": "5.6.0",
"next-superjson": "0.0.4",
"node-fetch": "3.3.0",
"nodemailer": "6.9.7",
"prisma": "4.9.0",
"react": "18.2.0",
Expand All @@ -58,26 +58,29 @@
"react-toastify": "9.1.1",
"resend": "^2.0.0",
"superjson": "1.9.1",
"uuid": "^9.0.1",
"ws": "8.11.0",
"zod": "3.20.2",
"zod": "3.22.4",
"zustand": "4.3.2"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.2.0",
"@testing-library/react": "^14.1.2",
"@types/cookies": "^0.7.10",
"@types/jest": "^29.5.11",
"@types/next-pwa": "^5.6.2",
"@types/node": "^18.11.9",
"@types/nodemailer": "^6.4.7",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@types/uuid": "^9.0.7",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"autoprefixer": "^10.4.13",
"cross-env": "^7.0.3",
"eslint": "^8.28.0",
"eslint-config-next": "13.0.2",
"eslint-config-next": "14.0.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"nodemon": "^2.0.20",
Expand Down
Loading

0 comments on commit 5473434

Please sign in to comment.