Skip to content

Commit c515a41

Browse files
authored
Merge pull request #125 from gregrickaby/develop
simplify repo. add app router support.
2 parents d8580c7 + 6f561f8 commit c515a41

File tree

126 files changed

+3274
-9309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+3274
-9309
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# WordPress GraphQL API URL.
2+
NEXT_PUBLIC_WORDPRESS_URL="https://wordpress.nextjswp.com/graphql"
3+
4+
# Allow self-signed SSL certificates for working with local development environments.
5+
NODE_TLS_REJECT_UNAUTHORIZED=0

.eslintignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
!/.*.js
1+
/.*.js
22
*.min.js
33
.*cache/
44
.next/
5-
.turbo/
6-
.vercel/
75
build/
86
dist/
97
node_modules/
108
public/
11-
vendor/

.eslintrc.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
module.exports = {
2-
root: true,
3-
extends: ['custom'],
4-
settings: {
5-
next: {
6-
rootDir: ['apps/*/']
7-
}
2+
extends: ['next/core-web-vitals', 'prettier'],
3+
rules: {
4+
'@next/next/no-img-element': 'off',
5+
'func-style': ['error', 'declaration'],
6+
'no-console': ['error', {allow: ['warn', 'error']}]
87
}
98
}

.github/dependabot.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,3 @@ updates:
1111
schedule:
1212
interval: 'weekly'
1313
day: 'monday'
14-
15-
- package-ecosystem: 'npm'
16-
directory: '/apps/docs'
17-
schedule:
18-
interval: 'weekly'
19-
day: 'monday'
20-
21-
- package-ecosystem: 'npm'
22-
directory: '/apps/nextjs'
23-
schedule:
24-
interval: 'weekly'
25-
day: 'monday'

.github/workflows/assertions.yml

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,26 @@ name: Assertions
22

33
on:
44
pull_request:
5-
branches: ['main']
5+
branches: [main]
66

77
workflow_dispatch:
88

99
jobs:
10-
assertions:
10+
lint:
1111
runs-on: ubuntu-latest
1212

13-
strategy:
14-
matrix:
15-
php-versions: ['8.1']
16-
1713
steps:
18-
- name: Checkout Repository
14+
- name: Checkout repository
1915
uses: actions/checkout@v3
20-
with:
21-
token: ${{ github.token }}
22-
23-
- name: Setup PHP ${{ matrix.php-versions }}
24-
uses: shivammathur/setup-php@v2
25-
with:
26-
php-version: ${{ matrix.php-versions }}
27-
tools: composer:v2, phpcs
28-
29-
- name: Get Composer Cache Directory
30-
id: composer-cache
31-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
32-
33-
- name: Cache Dependencies
34-
uses: actions/cache@v3
35-
with:
36-
path: ${{ steps.composer-cache.outputs.dir }}
37-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
38-
restore-keys: ${{ runner.os }}-composer-
3916

4017
- name: Setup Node
4118
uses: actions/setup-node@v3
4219
with:
4320
node-version: 'lts/*'
4421
cache: 'npm'
4522

46-
- name: Install Dependencies
47-
run: |
48-
composer install
49-
npm ci
23+
- name: Install dependencies
24+
run: npm ci
5025

51-
- name: Lint Codebase
26+
- name: Lint scripts
5227
run: npm run lint

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
# The branches below must be a subset of the branches above
1919
branches: ['main']
2020
schedule:
21-
- cron: '34 7 * * 1'
21+
- cron: '28 23 * * 0'
2222

2323
jobs:
2424
analyze:

.github/workflows/deploy-backend.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.gitignore

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
# See https://theapache64.github.io/git-do-not-ignore/ for more about ignoring files.
32

43
# dependencies
5-
node_modules
6-
vendor
4+
/node_modules
75
/.pnp
86
.pnp.js
97

108
# testing
11-
coverage
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
1214

1315
# production
14-
build
16+
/build
1517

1618
# misc
1719
.DS_Store
@@ -21,27 +23,13 @@ build
2123
npm-debug.log*
2224
yarn-debug.log*
2325
yarn-error.log*
24-
debug.log*
2526

2627
# local env files
27-
.env
28-
.env.local
29-
.env.development.local
30-
.env.test.local
31-
.env.production.local
28+
.env*.local
3229

3330
# vercel
3431
.vercel
3532

3633
# typescript
3734
*.tsbuildinfo
38-
39-
# next.js
40-
.next/
41-
out/
42-
43-
# wordpress
44-
wp-content/
45-
46-
# turbo
47-
.turbo
35+
next-env.d.ts

.markdownlint.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.markdownlintignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)