Skip to content

Commit

Permalink
Simple Theme example and theme package
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherBiscardi committed Oct 8, 2018
1 parent 88137ab commit 9c9539e
Show file tree
Hide file tree
Showing 14 changed files with 352 additions and 14 deletions.
8 changes: 8 additions & 0 deletions examples/theming/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"env": {
"browser": true
},
"globals": {
"graphql": false
}
}
3 changes: 3 additions & 0 deletions examples/theming/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
public
.cache
node_modules
5 changes: 5 additions & 0 deletions examples/theming/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# theming

https://theming.gatsbyjs.org

Stub README description
3 changes: 3 additions & 0 deletions examples/theming/blog-posts/my-first-post.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Hi

This is a blog post
3 changes: 3 additions & 0 deletions examples/theming/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
__experimentalThemes: [[`blog-theme`, { dir: __dirname }]],
}
16 changes: 16 additions & 0 deletions examples/theming/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "theming",
"private": true,
"description": "Gatsby example site using theming",
"author": "Chris Biscardi (chris@christopherbiscardi.com)",
"dependencies": {
"gatsby": "latest",
"gatsby-link": "latest"
},
"license": "MIT",
"main": "n/a",
"scripts": {
"develop": "gatsby develop",
"build": "gatsby build"
}
}
9 changes: 9 additions & 0 deletions examples/theming/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

class IndexComponent extends React.Component {
render () {
return <div>Hello world</div>
}
}

export default IndexComponent
3 changes: 3 additions & 0 deletions packages/blog-theme/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*.js
!index.js
yarn.lock
34 changes: 34 additions & 0 deletions packages/blog-theme/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
*.un~
yarn.lock
src
flow-typed
coverage
decls
examples
3 changes: 3 additions & 0 deletions packages/blog-theme/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# blog-theme

Stub README
1 change: 1 addition & 0 deletions packages/blog-theme/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// noop
37 changes: 37 additions & 0 deletions packages/blog-theme/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "blog-theme",
"version": "1.0.0",
"description": "Stub description for blog-theme",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir . --ignore **/__tests__",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"prepare": "cross-env NODE_ENV=production npm run build"
},
"keywords": [
"gatsby",
"gatsby-plugin"
],
"author": "Chris Biscardi (chris@christopherbiscardi.com)",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
},
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/blog-theme#readme",
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby.git"
},
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.0.0",
"gatsby-mdx": "0.2.0",
"@mdx-js/mdx": "0.15.5",
"@mdx-js/tag": "0.15.0",
"gatsby-source-filesystem": "2.0.2"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"cross-env": "^5.0.5"
}
}
Empty file.
Loading

0 comments on commit 9c9539e

Please sign in to comment.