소스 검색

refactor gulp script

Konstantinos Kaloutas 2 년 전
부모
커밋
cd3180af72
1개의 변경된 파일12개의 추가작업 그리고 16개의 파일을 삭제
  1. 12 16
      gulpfile.js

+ 12 - 16
gulpfile.js

@@ -52,22 +52,18 @@ const common = {
       () => gulp.src([
         './node_modules/@excalidraw/excalidraw/dist/excalidraw-assets/**',
         '!**/*/i18n-*.js'
-      ])
-        .pipe(gulp.dest(path.join(outputPath, 'js', 'excalidraw-assets'))),
-      () => gulp.src('node_modules/katex/dist/katex.min.js')
-        .pipe(gulp.dest(path.join(outputPath, 'js'))),
-      () => gulp.src('node_modules/html2canvas/dist/html2canvas.min.js')
-        .pipe(gulp.dest(path.join(outputPath, 'js'))),
-      () => gulp.src('node_modules/swiped-events/dist/swiped-events.min.js')
-        .pipe(gulp.dest(path.join(outputPath, 'js'))),
-      () => gulp.src('node_modules/interactjs/dist/interact.min.js')
-        .pipe(gulp.dest(path.join(outputPath, 'js'))),
-      () => gulp.src('node_modules/photoswipe/dist/umd/*.js')
-        .pipe(gulp.dest(path.join(outputPath, 'js'))),
-      () => gulp.src('node_modules/@tabler/icons/iconfont/tabler-icons.min.css')
-        .pipe(gulp.dest(path.join(outputPath, 'css'))),
-      () => gulp.src('node_modules/inter-ui/inter.css')
-        .pipe(gulp.dest(path.join(outputPath, 'css'))),
+      ]).pipe(gulp.dest(path.join(outputPath, 'js', 'excalidraw-assets'))),
+      () => gulp.src([
+        'node_modules/katex/dist/katex.min.js',
+        'node_modules/html2canvas/dist/html2canvas.min.js',
+        'node_modules/swiped-events/dist/swiped-events.min.js',
+        'node_modules/interactjs/dist/interact.min.js',
+        'node_modules/photoswipe/dist/umd/*.js'
+      ]).pipe(gulp.dest(path.join(outputPath, 'js'))),
+      () => gulp.src([
+        'node_modules/@tabler/icons/iconfont/tabler-icons.min.css',
+        'node_modules/inter-ui/inter.css'
+      ]).pipe(gulp.dest(path.join(outputPath, 'css'))),
       () => gulp.src('node_modules/inter-ui/Inter (web)/*.*')
         .pipe(gulp.dest(path.join(outputPath, 'css', 'Inter (web)'))),
       () => gulp.src([