From 9c9818e0516169b77aac07941310dc0fe89f7ffd Mon Sep 17 00:00:00 2001 From: skeddles Date: Tue, 6 Jul 2021 11:49:14 -0400 Subject: [PATCH] removed slug from build directory --- build.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/build.js b/build.js index 47444a8..0094135 100644 --- a/build.js +++ b/build.js @@ -9,22 +9,22 @@ const rename = require('gulp-rename'); const hb_svg = require('handlebars-helper-svg'); const BUILDDIR = process.argv[2] || './build/'; -const SLUG = 'pixel-editor'; + console.log('Building Pixel Editor'); function copy_images(){ // Icons - gulp.src('./images/*.png').pipe(gulp.dest(path.join(BUILDDIR, SLUG))); + gulp.src('./images/*.png').pipe(gulp.dest(BUILDDIR)); // Splash images - gulp.src('./images/Splash images/*.png').pipe(gulp.dest(path.join(BUILDDIR, SLUG))); + gulp.src('./images/Splash images/*.png').pipe(gulp.dest(BUILDDIR)); // Logs images - gulp.src('./images/Logs/*.gif').pipe(gulp.dest(path.join(BUILDDIR, SLUG))); + gulp.src('./images/Logs/*.gif').pipe(gulp.dest(BUILDDIR)); } function copy_logs() { - gulp.src('logs/*.html').pipe(gulp.dest(path.join(BUILDDIR, SLUG))); + gulp.src('logs/*.html').pipe(gulp.dest(BUILDDIR)); } function render_js(){ @@ -35,14 +35,14 @@ function render_js(){ '!js/_*.js', ]})) .on('error', console.log) - .pipe(gulp.dest(path.join(BUILDDIR, SLUG))); + .pipe(gulp.dest(BUILDDIR)); } function render_css(){ gulp.src('css/*.scss') .pipe(sass({includePaths: ['css', '_ext/sass', '_ext/modules/css']})) - .pipe(gulp.dest(path.join(BUILDDIR, SLUG))); + .pipe(gulp.dest(BUILDDIR)); } function compile_page(){