From d33199c574979bcb2c72e1c431a5443c88687de8 Mon Sep 17 00:00:00 2001 From: FaaizMemonPurdue Date: Mon, 15 Jul 2024 14:42:41 -0400 Subject: [PATCH 1/2] minimal (NON-ZERO) pain solution --- package.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7ece7f2..da2a8fe 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,19 @@ "build-css": "npx tailwindcss -o public/stylesheets/styles.css --watch --minify" }, "dependencies": { - "fsevents": "^2.3.3", "live-server": "^1.2.0" }, "devDependencies": { "tailwindcss": "^3.4.4" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + }, + "overrides": { + "fsevents": { + "os": [ + "darwin" + ] + } } } From 11f477f6b1c76b5e3986759f388075e30fba687e Mon Sep 17 00:00:00 2001 From: FaaizMemonPurdue Date: Mon, 15 Jul 2024 16:57:39 -0400 Subject: [PATCH 2/2] readme, overrides inconsistent --- README.md | 9 +++++++++ package.json | 9 +-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 30a6e8d..bcc3e0c 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,15 @@ Please make sure to update tests as appropriate. 4. To import dependencies, **run**: ```go mod tidy```. 5. To run tests, **run**: ```go test ./...```. +### CSS (Tailwind) contributing + +1. Run `npm install` +2. After modifying tailwind files (e.g. tailwind.config.js), run `npm run build-css` + +If the Mac-only dependency of tailwind (fsevents) silently fails (unlikely), you will get an error +like `fsevents.watch is not a function` + +Then run `npm install fsevents --no-save` and proceed based on NPM's error output. ## Dependencies * Development environments optimized for **GoLand** diff --git a/package.json b/package.json index da2a8fe..0bf5fb7 100644 --- a/package.json +++ b/package.json @@ -9,13 +9,6 @@ "tailwindcss": "^3.4.4" }, "optionalDependencies": { - "fsevents": "^2.3.2" - }, - "overrides": { - "fsevents": { - "os": [ - "darwin" - ] - } + "fsevents": "^2.3.3" } }