Skip to content

Commit

Permalink
feat(pages-starter): add Pages Router-based starter
Browse files Browse the repository at this point in the history
Issue #601
  • Loading branch information
JohnAlbin committed Apr 24, 2024
1 parent dd03912 commit 7efff75
Show file tree
Hide file tree
Showing 37 changed files with 1,072 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ body:
- next-drupal (NPM package)
- basic-starter
- graphql-starter
- pages-starter
- example-auth
- example-blog
- example-client
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ body:
- next-drupal (NPM package)
- basic-starter
- graphql-starter
- pages-starter
- example-auth
- example-blog
- example-client
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ body:
- next-drupal (NPM package)
- basic-starter
- graphql-starter
- pages-starter
- example-auth
- example-blog
- example-client
Expand Down
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This pull request is for: (mark with an "x")
- [ ] `packages/next-drupal`
- [ ] `starters/basic-starter`
- [ ] `starters/graphql-starter`
- [ ] `starters/pages-starter`
- [ ] Other

GitHub Issue: #
Expand Down
1 change: 1 addition & 0 deletions MAINTAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ The code in the examples repos do not strictly require a versioned release since
- [basic-starter](https://github.com/chapter-three/next-drupal-basic-starter/releases)
- [graphql-starter](https://github.com/chapter-three/next-drupal-graphql-starter/releases)
- [pages-starter](https://github.com/chapter-three/next-drupal-pages-starter/releases)
And then:
Expand Down
12 changes: 12 additions & 0 deletions starters/pages-starter/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# See https://next-drupal.org/docs/environment-variables

# Required
NEXT_PUBLIC_DRUPAL_BASE_URL=https://site.example.com
NEXT_IMAGE_DOMAIN=site.example.com

# Authentication
DRUPAL_CLIENT_ID=Retrieve this from /admin/config/services/consumer
DRUPAL_CLIENT_SECRET=Retrieve this from /admin/config/services/consumer

# Required for On-demand Revalidation
DRUPAL_REVALIDATE_SECRET=Retrieve this from /admin/config/services/next
4 changes: 4 additions & 0 deletions starters/pages-starter/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "next/core-web-vitals",
"root": true
}
40 changes: 40 additions & 0 deletions starters/pages-starter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# IDE files
/.idea
/.vscode

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
1 change: 1 addition & 0 deletions starters/pages-starter/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
18 changes: 18 additions & 0 deletions starters/pages-starter/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Ignore everything.
/*

# Format most files in the root directory.
!/*.js
!/*.ts
!/*.md
!/*.json
# But ignore some.
/package.json
/package-lock.json
/CHANGELOG.md

# Don't ignore these nested directories.
!/app
!/components
!/lib
!/pages
4 changes: 4 additions & 0 deletions starters/pages-starter/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": false,
"trailingComma": "es5"
}
Loading

0 comments on commit 7efff75

Please sign in to comment.