Created
July 25, 2016 05:50
-
-
Save ShMcK/4a607a13090551efdfac8512bd07320a to your computer and use it in GitHub Desktop.
Concurrent Live reload using NPM scripts
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": "live-reload-npm-scripts", | |
"version": "1.0.0", | |
"description": "Run 'npm start' to begin developing", | |
"main": "src/index.js", | |
"scripts": { | |
"browserify": "browserify src/index.js -o dist/bundle.js -t [ babelify --presets [ es2015 ] ]", | |
"browsersync:start": "browser-sync start --server --files 'index.html dist/bundle.js'", | |
"browsersync:reload": "browser-sync reload", | |
"reload": "npm run browserify && npm run browsersync:reload", | |
"build": "npm run browserify", | |
"start": "concurrently --kill-others 'npm run build' 'npm run browsersync:start' 'npm run watch'", | |
"watch": "npm-watch", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "Shawn McKay <[email protected]>", | |
"license": "ISC", | |
"devDependencies": { | |
"babel-preset-es2015": "^6.9.0", | |
"babelify": "^7.3.0", | |
"browser-sync": "^2.13.0", | |
"concurrently": "^2.2.0", | |
"npm-watch": "^0.1.5" | |
}, | |
"watch": { | |
"reload": { | |
"patterns": [ | |
"src" | |
], | |
"extensions": "js,css,html,scss", | |
"ignore": "node_modules", | |
"quiet": true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment