Skip to content

Instantly share code, notes, and snippets.

@calvimor
Forked from bdchauvette/.babelrc
Created June 13, 2016 13:16
Show Gist options
  • Save calvimor/d6b53bced4c8d47704f2aed5cb766135 to your computer and use it in GitHub Desktop.
Save calvimor/d6b53bced4c8d47704f2aed5cb766135 to your computer and use it in GitHub Desktop.
Minimal babel boilerplate
{
"presets": [ "es2015" ]
}
const express = require('express');
const app = express();
const port = 3000;
app.get('/', (req, res) => {
res.send('Hello World!');
});
app.listen(port, () => {
console.log(`Example app listening on port ${port}!`);
});
{
"dependencies": {
"babel": "^6.5.2",
"babel-preset-es2015": "^6.9.0",
"babel-register": "^6.9.0",
"express": "^4.13.4"
}
}
require('babel-register');
require('./app');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment