Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit f6cd2c0

Browse files
committed
Merge branch 'staging' into feature/114-file-upload-field
2 parents ae275d7 + 46a3cf5 commit f6cd2c0

File tree

81 files changed

+1891
-1449
lines changed

Some content is hidden

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

81 files changed

+1891
-1449
lines changed

.env.sample

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Tells next.js we're in development mode
2+
VERCEL_ENV="development"
3+
4+
# Allows node to work with local self-signed certificates.
5+
NODE_TLS_REJECT_UNAUTHORIZED="0"
6+
7+
# Your local WordPress URL.
8+
LOCAL_WORDPRESS_API_URL="https://nextjswp.test/"
9+
10+
# Your development WordPress URL.
11+
DEV_WORDPRESS_API_URL="https://devwordpress.com"
12+
13+
# Your staging WordPress URL.
14+
STAGING_WORDPRESS_API_URL="https://stagingwordpress.com/"
15+
16+
# Your production WordPress URL.
17+
PROD_WORDPRESS_API_URL="https://productionwordpress.com/"
18+
19+
# This needs to match PREVIEW_SECRET_TOKEN constant in wp-config.php. It can be any random string.
20+
WORDPRESS_PREVIEW_SECRET="ANY_RANDOM_STRING_SEE_README"
21+
22+
# Your WordPress username.
23+
WORDPRESS_APPLICATION_USERNAME="YOUR_WORDPRESS_USERNAME"
24+
25+
# Your WordPress application password. Requires WordPress 5.6 and above. See https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/
26+
WORDPRESS_APPLICATION_PASSWORD="YOUR_GENERATED_APPLICATION_PASSWORD"
27+
28+
# Your Algolia index name.
29+
NEXT_PUBLIC_LOCAL_ALGOLIA_INDEX_NAME="YOUR_ALGOLIA_INDEX_NAME"
30+
31+
# Your Algolia application ID.
32+
NEXT_PUBLIC_ALGOLIA_APPLICATION_ID="YOUR_ALGOLIA_APP_ID"
33+
34+
# Your Algolia search only key.
35+
NEXT_PUBLIC_ALGOLIA_SEARCH_ONLY_KEY="YOUR_ALGOLIA_SEARCH_ONLY_KEY"

.github/CONTRIBUTING.md

Lines changed: 64 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,72 @@
1-
Thanks for contributing — you rock! 🤘
1+
# Thanks for contributing — you rock! 🤘 <!-- omit in toc -->
22

3-
## Maintainers
3+
- [Development](#development)
4+
- [Git Workflow](#git-workflow)
5+
- [Deployments](#deployments)
6+
- [Storybook](#storybook)
7+
- [Coding standards](#coding-standards)
8+
- [Tips to help your PR get approved](#tips-to-help-your-pr-get-approved)
9+
- [Submitting bug reports and feature requests](#submitting-bug-reports-and-feature-requests)
410

5-
This repo is maintained by [WebDevStudios](https://webdevstudios.com).
11+
## Development
612

7-
## Submitting issues
13+
### Git Workflow
814

9-
Before submitting your issue, make sure it has not been discussed earlier. You can search for existing tickets [here](https://github.com/WebDevStudios/nextjs-wordpress-starter/issues).
15+
1. Create a `feature` branch off `staging`
16+
2. Work locally adhereing to coding standards
17+
3. When ready, open a draft Pull Request on Github
18+
4. When finished, fill out the PR template and publish your PR
19+
5. Your PR must pass assertions and deploy successfully
20+
6. After peer review, the PR will be merged back into `staging`
21+
7. Repeat ♻️
1022

11-
## Contributing code
23+
### Deployments
1224

13-
Found a bug you can fix? Fantastic! Patches are always welcome. Here's a few tips for crafting a great pull request:
25+
[Vercel](https://nextjs-wordpress-starter-gregrickaby.webdevstudios.vercel.app) is connected to this Github repository and will automatically build and deploy. Learn more about [Vercel + Github integration](https://vercel.com/docs/git/vercel-for-github).
1426

15-
- Include the purpose of your PR. Be explicit about the issue your PR solves. Fill out the Pull Request template completely.
16-
- Reference any existing issues that relate to your PR. This allows everyone to easily see all related discussions.
27+
### Storybook
1728

18-
By contributing code to Kindergarten Flashcards, you grant its use under the [GNU General Public License v2 (or later)](LICENSE).
29+
To work with Storybook on your Local, run the following command:
30+
31+
```bash
32+
yarn storybook
33+
```
34+
35+
Stories are written in `.mdx` and should be placed next to the component. Learn more about [Storybook](https://storybook.js.org/).
36+
37+
## Coding standards
38+
39+
Pull requests _must pass_ all assertions and component changes will be reviewed in Chromatic prior to consideration.
40+
41+
### Tips to help your PR get approved
42+
43+
1. Make sure your code editor supports real-time linting.
44+
2. JSDocs are important and must be completely filled out.
45+
3. Run `yarn build && yarn start` before submitting your PR, to ensure a build will be successful
46+
4. Be courteous
47+
48+
In addition to real-time linting, you could run the following commands in your terminal (these commands are also used by Husky during a commit!)
49+
50+
Lint JavaScript:
51+
52+
```bash
53+
yarn run lint:js
54+
```
55+
56+
Lint CSS:
57+
58+
```bash
59+
yarn run lint:css
60+
```
61+
62+
Format your code:
63+
64+
```bash
65+
yarn run format
66+
```
67+
68+
## Submitting bug reports and feature requests
69+
70+
Before submitting an issue or making a feature request, please search for existing [issues](https://github.com/WebDevStudios/nextjs-wordpress-starter/issues) or look at our [Github Discussions](https://github.com/WebDevStudios/nextjs-wordpress-starter/discussions).
71+
72+
If you do fill out a bug report, be sure to fill out the report completely!

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
Thanks for taking the time to file a bug report! Please fill out this form as completely as possible.
10+
11+
If you leave out sections there is a high likelihood it will be moved to our [GitHub Discussions](https://github.com/WebDevStudios/nextjs-wordpress-starter/discussions).
12+
13+
**Describe the bug**
14+
A clear and concise description of what the bug is.
15+
16+
**To Reproduce**
17+
Steps to reproduce the behavior:
18+
19+
1. Go to '...'
20+
2. Click on '....'
21+
3. Scroll down to '....'
22+
4. See error
23+
24+
**Expected behavior**
25+
A clear and concise description of what you expected to happen.
26+
27+
**Screenshots**
28+
If applicable, add screenshots to help explain your problem.
29+
30+
**Desktop (please complete the following information):**
31+
32+
- OS: [e.g. iOS]
33+
- Browser [e.g. chrome, safari]
34+
- Version [e.g. 22]
35+
36+
**Smartphone (please complete the following information):**
37+
38+
- Device: [e.g. iPhone6]
39+
- OS: [e.g. iOS8.1]
40+
- Browser [e.g. stock browser, safari]
41+
- Version [e.g. 22]
42+
43+
**Additional context**
44+
Add any other context about the problem here.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Please create your feature request as a [GitHub Discussion](https://github.com/WebDevStudios/nextjs-wordpress-starter/discussions).**
10+
11+
Thank you!

0 commit comments

Comments
 (0)