Skip to content

Commit 6156cce

Browse files
committed
fix(prettier-markdown): use nix to install prettier
1 parent ed90152 commit 6156cce

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

prettier-markdown/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM nixos/nix:2.32.1
2+
LABEL maintainer="Pat Brisbin <[email protected]>"
3+
RUN echo "experimental-features = nix-command flakes" > /etc/nix/nix.conf
4+
RUN nix profile install --impure 'github:NixOS/nixpkgs?rev=c8aa8cc00a5cb57fada0851a038d35c08a36a2bb#nodePackages.prettier'
5+
RUN nix profile install --impure 'nixpkgs#gnused'
6+
RUN mkdir -p /code
7+
WORKDIR /code
8+
CMD ["prettier", "--help"]

prettier-markdown/info.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
2-
overrides: prettier
2+
enabled: true
33
name: prettier-markdown
4+
version_cmd: |
5+
prettier --version | sed 's/^/v/; s/$/-3/'
46
command:
5-
- /app/node_modules/.bin/prettier
7+
- prettier
68
- "--write"
79
include:
810
- "**/*.md"

0 commit comments

Comments
 (0)