GithubHelp home page GithubHelp logo

arkadiuszsz / react-redux-typescript-webpack-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from piotrwitek/react-redux-typescript-webpack-starter

0.0 1.0 0.0 5.09 MB

React / Redux / Typescript / Webpack v2 - Starter (optimized for performance)

License: MIT License

JavaScript 65.00% HTML 5.89% TypeScript 29.11%

react-redux-typescript-webpack-starter's Introduction

React / Redux / Typescript / Webpack2 - App Starter

Powered by Webpack2 optimized for performance

Features:

  • Ultra performance
  • Webpack 2 - simple one-file config for both dev & production
  • Separate app (source code) and vendor bundle
  • Easy switch between ts-loader and awesome-typescript-loader for comparison (dev and dev2 npm scripts)
  • React Hot Loader 3
  • Webpack Dashboard


Installation

  • project optimized to use yarn
// Clone repo
git clone https://github.com/piotrwitek/react-redux-typescript-webpack-starter

// Install dependencies
npm install

// Run development server with react hot-reload
npm run dev (ts-loader)
or
npm run dev2 (awesome-typescript-loader)

CLI Commands

- Development

npm run dev - start dev-server with hot-reload (ts-loader)

npm run dev2 - start dev-server with hot-reload (awesome-typescript-loader)

- Type checking

npm run tsc - entire project type-check

npm run tsc:watch - fast incremental type-checking in watch mode

- Production Bundling (dist/ folder)

npm run prod - start local dev server in dist/ folder running production bundle

npm run clean - clean dist

npm run build - build dist bundle

- Utility & Git Hooks

npm run reinstall - reinstall all dependencies (useful when switching branch) (note: use reinstall:win on Windows)

npm run lint - run linter (tslint)

npm run test - run tests with jest runner

npm run test:update - update jest snapshots

npm run precommit - pre commit git hook - linter

npm run prepush - pre push git hook - linter, tests and check types

- Deployment

npm run deploy - commit and push all changes found in /dist folder to "gh-pages" branch


The MIT License (MIT)

Copyright (c) 2016 Piotr Witek [email protected] (http://piotrwitek.github.io/)

react-redux-typescript-webpack-starter's People

Contributors

nicodeslandes avatar piotrwitek 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.