Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5 #6

Merged
merged 3 commits into from Nov 12, 2018
Merged

Conversation

colshacol
Copy link
Collaborator

@colshacol colshacol commented Nov 12, 2018

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

@colshacol colshacol changed the title Fix/dev environment Fix #5 Nov 12, 2018
@alexvcasillas
Copy link
Owner

Thanks for this awesome contribution @colshacol :)

@alexvcasillas alexvcasillas merged commit 906e245 into alexvcasillas:master Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants