Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

nix: add prettier to treefmt for ./web

Signed-off-by: dawn <dawn@tangled.org>

dawn (Jul 13, 2026, 5:03 PM +0300) 97165ae5 393ab0e5

+21 -11
+21 -11
flake.nix
··· 263 263 excludes = ["**/src/_lex/**"]; 264 264 }; 265 265 266 - # prettier = let 267 - # wrapper = pkgs.runCommandLocal "prettier-wrapper" {nativeBuildInputs = [pkgs.makeWrapper];} '' 268 - # makeWrapper ${pkgs.prettier}/bin/prettier "$out" --add-flags "--plugin=${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js" 269 - # ''; 270 - # in { 271 - # command = wrapper; 272 - # options = ["-w"]; 273 - # includes = ["*.html"]; 274 - # # causes Go template plugin errors: https://github.com/NiklasPor/prettier-plugin-go-template/issues/120 275 - # excludes = ["appview/pages/templates/layouts/repobase.html" "appview/pages/templates/repo/tags.html"]; 276 - # }; 266 + prettier = { 267 + command = pkgs.lib.getExe pkgs.prettier; 268 + options = ["-w"]; 269 + includes = [ 270 + "web/**/*.cjs" 271 + "web/**/*.css" 272 + "web/**/*.html" 273 + "web/**/*.js" 274 + "web/**/*.json" 275 + "web/**/*.json5" 276 + "web/**/*.jsx" 277 + "web/**/*.mdx" 278 + "web/**/*.mjs" 279 + "web/**/*.scss" 280 + "web/**/*.ts" 281 + "web/**/*.tsx" 282 + "web/**/*.vue" 283 + "web/**/*.yaml" 284 + "web/**/*.yml" 285 + ]; 286 + }; 277 287 }; 278 288 }; 279 289