diff --git a/build-tasks/compile-js.js b/build-tasks/compile-js.js deleted file mode 100644 index 8c9b455..0000000 --- a/build-tasks/compile-js.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; - -const gulp = require('gulp'); -const path = require('path'); -const browserify = require('browserify'); -const source = require('vinyl-source-stream'); -const buffer = require('vinyl-buffer'); -const uglifyJs = require('gulp-uglify'); -const sourcemaps = require('gulp-sourcemaps'); -const concat = require('gulp-concat'); -const rename = require('gulp-rename'); -const merge = require('merge-stream'); - -module.exports = () => { - const debug = browserify(path.join('src', 'js', 'main.js'), { - debug: true - }) - .bundle() - .pipe(source('main.js')) - .pipe(buffer()) - .pipe(sourcemaps.init({ loadMaps: true })) - .pipe(sourcemaps.write()) - .pipe(gulp.dest(path.join('dist', 'js'))); - - const production = browserify(path.join('src', 'js', 'main.js'), { - debug: false - }) - .bundle() - .pipe(source('pw-image-editor.js')) - .pipe(buffer()) - .pipe(gulp.dest(path.join('dist', 'js'))); - - const min = browserify(path.join('src', 'js', 'main.js'), { - debug: false - }) - .bundle() - .pipe(source('main.min.js')) - .pipe(buffer()) - .pipe(uglifyJs()) - .pipe(gulp.dest(path.join('dist', 'js'))); - - return merge(debug, production, min); -}; diff --git a/build-tasks/watcher.js b/build-tasks/watcher.js deleted file mode 100644 index b83b5ea..0000000 --- a/build-tasks/watcher.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -const gulp = require('gulp'); -const path = require('path'); -const watch = require('gulp-watch'); - -module.exports = () => { - const less = watch(path.join('src', 'less', '**', '*.less'), () => { - gulp.start('compile-less'); - }); - - const js = watch(path.join('src', 'js', '**', '*.js'), () => { - gulp.start('compile-js'); - }); -/* - const vendorJs = watch(path.join('src', 'vendor', '**', '*.js'), () => { - gulp.start('compile-vendor-js'); - }); - - const handlebars = watch(path.join('src', 'js', 'handlebars', '**', '*.hbs'), () => { - gulp.start('compile-handlebars'); - }); -*/ -}; diff --git a/examples/basic/index.html b/examples/basic/index.html index 60fe315..2b7291a 100644 --- a/examples/basic/index.html +++ b/examples/basic/index.html @@ -39,7 +39,7 @@ - + diff --git a/examples/photo-wallpaper/index.html b/examples/photo-wallpaper/index.html index bc1fa20..9539d62 100644 --- a/examples/photo-wallpaper/index.html +++ b/examples/photo-wallpaper/index.html @@ -7,7 +7,7 @@ - +