refreshify-allnotifications
refreshify: watch mode on steroids for browserify builds
refreshify-allnotifications: refreshify + notifications for nonerroring builds + customizable notification title
Features
refreshify
- recompiles your browserify bundle as soon as a source file changes
- notifies you via native desktop notification if your build fails
refreshify-allnotifications
- notifies you via native desktop notification every time your build completes (
-n
--alwaysnotify
) - allows you to customize the (nonerroring) build complete notification's title
-m 'AWWW YEAH!'
or--message 'Built!'
Enable notifications for all builds with -n
or --alwaysnotify
.
Customize the notification title with -m 'custom title here'
or --message 'YES!'
.
refreshify-allnotifications -o -v -n -m 'AWW YEAH!'
remainder of refreshify documentation
- live-reload built in
- server/protocol agnostic: No need to have a local dev server, even works when files are beign served from the local file system
Example
Use refreshify-allnotifications
with all the same arguments as browserify
except that
-o
is mandatory:
$ refreshify-allnotifications main.js -o static/bundle.js
Now as you update files, static/bundle.js
will be automatically incrementally rebuilt on
the fly.
You can use -v
to get more verbose output to show when a file was written and how long the bundling took (in seconds):
$ refreshify browser.js -d -o static/bundle.js -v
610598 bytes written to static/bundle.js 0.23s
610606 bytes written to static/bundle.js 0.10s
610597 bytes written to static/bundle.js 0.14s
610606 bytes written to static/bundle.js 0.08s
610597 bytes written to static/bundle.js 0.08s
610597 bytes written to static/bundle.js 0.19s
To run the example included in this repo, run npm run example
.
Install
With npm do:
$ npm install -g refreshify-allnotifications
to get the global refreshify-allnotifications
command.
License
MIT