GithubHelp home page GithubHelp logo

hankxu / gatsby-starter-ts-mdx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erikdstock/gatsby-starter-ts-mdx

0.0 1.0 0.0 7.3 MB

gatsby/typescript/rebass/netlify starter

Home Page: https://festive-villani-316b3c.netlify.com/

License: MIT License

JavaScript 60.93% TypeScript 39.07%

gatsby-starter-ts-mdx's Introduction

Netlify Status

Erik's Gatsby 2019 setup

Heavily inspired by https://github.com/damassi/gatsby-starter-typescript-rebass-netlifycms

I've done my best to keep commits for this setup step-by-step in hope others might understand the process better and avoid some of the endless faffing I went through.

Steps

These intermediate PRs worked at the time I did them but as some versions upgraded bugs were introduced and fixed. They now exist mainly as documentation of what changes I made for each step.

The steps begin from a working typescript + styled-components setup on top of the default gatsby starter.

  1. Introduce Rebass and re-implement most of the original site using its layout components
  2. Set up markdown sources using gatsby-transformer-remark
  3. Set up netlify-cms
  4. Set up mdx sources using gatsby-mdx
  5. Cleanup & most caveats for the above

By default this starter has both mdx and markdown/remark extensions. MDX seems a better fit for styled-components, so compare the disable-remark branch for a rough diff on how to unwind that.

TODOs:

  • Netlify CMS is broken - see gatsbyjs/gatsby#12776 . I'll update when there is a more durable fix but for now pinning to netlify-cms 2.6 (2.6.0 works for me) should fix it.
  • Relative imports for MDX Global Scoped components not working from gatsby-config

gatsby-starter-ts-mdx's People

Contributors

erikdstock avatar

Watchers

 avatar

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.