Code Monkey home page Code Monkey logo

react-playground's Introduction

react playground

Join the chat at https://gitter.im/Drathal/react-playground CircleCI Open Source Love Dependencies

My personal frontend development playground.

Uses:

  • javascript in ES6
  • flow & tcomb for typings
  • babel 6
  • webpack 2
  • react 15
  • react-intl (with support for gettext .po files)
  • react-router (with lazy loading components)
  • redux
  • mocha (with wallaby.js support)
  • enzyme
  • simple snapshot testing for react components
  • css-modules
  • postcss
  • automatic assets optimisation (.png, .gif, .jpg, .svg)
  • ...

While this repro is using webpack as module bundler. It does not use webpack for unit testing. To archieve this im using babel-plugin-webpack-loaders and babel-plugin-webpack-aliases. This setup reduced time to unit test my components a lot.

Reducers not lazy loaded yet.

Usage

npm install
  • install all dependencies

Production

npm run build
  • builds the application for production
npm start
  • starts application in production mode at localhost:3000

Development

npm run start:dev -s
  • runs a development server at localhost:3000
  • runs mocha tests on file change (not on file add)
  • extracts all language definitions and creates a messages.pot file on change
  • watches *.po files and creates message strings
npm run font:update
  • updates used fonts from the web

Docker

docker-compose up
  • start production mode
docker-compose -f docker-compose.dev.ym
  • start development mode

translation

npm run translation:export
  • extract all messages and create a export messages.pot file
npm run translation:import
  • imports all *.po files and creates *.json files

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.