-
Notifications
You must be signed in to change notification settings - Fork 10
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
Added ES6 Support #23
base: master
Are you sure you want to change the base?
Conversation
@@ -18,8 +22,9 @@ | |||
"nodemon": "^2.0.4" | |||
}, | |||
"scripts": { | |||
"start": "node index.js", | |||
"dev": "env-cmd -f .env nodemon index.js", | |||
"start": "node dist", |
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.
We have auto deployments for Vacabot app using heroku.
And there we have configured npm start
as the running script.
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.
Which means, this dist has to be created before running
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.
@mukarramali Can you Check once i think heroku builds automatically before deployments.
https://devcenter.heroku.com/changelog-items/1557
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.
that's great.
But we don't have build script in package.json.
You wanna add that?
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.
@mukarramali In the PR i have already added the build script. PR is good to go.
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.
Turns out babel didn't pick the environment variables.
To test it in your machine, you can first creat .env file as told in README. And then do build and start.
It should through an error as expected env variables aren't present.
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.
Code changes look good. Just see the running script.
@@ -18,8 +22,9 @@ | |||
"nodemon": "^2.0.4" | |||
}, | |||
"scripts": { | |||
"start": "node index.js", | |||
"dev": "env-cmd -f .env nodemon index.js", | |||
"start": "node dist", |
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.
that's great.
But we don't have build script in package.json.
You wanna add that?
No description provided.