Giter Site home page Giter Site logo

minimal-react-typescript-webpack's Introduction

React / Typescript / Webpack Minimal Boilerplate

This boilerplate is meant to be the smallest possible boilerplate for using react with typescript and webpack. It's not really meant to be a production ready application framework or anything. I just wanted a quick thing to use to let me hack on stuff with this stack.

It uses live-server for auto reloading, and only includes the core react libs. If you want to use redux and stuff like that add them or whatever.

If you want to have your app be universal, great! It's actually like, pretty easy to do. Maybe I'll make a version of this that does it, but it's sort of against the mentality of this one.

A word on Editors

I'd suggest VSCode, it's hands down the best of the bunch of sublime-esque editors for typescript autocompletion. It also has all the hotkeys you know and love from sublime / atom / brackets / whatever. VIM people, I dunno. Aren't you programming drone armies anyway?

Commands

Ok so, like, use yarn instead of npm. It's better. It's also easier to use. Just do it. Once you do that you can use these commands to do cool stuff. They're all defined in package.json so you can see how they work there.

  • yarn run build: outputs your bundle
  • yarn run build:watch: output your bundle, watch for changes
  • yarn run server: starts lite-server
  • yarn run start: runs build:watch and server simultaneously, with output from both... this is the one you use for happy development times.

If you want to use npm(๐Ÿ˜ž) you can just substitute yarn run for npm run in all the above commands. But seriously, use yarn. It's like exactly the same except faster and less error prone defaults.

License

Nobody likes when a boilerplate has a license file they need to keep around. This project uses the Whatever The Fuck You Want Public License. Just like, do whatever. I don't care. Delete it if you want, or not.

minimal-react-typescript-webpack's People

Stargazers

Mallory Allen avatar

Watchers

James Cloos avatar Mallory Allen avatar

Forkers

edward

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.