Commit dcb64719 authored by Sascha Pfeiffer's avatar Sascha Pfeiffer

upgraded gulpfile for gulp 4.0

Signed-off-by: default avatarSascha Pfeiffer <sascha.pfeiffer@psono.com>
parent 19612672
......@@ -17,7 +17,6 @@ var run = require('gulp-run');
var sass = require('gulp-sass');
var jwt = require('jsonwebtoken');
var karma_server = require('karma').Server;
var runSequence = require('run-sequence');
var webstore_upload = require('webstore-upload');
var fs = require("fs");
......@@ -58,7 +57,7 @@ var build = function(build_path, type) {
"src/common/data/css/lib/angular-datatables.css",
"src/common/data/css/lib/datatables.bootstrap.css",
"src/common/data/css/lib/angular-ui-select.css",
"src/common/data/css/lib/loading-barbar.min.css",
"src/common/data/css/lib/loading-bar.min.css",
'src/common/data/css/angular-tree-view.css',
'src/common/data/css/style.css'
])
......@@ -369,11 +368,10 @@ gulp.task('build-chrome', function() {
});
gulp.task('default', function(callback) {
runSequence(['sass', 'template'],
['build-chrome', 'build-firefox', 'build-webclient'],
callback);
});
gulp.task('default', gulp.series(
gulp.parallel('sass', 'template'),
gulp.parallel('build-chrome', 'build-firefox', 'build-webclient')
));
/**
* Watcher to compile the project again once something changes
......@@ -382,7 +380,8 @@ gulp.task('default', function(callback) {
* - initiates the task for the creation of the firefox build folder
* - initiates the task for the creation of the chrome build folder
*/
gulp.task('watch', ['default'], function() {
gulp.task('watch', gulp.series('default',
function() {
gulp.watch([
'src/common/data/**/*',
'src/chrome/**/*',
......@@ -391,8 +390,7 @@ gulp.task('watch', ['default'], function() {
'!src/common/data/css/**/*',
'!src/common/data/sass/**/*.scss'], ['build-webclient', 'build-firefox', 'build-chrome']);
gulp.watch('src/common/data/sass/**/*.scss', ['default']);
});
}));
/**
* Deploys the Chrome Extension to the Chrome Web Store
......@@ -504,7 +502,7 @@ gulp.task('updateversion', function() {
* Create ngdocs documentation once and exit
*/
gulp.task('docs', [], function () {
gulp.task('docs', function () {
var options = {
html5Mode: false,
......
......@@ -535,14 +535,6 @@ caseless@~0.12.0:
version "0.12.0"
resolved "https://psono.jfrog.io/psono/api/npm/npm/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
chalk@*, chalk@^2.3.0:
version "2.4.1"
resolved "https://psono.jfrog.io/psono/api/npm/npm/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
dependencies:
ansi-styles "^3.2.1"
escape-string-regexp "^1.0.5"
supports-color "^5.3.0"
chalk@^0.5.0:
version "0.5.1"
resolved "https://psono.jfrog.io/psono/api/npm/npm/chalk/-/chalk-0.5.1.tgz#663b3a648b68b55d04690d49167aa837858f2174"
......@@ -563,6 +555,14 @@ chalk@^1.0.0, chalk@^1.1.1:
strip-ansi "^3.0.0"
supports-color "^2.0.0"
chalk@^2.3.0:
version "2.4.1"
resolved "https://psono.jfrog.io/psono/api/npm/npm/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
dependencies:
ansi-styles "^3.2.1"
escape-string-regexp "^1.0.5"
supports-color "^5.3.0"
chokidar@^1.4.1:
version "1.7.0"
resolved "https://psono.jfrog.io/psono/api/npm/npm/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468"
......@@ -3999,13 +3999,6 @@ rimraf@2, rimraf@^2.6.0, rimraf@^2.6.1:
dependencies:
glob "^7.0.5"
run-sequence@^1.2.2:
version "1.2.2"
resolved "https://psono.jfrog.io/psono/api/npm/npm/run-sequence/-/run-sequence-1.2.2.tgz#5095a0bebe98733b0140bd08dd80ec030ddacdeb"
dependencies:
chalk "*"
gulp-util "*"
safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
version "5.1.2"
resolved "https://psono.jfrog.io/psono/api/npm/npm/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment