Port to TypeScript

This commit is contained in:
Kevin Kandlbinder 2022-02-04 13:34:57 +00:00 committed by GitHub
parent 01d3014e2f
commit bc429f5d69
32 changed files with 419 additions and 105 deletions

View file

@ -12,7 +12,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
activity.start();
activity.setStatus("Sourcing data for pages...");
const projectTemplate = path.resolve(`src/templates/project.js`);
const projectTemplate = path.resolve(`src/templates/project.tsx`);
const result = await graphql(`
query AllPagesQuery {
@ -78,9 +78,9 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
activity.setStatus("Generating blog pages...");
const blogListingTemplate = path.resolve(
`src/templates/blogListing.js`
`src/templates/blogListing.tsx`
);
const blogTemplate = path.resolve(`src/templates/blogPost.js`);
const blogTemplate = path.resolve(`src/templates/blogPost.tsx`);
reporter.info("Creating blog listings...");