chore: fix lint errors

This commit is contained in:
Clark Du 2020-08-17 19:45:32 +01:00
parent 1aa47b5edf
commit 052364c689
4 changed files with 10 additions and 10 deletions

View File

@ -52,7 +52,7 @@ function watch(builder: Builder) {
}) })
// appWatcher.debug() // appWatcher.debug()
appWatcher.watch(/(A|a)pp\.[a-z]{2,3}/, async () => { appWatcher.watch(/(A|a)pp\.[a-z]{2,3}/, async () => {
await new Promise((resolve) => setTimeout(resolve, 200)) await new Promise(resolve => setTimeout(resolve, 200))
await generate(builder) await generate(builder)
}) })
appWatcher.watch('pages/', async () => { appWatcher.watch('pages/', async () => {

View File

@ -1,5 +1,5 @@
import chokidar, { WatchOptions } from 'chokidar'
import { relative } from 'path' import { relative } from 'path'
import chokidar, { WatchOptions } from 'chokidar'
export function createWatcher (dir: string|string[], options?: WatchOptions) { export function createWatcher (dir: string|string[], options?: WatchOptions) {
const watcher = chokidar.watch(dir, { const watcher = chokidar.watch(dir, {