Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Sep 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 1403674 commit 69e60e9
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tools/lib/watchCSS.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import chokidar from "chokidar";
import { watch } from "chokidar";
import { buildCSS } from "./buildFuncs.js";

const watchCSS = async (updateStart, updateEnd, updateError) => {
const watcher = chokidar.watch("public/css", {});
const watcher = watch("public/css", {});

const filenames = ["build/gen/light.css", "build/gen/dark.css"];

7 changes: 2 additions & 5 deletions tools/lib/watchFiles.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import chokidar from "chokidar";
import { watch } from "chokidar";
import { copyFiles, genRev, reset, setTimestamps } from "./buildFuncs.js";

// Would be better to only copy individual files on update, but this is fast enough

const watchFiles = (updateStart, updateEnd, updateError) => {
const watcher = chokidar.watch(
["public", "data", "node_modules/flag-icons"],
{},
);
const watcher = watch(["public", "data", "node_modules/flag-icons"], {});

const outFilename = "static files";

4 changes: 2 additions & 2 deletions tools/lib/watchJSONSchema.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import chokidar from "chokidar";
import { watch } from "chokidar";
import fs from "node:fs";
import { getSport } from "./buildFuncs.js";

@@ -13,7 +13,7 @@ const watchJSONSchema = async (updateStart, updateEnd, updateError) => {

const sport = getSport();

const watcher = chokidar.watch("tools/lib/generateJSONSchema.js", {});
const watcher = watch("tools/lib/generateJSONSchema.js", {});

const outFilename = "build/files/league-schema.json";

0 comments on commit 69e60e9

Please sign in to comment.