Created
June 1, 2017 12:36
-
-
Save weisk/decf1c9bde28674fb454a7f0b2da4cf0 to your computer and use it in GitHub Desktop.
es2017 node starter boilerplate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import something from './somewhere'; | |
export default function() { | |
console.log('hi'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
require('babel-register'); | |
require('babel-polyfill'); | |
require(path.join(__dirname, 'src/index.js')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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