Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

feat(templates): adding external templates #2215

Closed
wants to merge 13 commits into from
Closed
3 changes: 2 additions & 1 deletion community-templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"branch": "templates-1.0.0",
"path": "/templates/ts-apollo-postgres-backend"
}
]
],
"external": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea is that this file will be for external ones so do we need flag

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would need the flag somewhere. If not here then I could have it for the internal templates, something like internal: true?

}
]
2 changes: 1 addition & 1 deletion packages/create-graphback/src/init/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function chooseTemplate(filter: string = ''): Promise<Template> {
{
type:'list',
name:'typeOfTemplates',
message:'Choose between community or officail Graphback templates',
message:'Choose between community or official Graphback templates',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to print them separately? Too much ask?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separately as in no choosing and just all of them listed with some gap (or a line saying that 'following are the community templates') in between?

choices:['community','official']
}
]);
Expand Down