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

Added ES6 Support #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Bhavesh27
Copy link
Contributor

No description provided.

@mukarramali mukarramali added the hacktoberfest-accepted Only valid PRs will be accepted in Hacktoberfest label Oct 23, 2020
@@ -18,8 +22,9 @@
"nodemon": "^2.0.4"
},
"scripts": {
"start": "node index.js",
"dev": "env-cmd -f .env nodemon index.js",
"start": "node dist",
Copy link
Collaborator

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.

Copy link
Collaborator

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

Copy link
Contributor Author

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

Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

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.

Copy link
Collaborator

@mukarramali mukarramali left a 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",
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Only valid PRs will be accepted in Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants