Skip to content

Commit 90c25d0

Browse files
committed
Initial commit
0 parents  commit 90c25d0

23 files changed

+14889
-0
lines changed

.gitignore

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
.wordpress-cache
2+
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (http://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# Typescript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# dotenv environment variable files
57+
.env*
58+
59+
# gatsby files
60+
.cache/
61+
public
62+
63+
# Mac files
64+
.DS_Store
65+
66+
# Yarn
67+
yarn-error.log
68+
.pnp/
69+
.pnp.js
70+
# Yarn Integrity file
71+
.yarn-integrity

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.cache
2+
package.json
3+
package-lock.json
4+
public

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"arrowParens": "avoid",
3+
"semi": false
4+
}

LICENSE

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
The BSD Zero Clause License (0BSD)
2+
3+
Copyright (c) 2020 Gatsby Inc.
4+
5+
Permission to use, copy, modify, and/or distribute this software for any
6+
purpose with or without fee is hereby granted.
7+
8+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14+
PERFORMANCE OF THIS SOFTWARE.

README.md

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!-- AUTO-GENERATED-CONTENT:START (STARTER) -->
2+
<p align="center">
3+
<a href="https://www.gatsbyjs.com">
4+
<img alt="Gatsby" src="https://www.gatsbyjs.com/Gatsby-Monogram.svg" width="60" />
5+
</a>
6+
</p>
7+
<h1 align="center">
8+
Gatsby WordPress blog starter
9+
</h1>
10+
11+
Kick off your wordpress gatsby project with this blog boilerplate. This starter ships with the main Gatsby Wordpress configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.
12+
13+
_Have another more specific idea? You may want to check out our vibrant collection of [official and community-created starters](https://www.gatsbyjs.com/docs/gatsby-starters/)._
14+
15+
## 🚀 Quick start
16+
17+
To get your project started or to just try it out, you can **follow the [Gatsby Wordpress Quickstart](https://github.com/gatsbyjs/gatsby-source-wordpress-experimental/blob/master/docs/getting-started.md#quick-start)** instructions
18+
19+
## 🧐 What's inside?
20+
21+
A quick look at the top-level files and directories you'll see in a Gatsby project.
22+
23+
.
24+
├── node_modules
25+
├── src
26+
├── .gitignore
27+
├── .prettierrc
28+
├── gatsby-browser.js
29+
├── gatsby-config.js
30+
├── gatsby-node.js
31+
├── gatsby-ssr.js
32+
├── LICENSE
33+
├── package-lock.json
34+
├── package.json
35+
└── README.md
36+
37+
1. **`/node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.
38+
39+
2. **`/src`**: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. `src` is a convention for “source code”.
40+
41+
3. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for.
42+
43+
4. **`.prettierrc`**: This is a configuration file for [Prettier](https://prettier.io/). Prettier is a tool to help keep the formatting of your code consistent.
44+
45+
5. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.com/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser.
46+
47+
6. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the [config docs](https://www.gatsbyjs.com/docs/gatsby-config/) for more detail). **\*Wordpress Users:** This is where you configure your wordpress URL, and provide other plugin settings.\*
48+
49+
7. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby Node APIs](https://www.gatsbyjs.com/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process. **\*Wordpress Users:** This is where you customize how gatsby consumes your wordpress graphql schema, and generates your gatsby content schema. The starter will handle post and blog types.\*
50+
51+
8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.com/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering.
52+
53+
9. **`LICENSE`**: This Gatsby starter is licensed under the 0BSD license. This means that you can see this file as a placeholder and replace it with your own license.
54+
55+
10. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).**
56+
57+
11. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.
58+
59+
12. **`README.md`**: A text file containing useful reference information about your project.
60+
61+
## 🎓 Learning Gatsby
62+
63+
Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.com/). Here are some places to start:
64+
65+
- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.com/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.
66+
67+
- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.com/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar.
68+
69+
## 💫 Deploy
70+
71+
Deploy this starter with one click on [Gatsby Cloud](https://www.gatsbyjs.com/cloud/):
72+
73+
[<img src="https://www.gatsbyjs.com/deploynow.svg" alt="Deploy to Gatsby Cloud">](https://www.gatsbyjs.com/dashboard/deploynow?url=https://github.com/gatsbyjs/gatsby-starter-wordpress-blog)
74+
75+
<!-- AUTO-GENERATED-CONTENT:END -->

content/assets/gatsby-icon.png

20.7 KB
Loading

gatsby-browser.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// custom typefaces
2+
import "typeface-montserrat"
3+
import "typeface-merriweather"
4+
5+
// normalize CSS across browsers
6+
import "./src/css/normalize.css"
7+
8+
// custom CSS styles
9+
import "./src/css/style.css"

gatsby-config.js

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/**
2+
* 👋 Hey there!
3+
* This file is the starting point for your new WordPress/Gatsby site! 🚀
4+
* For more information about what this file is and does, see
5+
* https://www.gatsbyjs.com/docs/gatsby-config/
6+
*
7+
*/
8+
9+
module.exports = {
10+
/**
11+
* Adding plugins to this array adds them to your Gatsby site.
12+
*
13+
* Gatsby has a rich ecosystem of plugins.
14+
* If you need any more you can search here: https://www.gatsbyjs.com/plugins/
15+
*/
16+
plugins: [
17+
{
18+
/**
19+
* First up is the WordPress source plugin that connects Gatsby
20+
* to your WordPress site.
21+
*
22+
* visit the plugin docs to learn more
23+
* https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-wordpress/README.md
24+
*
25+
*/
26+
resolve: `gatsby-source-wordpress`,
27+
options: {
28+
// the only required plugin option for WordPress is the GraphQL url.
29+
url:
30+
process.env.WPGRAPHQL_URL ||
31+
`https://wpgatsbydemo.wpengine.com/graphql`,
32+
},
33+
},
34+
35+
/**
36+
* We need this plugin so that it adds the "File.publicURL" to our site
37+
* It will allow us to access static url's for assets like PDF's
38+
*
39+
* See https://www.gatsbyjs.org/packages/gatsby-source-filesystem/ for more info
40+
*/
41+
{
42+
resolve: `gatsby-source-filesystem`,
43+
options: {
44+
name: `assets`,
45+
path: `${__dirname}/content/assets`,
46+
},
47+
},
48+
49+
/**
50+
* The following two plugins are required if you want to use Gatsby image
51+
* See https://www.gatsbyjs.com/docs/gatsby-image/#setting-up-gatsby-image
52+
* if you're curious about it.
53+
*/
54+
`gatsby-transformer-sharp`,
55+
`gatsby-plugin-sharp`,
56+
`gatsby-plugin-image`,
57+
{
58+
// See https://www.gatsbyjs.com/plugins/gatsby-plugin-manifest/?=gatsby-plugin-manifest
59+
resolve: `gatsby-plugin-manifest`,
60+
options: {
61+
name: `Gatsby Starter WordPress Blog`,
62+
short_name: `GatsbyJS & WP`,
63+
start_url: `/`,
64+
background_color: `#ffffff`,
65+
theme_color: `#663399`,
66+
display: `minimal-ui`,
67+
icon: `content/assets/gatsby-icon.png`,
68+
},
69+
},
70+
71+
// See https://www.gatsbyjs.com/plugins/gatsby-plugin-react-helmet/?=gatsby-plugin-react-helmet
72+
`gatsby-plugin-react-helmet`,
73+
74+
/**
75+
* this (optional) plugin enables Progressive Web App + Offline functionality
76+
* To learn more, visit: https://gatsby.dev/offline
77+
*/
78+
// `gatsby-plugin-offline`,
79+
],
80+
}

0 commit comments

Comments
 (0)