Coder Social home page Coder Social logo

jackyef / preact-goober-snowpack Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 215 KB

WIP -- Preact + Goober + Snowpack with SSR setup, and of course TypeScript!

JavaScript 38.20% HTML 9.79% TypeScript 52.01%
preact web javascript snowpack goober css-in-js typescript

preact-goober-snowpack's Introduction

Snowpack + Preact + SSR + TypeScript starter (WIP)

Modern web development starter. Use snowpack during development for fast development, bundle using webpack for production.

  • ๐Ÿ“ฆ 13.1 KB JS bundle size (5.61 KB gzipped)

Includes

  • Snowpack, for blazing fast dev environment
  • Preact, smaller runtime while still having access to most of React ecosystem if you choose to
  • TypeScript, never hurt anyone
  • Goober, a less than 1KB css-in-js solution
  • Jest, for running your tests
  • Webpack, for bundling production builds
  • ESLint, for linting your codes

Getting started

  1. Install dependencies

    yarn install
  2. Start developing (no SSR)

    yarn start
  3. Generate production client bundle using webpack

    yarn build
  4. To test SSR (uses production build)

    yarn build # build the client bundle first, if it's not built yet
    yarn build:server
    node server/dist/main.js

Current issues

  • Extracted CSS from SSR are only available for first request on asynchronous requests
  • Styles using css tags are not minified in client bundle

preact-goober-snowpack's People

Contributors

jackyef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cristianbote

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.