+13
.prettierignore
+13
.prettierignore
···
···
1
+
flake.lock
2
+
3
+
# for now, we don't want these formatted, but let's consider it in the future?
4
+
*.json
5
+
*.md
6
+
*.yml
7
+
*.yaml
8
+
*.jsonc
9
+
*.json
10
+
11
+
# causes Go template plugin errors: https://github.com/NiklasPor/prettier-plugin-go-template/issues/120
12
+
appview/pages/templates/layouts/repobase.html
13
+
appview/pages/templates/repo/tags.html
+12
.prettierrc.json
+12
.prettierrc.json
-16
.zed/settings.json
-16
.zed/settings.json
···
1
-
// Folder-specific settings
2
-
//
3
-
// For a full list of overridable settings, and general information on folder-specific settings,
4
-
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
5
-
{
6
-
"languages": {
7
-
"HTML": {
8
-
"prettier": {
9
-
"format_on_save": false,
10
-
"allowed": true,
11
-
"parser": "go-template",
12
-
"plugins": ["prettier-plugin-go-template"]
13
-
}
14
-
}
15
-
}
16
-
}
···
+6
flake.nix
+6
flake.nix
···
106
pkgsCross-gnu64-pkgsStatic-knot = crossPackages.knot;
107
pkgsCross-gnu64-pkgsStatic-knot-unwrapped = crossPackages.knot-unwrapped;
108
pkgsCross-gnu64-pkgsStatic-spindle = crossPackages.spindle;
109
});
110
defaultPackage = forAllSystems (system: self.packages.${system}.appview);
111
formatter = forAllSystems (system: nixpkgsFor.${system}.alejandra);
···
129
pkgs.redis
130
pkgs.coreutils # for those of us who are on systems that use busybox (alpine)
131
packages'.lexgen
132
];
133
shellHook = ''
134
mkdir -p appview/pages/static
···
106
pkgsCross-gnu64-pkgsStatic-knot = crossPackages.knot;
107
pkgsCross-gnu64-pkgsStatic-knot-unwrapped = crossPackages.knot-unwrapped;
108
pkgsCross-gnu64-pkgsStatic-spindle = crossPackages.spindle;
109
+
110
+
prettier-wrapper = pkgs.runCommandLocal "prettier-wrapper" {nativeBuildInputs = [pkgs.makeWrapper];} ''
111
+
mkdir -p "$out/bin"
112
+
makeWrapper ${pkgs.prettier}/bin/prettier "$out/bin/prettier" --add-flags "--plugin=${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js"
113
+
'';
114
});
115
defaultPackage = forAllSystems (system: self.packages.${system}.appview);
116
formatter = forAllSystems (system: nixpkgsFor.${system}.alejandra);
···
134
pkgs.redis
135
pkgs.coreutils # for those of us who are on systems that use busybox (alpine)
136
packages'.lexgen
137
+
packages'.prettier-wrapper
138
];
139
shellHook = ''
140
mkdir -p appview/pages/static