From f82c096aeb6970bed54eb6e5424ba303965ef252 Mon Sep 17 00:00:00 2001 From: Ben Woodward Date: Thu, 15 Jul 2021 14:44:00 -0700 Subject: Only run Prettier on ./src (#55) * Move base stylesheet input public * Only run prettier on ./src --- Dockerfile | 2 +- Makefile | 4 ++-- public/index.html | 1 + public/light.min.css | 2 ++ src/index.js | 1 - src/light.min.css | 2 -- 6 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 public/light.min.css delete mode 100644 src/light.min.css diff --git a/Dockerfile b/Dockerfile index 7d640ca..91bc3af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM mhart/alpine-node:14 as builder WORKDIR /tmp COPY . . -RUN npx prettier --check . '!**/*.min.{css,js}' +RUN npx prettier --check ./src RUN yarn && yarn build ### diff --git a/Makefile b/Makefile index 28b8537..1a0dd78 100644 --- a/Makefile +++ b/Makefile @@ -16,11 +16,11 @@ dev: .PHONY: fmt fmt: - npx prettier --check . '!**/*.min.{css,js}' + npx prettier --check ./src .PHONY: fmt.write fmt.write: - npx prettier --write . '!**/*.min.{css,js}' + npx prettier --write ./src .PHONY: run run: diff --git a/public/index.html b/public/index.html index 38f4236..30dd6a7 100644 --- a/public/index.html +++ b/public/index.html @@ -6,6 +6,7 @@ +