From da9e292cad2127cb94549b40dabad8ff0fc7685a Mon Sep 17 00:00:00 2001 From: "Ilya Ig. Petrov" Date: Tue, 2 May 2017 07:48:35 -0700 Subject: [PATCH] Add tests to gulpfile --- .../chromium/runet-censorship-bypass/gulpfile.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/extensions/chromium/runet-censorship-bypass/gulpfile.js b/extensions/chromium/runet-censorship-bypass/gulpfile.js index 41da081..6e2e890 100644 --- a/extensions/chromium/runet-censorship-bypass/gulpfile.js +++ b/extensions/chromium/runet-censorship-bypass/gulpfile.js @@ -52,13 +52,16 @@ gulp.task('clean', function() { const contexts = require('./src/templates-data').contexts; +const woTests = ['!./src/**/test', '!./src/**/test/**/*']; +const srcWoTests = ['./src/extension-common/**/*', ...woTests]; + gulp.task('_cp-common', ['clean'], function() { - gulp.src(['./src/extension-common/**/*']) + gulp.src(srcWoTests) .pipe(templatePlugin(contexts.mini)) .pipe(gulp.dest('./build/extension-mini')) - gulp.src(['./src/extension-common/**/*']) + gulp.src(srcWoTests) .pipe(templatePlugin(contexts.full)) .pipe(gulp.dest('./build/extension-full')); @@ -66,7 +69,7 @@ gulp.task('_cp-common', ['clean'], function() { gulp.task('_cp-mini', ['_cp-common'], function() { - gulp.src(['./src/extension-mini/**/*']) + gulp.src(['./src/extension-mini/**/*', ...woTests]) .pipe(templatePlugin(contexts.mini)) .pipe(gulp.dest('./build/extension-mini')); @@ -74,7 +77,7 @@ gulp.task('_cp-mini', ['_cp-common'], function() { gulp.task('_cp-full', ['_cp-common'], function() { - gulp.src(['./src/extension-full/**/*']) + gulp.src(['./src/extension-full/**/*', ...woTests]) .pipe(templatePlugin(contexts.full)) .pipe(gulp.dest('./build/extension-full'));