cacert-boardvoting/ui/semantic/tasks/check-install.js
Jan Dittberner d7a742d97d Update UI framework
- add package.json for npm/npx
- update to fomantic-ui
- move ui files to ui directory
- add UI build documentation to README.md
- add ui target to Makefile
- add addPrefix handler in boardvoting.go to allow the same /static/
  prefix for static resources
2022-05-08 16:13:50 +02:00

27 lines
No EOL
607 B
JavaScript

/*******************************
* 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
};