aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.babel.js
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-09-18 11:15:25 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-18 11:15:25 +0200
commitd4101a48b3eee8b1fb177831aa02a4b4fbec2588 (patch)
treec92f2fbe91197fde8589207463d0d6526b4ff76b /gulpfile.babel.js
parent5.6.3-nightly.6 [skip ci] (diff)
downloadferdium-app-d4101a48b3eee8b1fb177831aa02a4b4fbec2588.tar.gz
ferdium-app-d4101a48b3eee8b1fb177831aa02a4b4fbec2588.tar.zst
ferdium-app-d4101a48b3eee8b1fb177831aa02a4b4fbec2588.zip
chore: convert various files from JS to TS (#1959)
Diffstat (limited to 'gulpfile.babel.js')
-rw-r--r--gulpfile.babel.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index 21b2e3d3b..8f24775be 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -33,7 +33,7 @@ const getTargetEnv = isDevBuild ? 'development' : 'production';
33const tsProject = ts.createProject('tsconfig.json'); 33const tsProject = ts.createProject('tsconfig.json');
34 34
35const styleConfig = Object.keys(rawStyleConfig).map(key => { 35const styleConfig = Object.keys(rawStyleConfig).map(key => {
36 const isHex = /^#[0-9A-F]{6}$/i.test(rawStyleConfig[key]); 36 const isHex = /^#[\da-f]{6}$/i.test(rawStyleConfig[key]);
37 return { 37 return {
38 [`$raw_${kebabCase(key)}`]: isHex 38 [`$raw_${kebabCase(key)}`]: isHex
39 ? hexRgb(rawStyleConfig[key], { format: 'array' }).splice(0, 3).join(',') 39 ? hexRgb(rawStyleConfig[key], { format: 'array' }).splice(0, 3).join(',')
@@ -151,7 +151,7 @@ export function mvLernaPackages() {
151 151
152export function mvPostinstallScript() { 152export function mvPostinstallScript() {
153 return gulp 153 return gulp
154 .src(['./scripts/postinstall.js']) 154 .src(['./scripts/postinstall.ts'])
155 .pipe(gulp.dest(`${paths.dest}/scripts`)); 155 .pipe(gulp.dest(`${paths.dest}/scripts`));
156} 156}
157 157