summaryrefslogtreecommitdiffstats
path: root/src/wwwroot/libraries/fomantic/tasks/check-install.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/wwwroot/libraries/fomantic/tasks/check-install.js')
-rw-r--r--src/wwwroot/libraries/fomantic/tasks/check-install.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/wwwroot/libraries/fomantic/tasks/check-install.js b/src/wwwroot/libraries/fomantic/tasks/check-install.js
new file mode 100644
index 0000000..a82297e
--- /dev/null
+++ b/src/wwwroot/libraries/fomantic/tasks/check-install.js
@@ -0,0 +1,27 @@
+/*******************************
+ * Check Install
+ *******************************/
+
+var
+ // node dependencies
+ gulp = require('gulp'),
+ console = require('better-console'),
+ isSetup = require('./config/project/install').isSetup,
+
+ install = require('./install'),
+ watch = require('./watch')
+;
+
+// export task
+module.exports = function (callback) {
+
+ setTimeout(function () {
+ if (!isSetup()) {
+ console.log('Starting install...');
+ install(callback);
+ } else {
+ watch(callback);
+ }
+ }, 50); // Delay to allow console.clear to remove messages from check event
+
+}; \ No newline at end of file