PluginProbe ʕ •ᴥ•ʔ
Complianz – GDPR/CCPA Cookie Consent / beta
Complianz – GDPR/CCPA Cookie Consent vbeta
7.4.6 trunk 6.5.6 7.0.4 7.0.5 7.1.0 7.1.4 7.1.5 7.2.0 7.3.0 7.3.1 7.4.0 7.4.0.1 7.4.1 7.4.2 7.4.3 7.4.4 7.4.4.1 7.4.4.2 7.4.5 beta
complianz-gdpr / gulpfile.js
complianz-gdpr Last commit date
DNSMPD 1 year ago assets 1 year ago config 1 year ago cookie 1 year ago cookiebanner 1 year ago cron 1 year ago documents 1 year ago gutenberg 1 year ago integrations 1 year ago languages 1 year ago mailer 1 year ago onboarding 1 year ago placeholders 1 year ago progress 1 year ago proof-of-consent 1 year ago rest-api 1 year ago settings 1 year ago templates 1 year ago upgrade 1 year ago LICENSE.txt 1 year ago README.md 1 year ago class-admin.php 1 year ago class-company.php 1 year ago class-cookie-blocker.php 1 year ago class-document.php 1 year ago class-export.php 1 year ago class-field.php 1 year ago class-installer.php 1 year ago class-review.php 1 year ago class-wizard.php 1 year ago complianz-gpdr.php 1 year ago composer.json 1 year ago functions-legacy.php 1 year ago functions.php 1 year ago gulpfile.js 1 year ago index.php 1 year ago loco.xml 1 year ago readme.txt 1 year ago security.md 1 year ago system-status.php 1 year ago uninstall.php 1 year ago upgrade.php 1 year ago
gulpfile.js
57 lines
1 const gulp = require('gulp');
2 const rtlcss = require('gulp-rtlcss');
3 const concat = require('gulp-concat');
4 const cssbeautify = require('gulp-cssbeautify');
5 const cssuglify = require('gulp-uglifycss');
6 const jsuglify = require('gulp-uglify');
7 const sass = require('gulp-sass')(require('sass'));
8 const spawn = require('child_process').spawn;
9
10 function scssTask(cb) {
11 // compile scss to css and minify
12 gulp.src('./assets/css/admin.scss')
13 .pipe(sass(({outputStyle: 'expanded'})).on('error', sass.logError))
14 .pipe(cssbeautify())
15 .pipe(gulp.dest('./assets/css'))
16 .pipe(cssuglify())
17 .pipe(concat('admin.min.css'))
18 .pipe(gulp.dest('./assets/css'))
19 .pipe(rtlcss())
20 .pipe(gulp.dest('./assets/css/rtl'));
21
22 cb();
23 }
24 exports.scss = scssTask
25
26 gulp.task('default', function () {
27 return
28 });
29 function jsTask(cb) {
30 cb();
31 gulp.src('cookiebanner/js/complianz.js')
32 .pipe(concat('complianz.js'))
33 .pipe(gulp.dest('./cookiebanner/js'))
34 .pipe(concat('complianz.min.js'))
35 .pipe(jsuglify())
36 .pipe(gulp.dest('./cookiebanner/js'));
37 cb();
38 }
39 exports.js = jsTask
40
41 function defaultTask(cb) {
42 gulp.watch('./assets/css/**/*.scss', { ignoreInitial: false }, scssTask);
43 gulp.watch('./assets/js/*.js', { ignoreInitial: false }, jsTask);
44 gulp.watch('./cookiebanner/js/*.js', { ignoreInitial: false }, jsTask);
45 spawn('npm', ['start'], { cwd: 'settings', stdio: 'inherit' })
46 cb();
47 }
48 exports.default = defaultTask
49
50 // function buildTask(cb) {
51 // gulp.task(scssTask);
52 // spawn('npm', ['build'], { cwd: 'settings', stdio: 'inherit' })
53 // run('npm run build').exec()
54 // cb();
55 // }
56 // exports.build = buildTask
57