mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
585 B
Plaintext
30 lines
585 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# gatsby
|
|
|
|
> Static site generator for React.
|
|
> More information: <https://www.gatsbyjs.com/docs/reference/gatsby-cli/>.
|
|
|
|
- Create a new site:
|
|
|
|
`gatsby new {{site_name}}`
|
|
|
|
- Create a new site with a Gatsby `starter`:
|
|
|
|
`gatsby new {{site_name}} {{url_of_starter_github_repo}}`
|
|
|
|
- Start a live-reloading local development server:
|
|
|
|
`gatsby develop`
|
|
|
|
- Perform a production build and generate static HTML:
|
|
|
|
`gatsby build`
|
|
|
|
- Start a local server which serves the production build:
|
|
|
|
`gatsby serve`
|