removed slug from build directory

This commit is contained in:
skeddles 2021-07-06 11:49:14 -04:00
parent 11c119b1d8
commit 9c9818e051

View File

@ -9,22 +9,22 @@ const rename = require('gulp-rename');
const hb_svg = require('handlebars-helper-svg'); const hb_svg = require('handlebars-helper-svg');
const BUILDDIR = process.argv[2] || './build/'; const BUILDDIR = process.argv[2] || './build/';
const SLUG = 'pixel-editor';
console.log('Building Pixel Editor'); console.log('Building Pixel Editor');
function copy_images(){ function copy_images(){
// Icons // Icons
gulp.src('./images/*.png').pipe(gulp.dest(path.join(BUILDDIR, SLUG))); gulp.src('./images/*.png').pipe(gulp.dest(BUILDDIR));
// Splash images // 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 // 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() { 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(){ function render_js(){
@ -35,14 +35,14 @@ function render_js(){
'!js/_*.js', '!js/_*.js',
]})) ]}))
.on('error', console.log) .on('error', console.log)
.pipe(gulp.dest(path.join(BUILDDIR, SLUG))); .pipe(gulp.dest(BUILDDIR));
} }
function render_css(){ function render_css(){
gulp.src('css/*.scss') gulp.src('css/*.scss')
.pipe(sass({includePaths: ['css', '_ext/sass', '_ext/modules/css']})) .pipe(sass({includePaths: ['css', '_ext/sass', '_ext/modules/css']}))
.pipe(gulp.dest(path.join(BUILDDIR, SLUG))); .pipe(gulp.dest(BUILDDIR));
} }
function compile_page(){ function compile_page(){