Skip to content

Comments

Added ES6 Support#23

Open
Bhavesh27 wants to merge 1 commit intoschmiedeone:masterfrom
Bhavesh27:master
Open

Added ES6 Support#23
Bhavesh27 wants to merge 1 commit intoschmiedeone:masterfrom
Bhavesh27:master

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
"scripts": {
"start": "node index.js",
"dev": "env-cmd -f .env nodemon index.js",
"start": "node dist",
Copy link
Contributor

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
Contributor

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
Contributor

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
Contributor

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
Contributor

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

"scripts": {
"start": "node index.js",
"dev": "env-cmd -f .env nodemon index.js",
"start": "node dist",
Copy link
Contributor

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