From f82c096aeb6970bed54eb6e5424ba303965ef252 Mon Sep 17 00:00:00 2001 From: Ben Woodward Date: Thu, 15 Jul 2021 14:44:00 -0700 Subject: [PATCH] Only run Prettier on ./src (#55) * Move base stylesheet input public * Only run prettier on ./src --- Dockerfile | 2 +- Makefile | 4 ++-- public/index.html | 1 + {src => public}/light.min.css | 0 src/index.js | 1 - 5 files changed, 4 insertions(+), 4 deletions(-) rename {src => public}/light.min.css (100%) diff --git a/Dockerfile b/Dockerfile index 7d640ca2..91bc3afc 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 28b85377..1a0dd78a 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 38f42363..30dd6a73 100644 --- a/public/index.html +++ b/public/index.html @@ -6,6 +6,7 @@ +