All Projects → toddlucas → React Tsx Starter

toddlucas / React Tsx Starter

Licence: bsd-3-clause
Universal/Isomorphic React TypeScript Starter Project

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to React Tsx Starter

gupack
基于gulp的前端构建工具
Stars: ✭ 13 (-86.6%)
Mutual labels:  gulp, browserify
Npm Pipeline Rails
Use npm as part of your Rails asset pipeline
Stars: ✭ 93 (-4.12%)
Mutual labels:  gulp, browserify
Gulp Bro
👊 gulp + browserify + incremental build, done right.
Stars: ✭ 119 (+22.68%)
Mutual labels:  gulp, browserify
middleman-gulp
A Middleman 4 template using Gulp.js via the external pipeline
Stars: ✭ 42 (-56.7%)
Mutual labels:  gulp, browserify
generator-phaser-browserify
A generator for Phaser using Gulp and Browserify
Stars: ✭ 36 (-62.89%)
Mutual labels:  gulp, browserify
Dough
React/Redux + SASS + Gulp/Browserify/Babel skeleton codebase with demo application.
Stars: ✭ 38 (-60.82%)
Mutual labels:  gulp, browserify
Gulp Tutorial
Code examples for my Gulp.js tutorial series
Stars: ✭ 383 (+294.85%)
Mutual labels:  gulp, browserify
Generator Dhboilerplate
Boilerplate made by David Hellmann
Stars: ✭ 54 (-44.33%)
Mutual labels:  gulp, browserify
Postcss Modules Example
How to use postcss-modules plugin
Stars: ✭ 78 (-19.59%)
Mutual labels:  gulp
Gulp Ngmin
[DEPRECATED] Pre-minify AngularJS apps with ngmin
Stars: ✭ 89 (-8.25%)
Mutual labels:  gulp
Nextjs Full Demo
Demo about integration between examples of next.js and also fix some issues during development
Stars: ✭ 76 (-21.65%)
Mutual labels:  gulp
Electrate
Quick and Easy Electron + React Boilerplace
Stars: ✭ 80 (-17.53%)
Mutual labels:  gulp
Css Flags
A collection of pure CSS flags, all single divs.
Stars: ✭ 90 (-7.22%)
Mutual labels:  gulp
Template.js
A javascript template engine, simple, easy & extras, support webpack, rollup, parcel, browserify, fis and gulp
Stars: ✭ 1,201 (+1138.14%)
Mutual labels:  browserify
Gulp Plugin Boilerplate
Boilerplate to kickstart creating Gulp plugins
Stars: ✭ 74 (-23.71%)
Mutual labels:  gulp
String To Stream
Convert a string into a stream (streams2)
Stars: ✭ 75 (-22.68%)
Mutual labels:  browserify
Generator Fountain Angular1
Yeoman 'fountain' generator to start a webapp with Angular 1
Stars: ✭ 95 (-2.06%)
Mutual labels:  gulp
Tars Cli
CLI for TARS
Stars: ✭ 92 (-5.15%)
Mutual labels:  gulp
Buddycss
The framework for people who love coding!
Stars: ✭ 89 (-8.25%)
Mutual labels:  gulp
Gulp Pug Sass Seed
🍹 A Pug and Sass starter project using gulp for task automation.
Stars: ✭ 84 (-13.4%)
Mutual labels:  gulp

Universal/Isomorphic React TypeScript Starter

This project includes a working example of React, React Router, and TypeScript.

All the code is in TypeScript, written as either .ts or .tsx files. The gulp-based build generates a browserified client file which is separate from the vendor file. The vendor file currently includes react and react-router. This separation speeds up the build process and can result in fewer client downloads when new builds are released. The gulp build process works with gulp.watch.

This is a basic starter project with a minimal number of views and components. Many recent React examples are written in ES6 and make use of Babel. These are largely compatible with this TypeScript based process.

This starter also includes an example of how to use Redux with TypeScript. In order to keep the starter as clean as possible, the Redux example is on a branch.

Features

  • React with React Router
  • Redux (on a separate branch)
  • TypeScript TSX
  • Isomorphic between server and client
  • Client app.js is browserified
  • Client vendor.js is browserified separately
  • Browserify-shim supports external scripts
  • Gulp based build with watch tasks

Versions

This template supports the following versions for key dependencies:

Usage

You'll need a few frameworks and utilities to be installed before starting.

Prerequisites

You'll need the following prior to setup:

Setup

Install Node modules

This will get all the packages required for development and run time, as defined in the package.json file.

> npm install

Build

To run a full build, just run gulp with no arguments.

> gulp

You can also use npm.

> npm run build

Development

Run watch and keep the console open.

> gulp watch

Gulp will automatically rebuild when a source file or CSS file changes.

Running

Run this command:

> npm run dev

Then open a browser and navigate to http://localhost:3000 to view.

You can also run the server with automatic reloading using nodemon and BrowserSync.

> gulp serve

This will launch at a different port since it proxies Express.

Related

A simple starter project can be found at react-tsx-lite.

License

BSD (the same as React)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].