Skip to content

Commit

Permalink
Fixing all issues that came out of deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
TowhidKashem committed Jul 12, 2020
1 parent 0f885ab commit 9df868c
Show file tree
Hide file tree
Showing 16 changed files with 1,838 additions and 4,492 deletions.
29 changes: 16 additions & 13 deletions public/filters/gulpfile.js → gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ const babel = require('gulp-babel');
const concat = require('gulp-concat');
const terser = require('gulp-terser');

const dependencies = 'public/filters/jeelizFaceFilter';
const src = 'public/filters/src';

exports.watchJS = () => {
gulp.watch('src/*.js', { ignoreInitial: false }, (cb) => {
gulp.watch(src + '/*.js', { ignoreInitial: false }, (cb) => {
defaultTask();
cb();
});
Expand All @@ -32,20 +35,20 @@ const defaultTask = () =>
gulp
.src([
// Main dependencies
'jeelizFaceFilter/dist/jeelizFaceFilter.js',
'jeelizFaceFilter/helpers/JeelizResizer.js',
'jeelizFaceFilter/helpers/JeelizThreejsHelper.js',
dependencies + '/dist/jeelizFaceFilter.js',
dependencies + '/helpers/JeelizResizer.js',
dependencies + '/helpers/JeelizThreejsHelper.js',
// Dog dependencies
'jeelizFaceFilter/libs/threejs/customMaterials/FlexMaterial/ThreeFlexMaterial.js',
'jeelizFaceFilter/demos/threejs/dog_face/libs/glfx.js',
dependencies + '/libs/threejs/customMaterials/FlexMaterial/ThreeFlexMaterial.js',
dependencies + '/demos/threejs/dog_face/libs/glfx.js',
// Dog and bees dependency
'jeelizFaceFilter/helpers/addDragEventListener.js',
dependencies + '/helpers/addDragEventListener.js',
// Filters
'src/dog.js',
'src/bees.js',
'src/halloween.js',
'src/deform.js',
'src/liberty.js'
src + '/dog.js',
src + '/bees.js',
src + '/halloween.js',
src + '/deform.js',
src + '/liberty.js'
])
.pipe(concat('filters.min.js'))
.pipe(
Expand All @@ -54,6 +57,6 @@ const defaultTask = () =>
})
)
.pipe(terser())
.pipe(gulp.dest('build'));
.pipe(gulp.dest('public/filters/build'));

exports.default = defaultTask;
Loading

0 comments on commit 9df868c

Please sign in to comment.