Giter Site home page Giter Site logo

gatsby-theme-jam-example's Introduction

Gatsby Theme Jam Submission Example

This repo is an example and potential starting point for theme creators.

It includes:

  • a bare-bones theme (located in theme/) that includes basic setup
  • a demo site (located in demo/) that installs the theme
  • a Yarn workspaces configuration so the theme and demo can be worked on simultaneously

How to use this repo

NOTE: Make sure to replace USERNAME with your GitHub username and THEMENAME with your theme name.

  1. Fork this repo.

  2. Rename the forked repo gatsby-theme-THEMENAME. (Make sure to replace THEMENAME with your chosen name.)

  3. Get the theme set up locally.

    # clone the repo
    git clone [email protected]:USERNAME/gatsby-theme-THEMENAME.git
    
    # move into the directory
    cd gatsby-theme-THEMENAME
    
    # install dependencies
    yarn
  4. Update theme/package.json with your info.

      {
    +   "name": "gatsby-theme-THEMENAME",
    +   "author": "Your Name <[email protected]>",
        "repository": {
          "type": "git",
    +     "url": "https://github.com/USERNAME/gatsby-theme-THEMENAME.git"
        },
  5. Start the demo site.

    yarn workspace demo develop

    The demo will start at http://localhost:8000

    NOTE: If you’re new to Yarn workspaces, check out this post for details.

  6. Start editing the theme! The demo site is configured to use the local theme, so any changes you make to the local theme directory will be reflected on the demo site for easy local development.

  7. Follow the submission checklist to make sure your theme qualifies to win!

  8. Submit your theme to win!

More information

For contest rules and more information, see the Theme Jam website.

gatsby-theme-jam-example's People

Contributors

jlengstorf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gatsby-theme-jam-example's Issues

gatsby theme : build failing on netlify

I try to deploy demo gatsby theme on netlify but i have this error " failed during stage 'building site': Deploy directory 'demo/demo/public' does not exist" .
this is the log :

2:15:58 PM: $ gatsby build
2:16:01 PM: success open and validate gatsby-configs — 0.022
2:16:01 PM: success load plugins — 0.101
2:16:01 PM: success onPreInit — 0.002
2:16:01 PM: success delete html and css files from previous builds — 0.005
2:16:01 PM: success initialize cache — 0.011
2:16:01 PM: success copy gatsby files — 0.049
2:16:01 PM: success onPreBootstrap — 0.008
2:16:01 PM: success source and transform nodes — 0.028
2:16:01 PM: success building schema — 0.165
2:16:01 PM: warning make sure to load data from somewhere!
2:16:01 PM: success createPages — 0.012
2:16:01 PM: success createPagesStatefully — 0.022
2:16:01 PM: success onPreExtractQueries — 0.000
2:16:01 PM: success update schema — 0.040
2:16:01 PM: success extract queries from components — 0.065
2:16:01 PM: success write out requires — 0.003
2:16:01 PM: success write out redirect data — 0.001
2:16:01 PM: success onPostBootstrap — 0.000
2:16:01 PM: info bootstrap finished - 3.056 s
2:16:01 PM: success run static queries — 0.045 — 1/1 23.20 queries/second
2:16:15 PM: success Building production JavaScript and CSS bundles — 13.519
2:16:15 PM: success Rewriting compilation hashes — 0.001
2:16:15 PM: success run page queries — 0.008 — 1/1 138.58 queries/second
2:16:16 PM: success Building static HTML for pages — 1.004 — 1/1 3.75 pages/second
2:16:16 PM: info Done building in 17.766 sec
2:16:16 PM: Done in 17.97s.
2:16:16 PM: Skipping functions preparation step: no functions directory set
2:16:16 PM: Caching artifacts
2:16:16 PM: Started saving node modules
2:16:16 PM: Finished saving node modules
2:16:16 PM: Started saving yarn cache
2:16:16 PM: Finished saving yarn cache
2:16:16 PM: Started saving pip cache
2:16:16 PM: Finished saving pip cache
2:16:16 PM: Started saving emacs cask dependencies
2:16:16 PM: Finished saving emacs cask dependencies
2:16:16 PM: Started saving maven dependencies
2:16:16 PM: Finished saving maven dependencies
2:16:16 PM: Started saving boot dependencies
2:16:16 PM: Finished saving boot dependencies
2:16:16 PM: Started saving go dependencies
2:16:16 PM: Finished saving go dependencies
2:16:19 PM: Build script success
2:16:19 PM: Failing build: Failed to build site
2:16:19 PM: failed during stage 'building site': Deploy directory 'demo/demo/public' does not exist
2:16:19 PM: Finished processing build request in 1m6.484229493s

Change step 5 to 6 and add a new step 5

I might have missed something and if thats the case just ignore :) but...
Maybe it would be useful to have a step 5 mentioning:

  1. Update demo/gatsby-config.js with your THEMENAME
 module.exports = {
-  plugins: ["gatsby-theme-jam-example"],
+  plugins: ["gatsby-theme-THEMENAME"],
 }

6.Start the demo site.
...

This way I think it would work out of the box IMO, otherwise I think it triggers an error:

 ERROR  Failed to compile with 1 errors                                                                                                                                 11:30:28 PM
⠀
 error  in ../node_modules/gatsby-theme-jam-example/src/templates/page.js
⠀
Module parse failed: Unexpected token (6:2)
   1 /**
You may need an appropriate loader to handle this file type.

🙌

PS - If the issue is confirmed I can open a PR for the fix if it helps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.