Skip to content

Commit

Permalink
Merge pull request #799 from CobyPear/DB-6451-add-hc-to-gatsby-starter
Browse files Browse the repository at this point in the history
DB-6451: [gatsby-wp] Add health-check to gatsby starter
  • Loading branch information
mitchellmarkoff authored Jul 25, 2023
2 parents 12bab8a + e4c17b8 commit 5659b43
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
6 changes: 6 additions & 0 deletions .changeset/little-feet-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'create-pantheon-decoupled-kit': patch
---

[gatsby-wp] Add healthcheck script, bump
`@pantheon-systems/decoupled-kit-healthcheck` version
2 changes: 1 addition & 1 deletion .changeset/nervous-peas-suffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
as a dev dependency to the `next-wp` template. The health check will run
before a build to check critical endpoints for availability

[next-wp, next-drupal] Updated the README to include information about the `@pantheon-systems/decoupled-kit-health-check` and
[next-wp, next-drupal] Updated the README to include information about the `@pantheon-systems/decoupled-kit-health-check`
6 changes: 0 additions & 6 deletions .changeset/spicy-schools-love.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ To see this list at any time, use the --help command.`);
process.argv = ['node', 'bin.js', 'gatsby-wp'];
const data = {
_: ['gatsby-wp'],
dkHealthCheckVersion: versions['decoupled-kit-health-check'],
eslintConfigVersion: versions['eslint'],
force: false,
gatsby: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const gatsbyWp: DecoupledKitGenerator<GatsbyWPAnswers, GatsbyWPData> = {
],
data: {
gatsbyPnpmPlugin: pnpm,
dkHealthCheckVersion: versions['decoupled-kit-health-check'],
wordpressKitVersion: versions['wordpress-kit'],
otherConfigsVersion: versions['other'],
eslintConfigVersion: versions['eslint'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { tailwindcssDeps } from '@partials/pkg-shared/tailwindcssDepsT';
const json: TemplateFn = ({ data, utils }) => /* JSON */ `{
${sharedPkgJsonField(utils.pkgName(data.appName))}
"scripts": {
"build": "gatsby build",
"build": "npm run decoupled-kit-health-check && gatsby build",
"develop": "ENABLE_GATSBY_REFRESH_ENDPOINT=true gatsby develop -H 0.0.0.0",
"format": "prettier --write '**/*.{js,jsx,ts,tsx,json,md}'",
"start": "npm run develop",
Expand All @@ -18,7 +18,8 @@ const json: TemplateFn = ({ data, utils }) => /* JSON */ `{
"update-snapshots": "vitest run --update --silent",
"coverage": "vitest run --coverage",
"lint:fix": "eslint --ext .js,.ts,.jsx,.tsx src --fix --ignore-path .gitignore",
"lint": "eslint --ext .js,.ts,.jsx,.tsx src --ignore-path .gitignore"
"lint": "eslint --ext .js,.ts,.jsx,.tsx src --ignore-path .gitignore",
"decoupled-kit-health-check": "npx --prefer-offline @pantheon-systems/decoupled-kit-health-check wordpress"
},
"dependencies": {
"gatsby": "^5.11.0",
Expand All @@ -41,13 +42,10 @@ const json: TemplateFn = ({ data, utils }) => /* JSON */ `{
"devDependencies": {
${utils.if(data.tailwindcss, tailwindcssDeps(true))}
${utils.if(data.tailwindcss, tailwindcssDeps(false))}
"@pantheon-systems/decoupled-kit-configs": "${String(
data.otherConfigsVersion,
)}",
"@pantheon-systems/eslint-config-decoupled-kit": "${String(
data.eslintConfigVersion,
)}",
"@pantheon-systems/wordpress-kit": "${String(data.wordpressKitVersion)}",
"@pantheon-systems/decoupled-kit-configs": "${data.otherConfigsVersion}",
"@pantheon-systems/decoupled-kit-health-check": "${data.dkHealthCheckVersion}",
"@pantheon-systems/eslint-config-decoupled-kit": "${data.eslintConfigVersion}",
"@pantheon-systems/wordpress-kit": "${data.wordpressKitVersion}",
"@testing-library/react": "13.4.0",
"@types/dompurify": "^3.0.2",
"@types/gatsbyjs__reach-router": "^2.0.0",
Expand Down

0 comments on commit 5659b43

Please sign in to comment.