From 2c7a7c6e0affd4d2f4920d2411703fd11a174e54 Mon Sep 17 00:00:00 2001 From: flamewave000 <3588046+flamewave000@users.noreply.github.com> Date: Tue, 4 Jan 2022 15:34:48 -0500 Subject: [PATCH] logger: Fixed missing sounds folder Fixes #281 --- df-logger/CHANGELOG.md | 3 +++ df-logger/module.json | 4 ++-- gulpfile.js | 7 +++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/df-logger/CHANGELOG.md b/df-logger/CHANGELOG.md index e127bad..96b3d90 100644 --- a/df-logger/CHANGELOG.md +++ b/df-logger/CHANGELOG.md @@ -1,5 +1,8 @@ # DF User Logger +## Release 1.6.6 (2022-01-04) +- **FIX #281:** Sounds folder was missing for previous release. + ## Release 1.6.5 (2022-01-02) - **NEW #274:** Japanese Localization: Courtesy of [BrotherSharper](https://github.com/BrotherSharper). diff --git a/df-logger/module.json b/df-logger/module.json index 179fab6..fe6fb13 100644 --- a/df-logger/module.json +++ b/df-logger/module.json @@ -1,11 +1,11 @@ { "name": "df-logger", "title": "DF User Logger", - "version": "1.6.5", + "version": "1.6.6", "description": "Prints a simple message whenever a user logs-in/out of FoundryVTT", "author": "flamewave000#0001", "minimumCoreVersion": "0.8.8", - "compatibleCoreVersion": "0.8.9", + "compatibleCoreVersion": "9", "esmodules": "{{sources}}", "styles": "{{css}}", "languages": [ diff --git a/gulpfile.js b/gulpfile.js index e9154d6..8b22698 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -22,6 +22,7 @@ const SOURCE = 'src/'; const LIBS = 'libs/'; const LANG = 'lang/'; const PACKS = 'packs/'; +const SOUNDS = 'sounds/'; const TEMPLATES = 'templates/'; const CSS = 'css/'; const LICENSE = '../LICENSE'; @@ -158,6 +159,7 @@ function buildManifest(output = null) { exports.step_buildManifest = buildManifest(); function outputLanguages(output = null) { return desc('output Languages', () => gulp.src(LANG + GLOB).pipe(jsonminify()).pipe(gulp.dest((output || DIST) + LANG))); } +function outputSoundsDir(output = null) { return desc('output Sounds', () => gulp.src(SOUNDS + GLOB).pipe(gulp.dest((output || DIST) + SOUNDS))); } function outputTemplates(output = null) { return desc('output Templates', () => gulp.src(TEMPLATES + GLOB).pipe(replace(/\t/g, '')).pipe(replace(/\>\n\<')).pipe(gulp.dest((output || DIST) + TEMPLATES))); } function outputStylesCSS(output = null) { return desc('output Styles CSS', () => gulp.src(CSS + GLOB).pipe(sass({ outputStyle: process.argv.includes('--min') ? 'compressed' : undefined })).pipe(concat(PACKAGE.name + '.css')).pipe(gulp.dest((output || DIST) + CSS))); } function outputMetaFiles(output = null) { return desc('output Meta Files', () => gulp.src([LICENSE, 'README.md', 'CHANGELOG.md']).pipe(gulp.dest((output || DIST)))); } @@ -198,6 +200,7 @@ exports.default = gulp.series( , gulp.parallel( buildSource() , outputLanguages() + , outputSoundsDir() , outputTemplates() , outputStylesCSS() , outputMetaFiles() @@ -216,6 +219,7 @@ exports.dev = gulp.series( gulp.parallel( buildSource(DEV_DIST()) , outputLanguages(DEV_DIST()) + , outputSoundsDir(DEV_DIST()) , outputTemplates(DEV_DIST()) , outputStylesCSS(DEV_DIST()) , outputMetaFiles(DEV_DIST()) @@ -234,6 +238,7 @@ exports.zip = gulp.series( , gulp.parallel( buildSource() , outputLanguages() + , outputSoundsDir() , outputTemplates() , outputStylesCSS() , outputMetaFiles() @@ -255,6 +260,7 @@ exports.watch = function () { gulp.watch(SOURCE + GLOB, gulp.series(pdel(DIST + SOURCE), buildSource(), pnotify('Default distribution build completed.', 'Build Complete'))); gulp.watch([CSS + GLOB, 'module.json'], buildManifest()); gulp.watch(LANG + GLOB, gulp.series(pdel(DIST + LANG), outputLanguages())); + gulp.watch(SOUNDS + GLOB, gulp.series(pdel(DIST + SOUNDS), outputSoundsDir())); gulp.watch(TEMPLATES + GLOB, gulp.series(pdel(DIST + TEMPLATES), outputTemplates())); gulp.watch(CSS + GLOB, gulp.series(pdel(DIST + CSS), outputStylesCSS())); gulp.watch([LICENSE, 'README.md', 'CHANGELOG.md'], outputMetaFiles()); @@ -271,6 +277,7 @@ exports.devWatch = function () { gulp.watch(SOURCE + GLOB, gulp.series(pdel([devDist + SOURCE + GLOB, DIST + SOURCE + GLOB], { force: true }), buildSource(devDist), copyDevDistToLocalDist, pnotify('Development distribution build completed.', 'Dev Build Complete'))); gulp.watch([CSS + GLOB, 'module.json'], gulp.series(reloadPackage, buildManifest(devDist), plog('manifest done.'))); gulp.watch(LANG + GLOB, gulp.series(pdel(devDist + LANG + GLOB, { force: true }), outputLanguages(devDist), plog('langs done.'))); + gulp.watch(SOUNDS + GLOB, gulp.series(pdel(devDist + SOUNDS + GLOB, { force: true }), outputSoundsDir(devDist), plog('sounds done.'))); gulp.watch(TEMPLATES + GLOB, gulp.series(pdel(devDist + TEMPLATES + GLOB, { force: true }), outputTemplates(devDist), plog('templates done.'))); gulp.watch(CSS + GLOB, gulp.series(pdel(devDist + CSS + GLOB, { force: true }), outputStylesCSS(devDist), plog('css done.'))); gulp.watch([LICENSE, 'README.md', 'CHANGELOG.md'], gulp.series(outputMetaFiles(devDist), plog('metas done.')));