REF : http://stackoverflow.com/questions/8191459/how-do-i-update-node-js
//Clear NPM's cache:
- npm update npm -g
//Install a little helper called 'n' , sudo is for linux
- sudo npm cache clean -f
//Install a little helper called 'n' , sudo is for linux
- sudo npm install -g n
//Install latest stable Node.js version , sudo is for linux
- sudo n stable
// If you have Homebrew installed (only for OS X):
- brew upgrade node
REF : http://stackoverflow.com/questions/10577879/starting-a-node-js-server
- node app.js
- Browser-Refresh
npm install browser-refresh -g
https://www.npmjs.com/package/browser-refresh - BrowserSync - https://www.browsersync.io/
npm install -g browser-sync
browser-sync start --server --files "css/*.css" <== static site
browser-sync start --proxy "myproject.dev" --files "css/*.css" <== dynamic site
command line https://www.browsersync.io/docs/command-line
npm install -g testcafe
testcafe chrome,firefox tests/
- Gulp.js คืออะไร ? + สอนวิธีใช้ http://www.siamhtml.com/introduction-to-gulp-js/
- Browser Sync with PHP https://fettblog.eu/php-browsersync-grunt-gulp/
- Browser Sync Options https://www.browsersync.io/docs/options
- Gulp PHP Connect - https://www.npmjs.com/package/gulp-connect-php