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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separating JS dev and prod dependencies #3241
Conversation
Heroku was still installing all dependencies. I checked the doc: we need to use |
"eslint": "^5.16.0", | ||
"eslint-config-prettier": "^4.3.0", | ||
"eslint-plugin-prettier": "^3.1.0", | ||
"eslint-plugin-react": "^7.13.0", | ||
"event-stream": "3.3.4", | ||
"html-entities": "^1.2.1", | ||
"js-cookie": "2.2.0", | ||
"mofo-bootstrap": "4.1.0", | ||
"mofo-style": "^2.4.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we no longer uses mofo-style
. I'll file a separate ticket to remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed: #3248
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Maybe @cadecairos can chime in as I'm not super familiar with Heroku set up - do we need to have both NPM_CONFIG_PRODUCTION=true
and NODE_ENV=production
for every Heroku app (review apps + staging + prod)?
I'll let Mavis & Cade review this since I'm not super knowledgeable on all the packages we utilize. 馃槄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, was able to install and run without issue.
We're installing a bunch of JS deps that are not necessary for prod. I tried to separate dev/prod dependencies, but I might have missed one or two, can someone double check?
I'm pretty sure usingIt's already running with this setting, never mind :DNODE_ENV=production
for review apps, staging and prod will be okay, but again, correct me if I'm wrong 馃槄It won't change anything for local dev or CI: all dependencies will still be installed when running
npm i
or building the node image. Only review apps, staging and prod will run without dev dependencies.todos:
NPM_CONFIG_PRODUCTION=true
to staging,NPM_CONFIG_PRODUCTION=true
to prod.