Skip to content

Commit

Permalink
Only run Prettier on ./src (#55)
Browse files Browse the repository at this point in the history
* Move base stylesheet input public

* Only run prettier on ./src
  • Loading branch information
bndw committed Jul 15, 2021
1 parent c6fb2f0 commit f82c096
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -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

###
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions public/index.html
Expand Up @@ -6,6 +6,7 @@
<meta name="theme-color" content="#000000" />
<meta name="description" content="Print a card for your WiFi login" />
<link rel="icon" href="./images/wifi.ico" />
<link rel="stylesheet" href="/light.min.css" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion src/index.js
@@ -1,6 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './light.min.css';
import App from './App';

ReactDOM.render(
Expand Down

0 comments on commit f82c096

Please sign in to comment.