0.2.0 • Published 8 years ago
@ngirl/nom-livereload v0.2.0
nom-livereload
A custom, pluggable server and client software for simple setup and forget of hot module reloads with modern web application 1 development.
- See software requirements.
Software requirements
- Modern JavaScript (ES2015 with JavaScript Modules)
- CSS Level 3+
- HTML 5.
Usage
A local bin script -- nom-reload ~and ~ -- can be
installed either as a local or global node module script with nom-rpc-clear-cachenpm install -g.
nom-reload ws://localhost:9090npm install git+https://git.imbue.studio/ngirl/nom-livereload.git#latestImport module
import NomLiveReload from 'nom-livereload';
NomLiveReload(url, opts);Development
~One-time~npmpackage link. This must be ran from this package's parent directory.
# cd /Projects/naughty.im.git/src/app/modules/nom-livereload
npm link~One-time~jspmpackage link. This must be ran from your parent project root.
# cd /Projects/naughty.im.git/
jspm link src/app/modules/nom-livereload asshats:ngirl/nom-livereload- Every modification to the source files in the
libdirectory require linking this module from the root project directory, i.e.: ngirl/www.
npm link @ngirl/nom-livereload- Last, but not least, your project's web application must be restarted,
i.e.:
pm2 restart ndev_${appName}.
IMPORTANT: Local modifications made to this module's package.json
require a re-link; see the depicted BASH(https://en.wikipedia.org/wiki/Bash_(Unix_shell))
shell commands outlined in steps one (1) and two (2).
Testing
npm run testDistribution
Check the dist directory for the build results.
npm run buildTODO
Roadmap
I wish for supporting hot module reloading of server-side Node.JS applications some day, too.
Projects using nom-livereload
Reference Documents
0.2.0
8 years ago