Skip to content

Commit 4999d50

Browse files
committed
fix: frontend test
1 parent 1a5b026 commit 4999d50

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

.github/workflows/frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
node-version: ${{ matrix.node-version }}
1818
- run: python -m pip install -r tests/requirements/frontend.txt
1919
- run: npm install
20-
- run: npm install -g gulp@4.0.2
20+
- run: npm install -g gulp
2121
- run: gulp ci

filer/static/filer/css/maps/admin_filer.icons.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

gulpfile.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,22 @@ var PROJECT_PATTERNS = {
3636
// #############################################################################
3737
// sass
3838
gulp.task('sass', function () {
39-
return gulp.src(PROJECT_PATTERNS.sass)
40-
.pipe(sourcemaps.init())
39+
var isDebug = process.argv.includes('--debug');
40+
var stream = gulp.src(PROJECT_PATTERNS.sass);
41+
42+
if (isDebug) {
43+
stream = stream.pipe(sourcemaps.init());
44+
}
45+
46+
stream = stream
4147
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
42-
.pipe(autoprefixer())
43-
.pipe(sourcemaps.write('/maps'))
44-
.pipe(gulp.dest(PROJECT_PATH.css));
48+
.pipe(autoprefixer());
49+
50+
if (isDebug) {
51+
stream = stream.pipe(sourcemaps.write('/maps'));
52+
}
53+
54+
return stream.pipe(gulp.dest(PROJECT_PATH.css));
4555
});
4656

4757
gulp.task('sass:watch', function () {

0 commit comments

Comments
 (0)