Created
July 9, 2018 12:42
-
-
Save mohokh67/329737321a8c5c6f5ef81ba7bd3d0811 to your computer and use it in GitHub Desktop.
Run Nodemon with BabelJs
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": "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