alexvcasillas / react-forum-system

React Forum System
http://reactivecommunity.com
BSD 3-Clause "New" or "Revised" License
16 stars 5 forks source link

Fix #5 #6

Closed colshacol closed 5 years ago

colshacol commented 5 years ago

Fixes #5.

  1. Created workspace shortcuts via npm scripts.
# This:
yarn workspace frontend add -D whatever
# ... can now be done more easily like so:
yarn frontend add -D whatever
  1. Added NODE_ENV declarations.
# So we can designate which environment we are working on.
# Also required for (3) of this list. :)
NODE_ENV='development'
NODE_ENV='production'
  1. Added babel-plugin-dev-expression.
// If NODE_ENV='development', __DEV__ will be true.
__DEV__
  1. Used __DEV__ in init-apollo.js.

Replaced the static isProduction with __DEV__.

alexvcasillas commented 5 years ago

Thanks for this awesome contribution @colshacol :)