Project containing miscellaneous projects related to touhou.fm
Find a file
2024-03-03 10:31:07 +00:00
infra Fix build 2021-02-07 07:16:04 +01:00
site Update app-release.json to latest release 2024-03-03 10:31:07 +00:00
theme-news-core Add Playlist to site 2021-02-08 08:18:33 +01:00
touhou-fm Add Playlist to site 2021-02-08 08:18:33 +01:00
.eslintignore Add Playlist to site 2021-02-08 08:18:33 +01:00
.eslintrc.js Working version 2021-02-07 07:04:14 +01:00
.gitattributes Working version 2021-02-07 07:04:14 +01:00
.gitignore Working version 2021-02-07 07:04:14 +01:00
.gitlab-ci.yml Change git step to use cluster 2023-12-07 07:43:41 +01:00
.huskyrc.js Working version 2021-02-07 07:04:14 +01:00
.lintstagedrc Working version 2021-02-07 07:04:14 +01:00
.prettierrc.js Working version 2021-02-07 07:04:14 +01:00
LICENSE Working version 2021-02-07 07:04:14 +01:00
package.json Add Playlist to site 2021-02-08 08:18:33 +01:00
README.md fix(starters): change .org to .com (#26589) 2020-08-25 08:39:53 +00:00
tsconfig.json Working version 2021-02-07 07:04:14 +01:00
yarn.lock Add Playlist to site 2021-02-08 08:18:33 +01:00

Gatsby

Starter for creating a Gatsby Theme workspace

gatsby new my-theme https://github.com/gatsbyjs/gatsby-starter-theme-workspace
cd my-theme
yarn workspace example develop

Layout

.
├── README.md
├── gatsby-theme-minimal
│   ├── README.md
│   ├── gatsby-config.js
│   ├── index.js
│   └── package.json
├── example
│   ├── README.md
│   ├── gatsby-config.js
│   ├── package.json
│   └── src
├── package.json
└── yarn.lock

3 directories, 10 files

gatsby-theme-minimal

This directory is the theme package itself. You should rename this at some point to be gatsby-theme-{my-theme-name}. Also change the package.json name field and the corresponding dependency in the example directory's package.json/gatsby-config.js to match the chosen name.

  • gatsby-theme-minimal/
    • gatsby-config.js: An empty gatsby-config that you can use as a starting point for building functionality into your theme.
    • index.js: Since themes also function as plugins, this is an empty file that gatsby needs to use this theme as a plugin.
    • package.json: The dependencies that your theme will pull in when people install it. gatsby should be a peerDependency.

example

This is an example usage of your theme. It should look the same as the site of someone who installed and used your theme from npm.

  • example/
    • gatsby-config.js: Specifies which theme to use and any other one-off config a site might need.
    • src/: Source code such as one-off pages or components that might live in a user's site.

You can run the example with:

yarn workspace example develop