Skip to content

Instantly share code, notes, and snippets.

@mohokh67
Created July 9, 2018 12:42
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 mohokh67/329737321a8c5c6f5ef81ba7bd3d0811 to your computer and use it in GitHub Desktop.
Save mohokh67/329737321a8c5c6f5ef81ba7bd3d0811 to your computer and use it in GitHub Desktop.
Run Nodemon with BabelJs
{
"name": "Babel with Nodemon",
"version": "1.0.0",
"description": "",
"main": "public/index.js",
"scripts": {
"start": "node ./public/index.js",
"start:dev": "nodemon ./public/index.js",
"clean": "rm -rf dist",
"build": "npm run clean && mkdir dist && babel app -d dist --copy-files",
},
"author": "",
"license": "ISC",
"devDependencies": {
"nodemon": "1.17.5"
},
"dependencies": {
"babel-cli": "6.26.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-stage-2": "6.24.1"
},
"nodemonConfig": {
"delay": "3000",
"events": {
"restart": "npm run build",
"start": "npm run build"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment