Skip to content

Commit

Permalink
Merge pull request #845 from CobyPear/DB-6235-update-starter-readmes
Browse files Browse the repository at this point in the history
DB-6235: Update starter kit READMEs
  • Loading branch information
backlineint authored Aug 29, 2023
2 parents 5d5b194 + 59419b4 commit fbed7b7
Show file tree
Hide file tree
Showing 13 changed files with 325 additions and 318 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-singers-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-pantheon-decoupled-kit': patch
---

[next-wp][next-drupal][gatsby-wp] Update READMEs
9 changes: 6 additions & 3 deletions packages/create-pantheon-decoupled-kit/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ const buildOptions = {
entryPoints: [
'./src/bin.ts',
// compile tagged templates to js
...(await glob('./src/templates/**/*.{css,jsx,tsx,ts,js,json,env.*}.ts', {
dot: true,
})),
...(await glob(
'./src/templates/**/*.{css,jsx,tsx,ts,js,json,md,env.*}.ts',
{
dot: true,
},
)),
],
bundle: true,
platform: 'node',
Expand Down
3 changes: 2 additions & 1 deletion packages/create-pantheon-decoupled-kit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
isDrupalCms,
isString,
isWpCms,
Input,
} from './types';
import { actionRunner, getHandlebarsInstance, helpMenu } from './utils/index';

Expand Down Expand Up @@ -188,7 +189,7 @@ To see this list at any time, use the --help command.`;
const actionsResult = await actionRunner({
actions,
templateData,
data: args,
data: args as Input,
handlebars: hbs,
});
args?.silent || console.log(chalk.blueBright(actionsResult));
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import type { TemplateFn } from '@cli/types';
import {
commands,
createPantheonDecoupledKitNpmPackage,
gettingStarted,
graphqlPostRequest,
healthCheck,
lando,
readmeHeader,
wordpressKitNpmPackage,
} from '@partials/shared/readme/sharedReadme';

const starterName = 'Gatsby WordPress';

const md: TemplateFn = () => /* md */ `${readmeHeader(starterName)}
${gettingStarted(starterName)}
## \`@pantheon-systems\` npm Packages
${wordpressKitNpmPackage()}
${createPantheonDecoupledKitNpmPackage()}
${healthCheck('gatsby-wp')}
## Local development
${lando('wordpress')}
${commands(true)}
## Miscellaneous
${graphqlPostRequest()}
`;

export default md;

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import type { TemplateFn } from '@cli/types';
import {
commands,
createPantheonDecoupledKitNpmPackage,
drupalKitNpmPackage,
gettingStarted,
healthCheck,
lando,
readmeHeader,
} from '@partials/shared/readme/sharedReadme';

const starterName = 'Next Drupal';

const md: TemplateFn = () => /* md */ `${readmeHeader(starterName)}
${gettingStarted(starterName)}
## \`@pantheon-systems\` npm Packages
${drupalKitNpmPackage()}
${createPantheonDecoupledKitNpmPackage()}
${healthCheck('next-drupal')}
## Local development
${lando('drupal')}
${commands(false)}
`;

export default md;
Loading

0 comments on commit fbed7b7

Please sign in to comment.