Skip to content

Commit

Permalink
Tune gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Nov 15, 2022
1 parent 5ae1d23 commit 55a1758
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions gulpfile.ts
Expand Up @@ -8,7 +8,7 @@ const sourcemaps = require('gulp-sourcemaps');
const stylus = require('gulp-stylus');
import * as rimraf from 'rimraf';
import * as rename from 'gulp-rename';
import replace = require('gulp-replace');
const replace = require('gulp-replace');
const terser = require('gulp-terser');
const cleanCSS = require('gulp-clean-css');

Expand Down Expand Up @@ -59,6 +59,7 @@ gulp.task('cleanall', gulp.parallel('clean', cb =>
));

gulp.task('build:client:script', () => {
// eslint-disable-next-line node/no-unpublished-require
const client = require('./built/meta.json');
return gulp.src(['./src/client/app/boot.js', './src/client/app/safe.js'])
.pipe(replace('VERSION', JSON.stringify(client.version)))
Expand Down Expand Up @@ -108,4 +109,4 @@ gulp.task('build', gulp.parallel(
'doc'
));

gulp.task('default', gulp.task('build'));
gulp.task('default', gulp.task('build')!);
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -42,7 +42,7 @@
"@types/cheerio": "0.22.18",
"@types/double-ended-queue": "2.1.1",
"@types/fluent-ffmpeg": "2.1.20",
"@types/gulp": "4.0.9",
"@types/gulp": "4.0.10",
"@types/gulp-rename": "2.0.1",
"@types/js-yaml": "4.0.5",
"@types/jsdom": "20.0.1",
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Expand Up @@ -506,12 +506,12 @@
"@types/node" "*"
"@types/vinyl" "*"

"@types/gulp@4.0.9":
version "4.0.9"
resolved "https://registry.yarnpkg.com/@types/gulp/-/gulp-4.0.9.tgz#a2f9667bcc26bc72b4899dd16216d6584a12346c"
integrity sha512-zzT+wfQ8uwoXjDhRK9Zkmmk09/fbLLmN/yDHFizJiEKIve85qutOnXcP/TM2sKPBTU+Jc16vfPbOMkORMUBN7Q==
"@types/gulp@4.0.10":
version "4.0.10"
resolved "https://registry.yarnpkg.com/@types/gulp/-/gulp-4.0.10.tgz#d7e2096a9883720f167b84dee52d5219d7d639c5"
integrity sha512-spgZHJFqiEJGwqGlf7T/k4nkBpBcLgP7T0EfN6G2vvnhUfvd4uO1h8RwpXOE8x/54DVYUs1XCAtBHkX/R3axAQ==
dependencies:
"@types/undertaker" "*"
"@types/undertaker" ">=1.2.6"
"@types/vinyl-fs" "*"
chokidar "^3.3.1"

Expand Down Expand Up @@ -892,10 +892,10 @@
resolved "https://registry.yarnpkg.com/@types/undertaker-registry/-/undertaker-registry-1.0.1.tgz#4306d4a03d7acedb974b66530832b90729e1d1da"
integrity sha512-Z4TYuEKn9+RbNVk1Ll2SS4x1JeLHecolIbM/a8gveaHsW0Hr+RQMraZACwTO2VD7JvepgA6UO1A1VrbktQrIbQ==

"@types/undertaker@*":
version "1.2.7"
resolved "https://registry.yarnpkg.com/@types/undertaker/-/undertaker-1.2.7.tgz#89c37fd3be556141a4092b38f8bc503076803d21"
integrity sha512-xuY7nBwo1zSRoY2aitp/HArHfTulFAKql2Fr4b4mWbBBP+F50n7Jm6nwISTTMaDk2xvl92O10TTejVF0Q9mInw==
"@types/undertaker@>=1.2.6":
version "1.2.8"
resolved "https://registry.yarnpkg.com/@types/undertaker/-/undertaker-1.2.8.tgz#6124a5d78eb6fca84689185229654a6235c601d7"
integrity sha512-gW3PRqCHYpo45XFQHJBhch7L6hytPsIe0QeLujlnFsjHPnXLhJcPdN6a9368d7aIQgH2I/dUTPFBlGeSNA3qOg==
dependencies:
"@types/node" "*"
"@types/undertaker-registry" "*"
Expand Down

0 comments on commit 55a1758

Please sign in to comment.