Skip to content

Commit

Permalink
Fix gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tyfkda committed Jun 13, 2024
1 parent dc5d53a commit 2be0177
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const jest = require('gulp-jest').default
import fs from 'fs'

const ROOT_DIR = `${__dirname}`
const RES_DIR = `${ROOT_DIR}/res`
const DEST_DIR = `${ROOT_DIR}/public`
const ASSETS_DIR = `${DEST_DIR}/assets`
const SRC_TS_DIR = `${ROOT_DIR}/src`
Expand Down Expand Up @@ -119,12 +118,6 @@ export function watchLint() {
return gulp.watch(LINT_GLOBS, lint)
}

export function copyRes() {
return gulp.src([`${RES_DIR}/**/*`],
{base: RES_DIR})
.pipe(gulp.dest(DEST_DIR))
}

export function server() {
browserSync.init({
server: {
Expand Down Expand Up @@ -171,11 +164,11 @@ export const watch = gulp.parallel(watchHtml, watchTs, watchSass,
watchLint, watchTest,
watchReload)

export const build = gulp.parallel(html, ts, sass, copyRes, lint)
export const build = gulp.parallel(html, ts, sass, lint)

exports.default = gulp.parallel(build, server, watch)

export const releaseBuild = gulp.series(gulp.parallel(sass, copyRes), () => {
export const releaseBuild = gulp.series(sass, () => {
// Copy resources.
return gulp.src([`${DEST_DIR}/**/*.*`,
`!${DEST_DIR}/index.html`,
Expand Down

0 comments on commit 2be0177

Please sign in to comment.