Skip to content

Instantly share code, notes, and snippets.

@weisk
Created June 1, 2017 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weisk/decf1c9bde28674fb454a7f0b2da4cf0 to your computer and use it in GitHub Desktop.
Save weisk/decf1c9bde28674fb454a7f0b2da4cf0 to your computer and use it in GitHub Desktop.
es2017 node starter boilerplate
import something from './somewhere';
export default function() {
console.log('hi');
}
const path = require('path');
require('babel-register');
require('babel-polyfill');
require(path.join(__dirname, 'src/index.js'));
{
"name": "node-server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "nodemon main.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"chalk": "^1.1.3",
"cheerio": "^1.0.0-rc.1",
"express": "^4.15.3",
"node-fetch": "^1.7.0",
"phantom": "^4.0.3"
},
"devDependencies": {
"babel-polyfill": "^6.23.0",
"babel-preset-env": "^1.5.1",
"babel-register": "^6.24.1",
"nodemon": "^1.11.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment