Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.MD
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install
## Development workflow

- Link the package: `npm link`
- Run it: `npm create harper`
- Run it: `create-harper`
- Lint: `npm run lint:fix`
- Format: `npm run format:fix`

Expand Down
3 changes: 2 additions & 1 deletion dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"useTabs": true
},
"excludes": [
"**/node_modules"
"**/node_modules",
"template-early-hints/schemas/schema.graphql"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.95.13.wasm",
Expand Down
3 changes: 3 additions & 0 deletions graphql.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
schema: schema.graphql
include: node_modules/harperdb/schema.graphql
documents: '**/*.graphql'
13 changes: 13 additions & 0 deletions lib/constants/frameworks.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const {
blue,
cyan,
yellow,
magenta,
} = colors;

/**
Expand Down Expand Up @@ -60,4 +61,16 @@ export const frameworks = [
},
],
},
{
name: 'early-hints',
display: 'Early Hints',
color: magenta,
variants: [
{
name: 'early-hints',
display: 'Early Hints',
color: blue,
},
],
},
];
2 changes: 1 addition & 1 deletion lib/steps/getTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function getTemplate(argTemplate, interactive) {
const framework = await prompts.select({
message: hasInvalidArgTemplate
? `"${argTemplate}" isn't a valid template. Please choose from below: `
: 'Select a framework:',
: 'Select a template:',
options: frameworks
.map((framework) => {
const frameworkColor = framework.color;
Expand Down
Loading