Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

gatsbyjs/gatsby-starter-theme-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gatsby

Starter for creating a Gatsby Theme workspace

gatsby new my-theme https://github.com/gatsbyjs/gatsby-starter-theme-workspacecd my-themeyarn 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.lock3 directories, 10 files

gatsby-theme-minimal

This directory is the theme package itself. You should rename this atsome point to begatsby-theme-{my-theme-name}. Also change thepackage.json name field and the corresponding dependency in theexample directory'spackage.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 thatgatsby 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 apeerDependency.

example

This is an example usage of your theme. It should look the same as thesite 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 ina user's site.

You can run the example with:

yarn workspace example develop

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors13


[8]ページ先頭

©2009-2025 Movatter.jp