diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-09-18 11:15:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-18 11:15:25 +0200 |
commit | d4101a48b3eee8b1fb177831aa02a4b4fbec2588 (patch) | |
tree | c92f2fbe91197fde8589207463d0d6526b4ff76b /gulpfile.babel.js | |
parent | 5.6.3-nightly.6 [skip ci] (diff) | |
download | ferdium-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.js | 4 |
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'; | |||
33 | const tsProject = ts.createProject('tsconfig.json'); | 33 | const tsProject = ts.createProject('tsconfig.json'); |
34 | 34 | ||
35 | const styleConfig = Object.keys(rawStyleConfig).map(key => { | 35 | const 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 | ||
152 | export function mvPostinstallScript() { | 152 | export 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 | ||