From 3f4c0720e1e3421431e7baa20882a4a4512a7fab Mon Sep 17 00:00:00 2001 From: ivar Date: Sun, 19 Oct 2025 23:41:23 +0200 Subject: Initial --- .../libraries/fomantic/tasks/check-install.js | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/wwwroot/libraries/fomantic/tasks/check-install.js (limited to 'src/wwwroot/libraries/fomantic/tasks/check-install.js') 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 -- cgit v1.3