Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
React Wrapper Step 6: Reduxify App Lab #7148
Gives App Lab a redux store and starts using it to drive rendering of the React frame.
New Redux Actions
There are only three of them in this first pass:
Step 6 from this design document.
Introduces the 'envify' transform into our apps build. When MOOC_DEV=0 (as in npm run build:dist) we add the envify transform to our browserifyinc command and set NODE_ENV to "production". This replaces any instance of process.env.NODE_ENV in our own code with the string "production" which allows us to set some conditional behavior according to the enviornment. Uglify then removes now-dead code paths in minified production builds. In this first case, we check the environment to build a redux store with no middleware for production builds, but introduce middleware for logging state changes and connecting to the Redux Chrome DevTools in debug builds.