Use the index generator
extension with this project for best maintainability. To use the to convert all
filenames in a directory to Start Case (as the \_
in this extension isn't full
Lodash), use this snippet:
// @index("./directory-name", (f, _) => `"${f.name.split("-").map(_.pascalCase).join(" ")}"`)
// @endindex
TODO: Create a commit hook that runs the yarn indices
script
-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the minimal TypeScript starter.
# create a new Gatsby site using the minimal TypeScript starter npm init gatsby
-
Start developing.
Navigate into your new site’s directory and start it up.
cd my-gatsby-site/ npm run develop
-
Open the code and start customizing!
Your site is now running at http://localhost:8000!
Edit
src/pages/index.tsx
to see your site update in real-time! -
Learn more
Deploy this starter with one click on Gatsby Cloud: