Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added make watch

  • Loading branch information...
commit 02c57b0caf477c361eb673ac2eae6285b3a7911d 1 parent 9f0be17
@tj authored
Showing with 16 additions and 0 deletions.
  1. +3 −0  Makefile
  2. +13 −0 build/ui.js
View
3  Makefile
@@ -12,6 +12,9 @@ ui:
@mkdir build
@./support/build.js $(COMPONENTS)
+watch:
+ watch --interval=1 $(MAKE)
+
stats:
@echo
@du -hs build/* | sed 's/^/ /'
View
13 build/ui.js
@@ -866,6 +866,14 @@ exports.notify = function(title, msg){
}
};
+/**
+ * Construct a notification function for `type`.
+ *
+ * @param {String} type
+ * @return {Function}
+ * @api private
+ */
+
function type(type) {
return function(title, msg){
return exports.notify.apply(this, arguments)
@@ -873,6 +881,11 @@ function type(type) {
}
}
+/**
+ * Notification methods.
+ */
+
+exports.info = exports.notify;
exports.warn = type('warn');
exports.error = type('error');
Please sign in to comment.
Something went wrong with that request. Please try again.