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

Convert to es6 #2

Open
michaelguild13 opened this issue Sep 4, 2017 · 0 comments
Open

Convert to es6 #2

michaelguild13 opened this issue Sep 4, 2017 · 0 comments

Comments

@michaelguild13
Copy link

If you want to convert to es6 with using babel:
npm install -D babel-cli babel-preset-es2015

create a new file in your root directory called .babelrc and use this code:
{ "presets": ["es2015"] }

in your package.json, change your start script to : ``"start": "nodemon app.js --exec babel-node"

and if you want to add a build & serve command for running on production:
"build": "babel app.js -d dist", "serve": "node dist/app.js"

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

No branches or pull requests

1 participant