Git Product home page Git Product logo

react-playground's Introduction

react-playground

Common technology stack

As for Internet Explorer™, we only care about the officially supported (latest) version for recent Windows platforms, and so should you.

Prototypes

Development environment

  1. install nvm and run nvm install v6.y.z or install Node.js v6 (LTS) manually on your platform

  2. install Yarn (latest stable)

  3. run yarn install to download and link project’s dependencies into the local node_modules directory

  4. start webpack dev-server via yarn run start:dev and JSON API server via yarn run start:api

  5. open the prototype page in your web browser and start hacking!

Using webpack dev-server

With dev-server, all project assets are processed in-memory (no dist directory).

dev-server watches the filesystem and recompiles project assets on change, e.g. JS chunks whose content is impacted by the source change. Once recompiled, application’s HTML page is automatically reloaded (this is done by injecting a script that opens a WebSocket connection to the server).

Basic commands

yarn run build

Build project for production. Outputs are placed in dist directory. Performs code linting and runs unit tests before doing the actual build.

yarn run build:dev

Build project for development (without optimizations). Same output location as with build script. No code linting or unit tests, just the build itself.

yarn run start:dev

Starts webpack dev-server, watching the filesystem and recompiling project assets on change. Serves both project assets and API requests (proxied to JSON API server).

yarn run start:api

Starts JSON API server that imitates a real backend.

yarn run test

TODO implement

yarn run test:watch

TODO implement

Other commands

yarn outdated

Check for outdated dependencies.

yarn check

Validates dependency resolutions in yarn.lock based on project’s dependencies declared in package.json.

yarn run foo / yarn run foo -- args

Run a locally installed JS module foo.

License

MIT

react-playground's People

Contributors

vojtechszocs avatar

Watchers

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