From e7a128708a4b9a88303cd25fc160f1f1b54739c5 Mon Sep 17 00:00:00 2001 From: John Dillick Date: Thu, 27 Apr 2023 17:27:49 -1000 Subject: [PATCH] Give modification guidance to colors partial. --- .core/gulp.tasks.js | 4 +++- .../style/_scss/_reactium-style-variables-colors-default.scss | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.core/gulp.tasks.js b/.core/gulp.tasks.js index db76756..239ed1b 100644 --- a/.core/gulp.tasks.js +++ b/.core/gulp.tasks.js @@ -759,11 +759,12 @@ $assets: map.set($assets, "{{key}}", "{{{dataURL}}}"); done(); }; - const colorTemplate = data => { + const colorTemplate = (data, src) => { const template = handlebars.compile(` // // DO NOT EDIT! // This file is generated by gulp styles:colors task. +// Modify ${src} in this directory to effect this file. // @use "sass:map"; @@ -817,6 +818,7 @@ $color: map.set($color, "{{key}}", \${{{ key }}}); key, value, })), + path.basename(filePath), ); fs.writeFileSync(outputPath, colorFileContents, 'utf8'); diff --git a/src/assets/style/_scss/_reactium-style-variables-colors-default.scss b/src/assets/style/_scss/_reactium-style-variables-colors-default.scss index 9a23488..ff2923d 100644 --- a/src/assets/style/_scss/_reactium-style-variables-colors-default.scss +++ b/src/assets/style/_scss/_reactium-style-variables-colors-default.scss @@ -2,6 +2,7 @@ // // DO NOT EDIT! // This file is generated by gulp styles:colors task. +// Modify colors-default.json in this directory to effect this file. // @use "sass:map";