You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
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).
28
+
29
+
If you do file an issue, be sure to fill out the report completely!
30
+
31
+
---
10
32
11
33
## Development
12
34
35
+
### Tips to help your PR get approved
36
+
37
+
1. Make sure your code editor supports real-time linting and has the [recommended extensions](https://github.com/WebDevStudios/nextjs-wordpress-starter/wiki/recommended-extensions) installed
38
+
2.[JSDocs](https://jsdoc.app/) are required for all JavaScript functions
39
+
3. Run `yarn build && yarn start` before submitting your PR, to ensure a build will be successful
40
+
4. Be courteous in your communications
41
+
13
42
### Git Workflow
14
43
15
44
1. Create a `feature` branch off `staging`
16
-
2. Work locally adhereing to coding standards
45
+
2. Work locally adhering to coding standards
17
46
3. When ready, open a draft Pull Request on Github
18
47
4. When finished, fill out the PR template and publish your PR
19
48
5. Your PR must pass assertions and deploy successfully
20
49
6. After peer review, the PR will be merged back into `staging`
21
50
7. Repeat ♻️
22
51
23
-
### Deployments
52
+
### PR Preview Deployments
24
53
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).
54
+
[Vercel](https://vercel.com/webdevstudios/nextjs-wordpress-starter) is connected to this Github repository and will automatically build and deploy a unique URL for each Pull Request.
26
55
27
-
### Storybook
56
+
Learn more about [Vercel + Github integration](https://vercel.com/docs/git/vercel-for-github).
28
57
29
-
To work with Storybook on your Local, run the following command:
58
+
### Code Linting
30
59
31
-
```bash
32
-
yarn storybook
33
-
```
60
+
This project has several rulesets and uses ESLint, Prettier, and Stylelint to enforce standards.
34
61
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!)
62
+
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
63
50
64
Lint JavaScript:
51
65
@@ -65,8 +79,28 @@ Format your code:
65
79
yarn run format
66
80
```
67
81
68
-
## Submitting bug reports and feature requests
82
+
## Storybook
69
83
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).
84
+
To work with Storybook on your Local, run the following command:
85
+
86
+
```bash
87
+
yarn storybook
88
+
```
89
+
90
+
Stories are written in `.mdx` and should be placed next to the component.
91
+
92
+
[Learn how to write stories for this starter](https://github.com/WebDevStudios/nextjs-wordpress-starter/wiki/component-story).
93
+
94
+
---
95
+
96
+
## Releases
97
+
98
+
Releases to Production will occur at the end of a bi-weekly sprint or via `hotfixes` as needed.
99
+
100
+
1. On Github, create a PR off the `/staging` branch against the `/main` branch
101
+
2. Copy the WPE Staging environment to WPE Production.
102
+
3. On Github, merge `/staging` into `/main`
103
+
104
+
[Learn how to copy environments on WP Engine.](https://github.com/WebDevStudios/nextjs-wordpress-starter/wiki/Internal-Documentation#copy-wp-engine-environments)
71
105
72
-
If you do fill out a bug report, be sure to fill out the report completely!
0 commit comments