Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hdorgeval/gatsby-starter-ts-hello-world
Typescript Starter with the bare essentials needed for a Gatsby site
https://github.com/hdorgeval/gatsby-starter-ts-hello-world
eslint gatsby gatsby-starter prettier stylelint typescript vscode
Last synced: about 1 month ago
JSON representation
Typescript Starter with the bare essentials needed for a Gatsby site
- Host: GitHub
- URL: https://github.com/hdorgeval/gatsby-starter-ts-hello-world
- Owner: hdorgeval
- License: mit
- Created: 2019-09-10T10:11:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T09:43:49.000Z (almost 2 years ago)
- Last Synced: 2024-10-07T15:21:03.173Z (about 1 month ago)
- Topics: eslint, gatsby, gatsby-starter, prettier, stylelint, typescript, vscode
- Language: JavaScript
- Size: 2.86 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Typescript Starter with the bare essentials needed for a Gatsby site## π Quick start
1. **Create a Gatsby site.**
Use the Gatsby CLI to create a new site, specifying the hello-world starter.
```sh
# create a new Gatsby site using the hello-world starter
gatsby new my-hello-world-starter https://github.com/hdorgeval/gatsby-starter-ts-hello-world
```1. **Start developing.**
Navigate into your new siteβs directory and start it up.
```sh
cd my-hello-world-starter/
npm start
```1. **Open the source code and start editing!**
Your site is now running at `http://localhost:8000`!
_Note: You'll also see a second link: _`http://localhost:8000/___graphql`_. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://www.gatsbyjs.org/tutorial/part-five/#introducing-graphiql)._
Open the `my-hello-world-starter` directory in your code editor of choice and edit `src/pages/index.tsx`. Save your changes and the browser will update in real time!
## π Learning Gatsby
Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start:
- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.
- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar.
## CSS file usage
Run script:
```sh
npm run css-watch
```This will automatically create/update a `.d.ts` typings file whenever you add or modify a `.css` file.
This will enable you to import `.css` file in any `.tsx` file, like for example:
```sh
import styles from './index.module.css';
```Plus added support of IntelliSense in VSCode ;
To update/create all `.css.d.ts` files in one shot:
```sh
npm run create-types-for-css-modules
```## SASS file usage
Run script:
```sh
npm run sass-watch
```This will automatically create/update a `.d.ts` typings file whenever you add or modify a `.scss` file.
This will enable you to import `.scss` file in any `.tsx` file, like for example:
```sh
import styles from './index.module.scss';
```Plus added support of IntelliSense in VSCode ;
To update/create all `.scss.d.ts` files in one shot:
```sh
npm run create-types-for-sass-modules
```## π« Deploy
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/hdorgeval/gatsby-starter-ts-hello-world)