Coder Social home page Coder Social logo

kwixand / gatsby-starter-typescript-scss-modules Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 413 KB

A no-fluff, minimal Gatsby starter with a clear separation of concerns.

License: MIT License

JavaScript 12.55% CSS 21.16% TypeScript 66.29%
gatsby gatsbyjs gatsby-starter gatsby-scss gatsbyjs-scss gatsby-typescript gatsbyjs-typescript typescript typescript3 scss

gatsby-starter-typescript-scss-modules's Introduction

TypeScript & SCSS Modules Gatsby Starter

Install

gatsby new SITE_NAME https://github.com/kwixand/gatsby-starter-typescript-scss-modules

Features

  • Gatsby Configuration contains a block for copyright values. The year is automatically set to the current year new Date().getFullYear() and the text can be the organization name, or whatever is needed. This is made available globally now through the <StaticQuery /> component.

  • React Helmet is included for SEO. Helper components to simplify this (somewhat) are on my mental roadmap. Please post an issue if it's something you'd like to see. The default title is defined in the custom <Layout> wrapper component. It will include the title and description in the <title> tag, and just the description in the <meta name="description"> tag.

  • TypeScript. The bread and butter of this starter, includes a Layout component, example Card component and page setup using .tsx. Additionally there's also a globals.d.ts type definition file that silences a module not declared issue for all image filetypes, and actually defines a generic type setup for importing SCSS modules.

  • (S)CSS Modules are included, SCSS Specifically is being used. Any file using .module.scss can be imported and referenced. These are run through autoprefixer automatically and the browserslist configuration matches the default Create-React-App values.

Planned

The roadmap is largely based on my own needs, wants and nice-to-have priority list. Feel free to post a new issue if there's something you need or would like to see implemented. There's even a label for issues of confirmed upcoming changes. Check out the Planned label

gatsby-starter-typescript-scss-modules's People

Contributors

pqt avatar

Stargazers

 avatar

Watchers

 avatar

gatsby-starter-typescript-scss-modules's Issues

HTML5 Elements

The Layout uses the <main> tag, this shouldn't be the case unless the element in predefined for safety, this is relevant specifically for IE.

document.createElement('main')

Header & Header Navigation

Not sure how I want to go about implementing this yet. Should work with IE9+ and include a complete mobile navigation option.

Footer

Must included the copyright StaticQuery already defined.

Prettier Updates

The prettier configuration has been updated to include semicolons. This codebase should be updated too.

Also a prettier script command should be added that hits all of the appropriate files for testing in the future.

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.