mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-24 02:13:43 +03:00
Add tests to gulpfile
This commit is contained in:
parent
c6223f6020
commit
da9e292cad
|
@ -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'));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user