diff options
| author | Ben Woodward <ben@bdw.to> | 2021-07-15 14:44:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-15 14:44:00 -0700 |
| commit | f82c096aeb6970bed54eb6e5424ba303965ef252 (patch) | |
| tree | 85f257e64c90e00754d3f476e8e6d61bd01625d6 | |
| parent | c6fb2f011505a3e1892e1fb24f4df850c55bb57d (diff) | |
Only run Prettier on ./src (#55)
* Move base stylesheet input public
* Only run prettier on ./src
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | public/index.html | 1 | ||||
| -rw-r--r-- | public/light.min.css (renamed from src/light.min.css) | 0 | ||||
| -rw-r--r-- | src/index.js | 1 |
5 files changed, 4 insertions, 4 deletions
| @@ -3,7 +3,7 @@ FROM mhart/alpine-node:14 as builder | |||
| 3 | WORKDIR /tmp | 3 | WORKDIR /tmp |
| 4 | COPY . . | 4 | COPY . . |
| 5 | 5 | ||
| 6 | RUN npx prettier --check . '!**/*.min.{css,js}' | 6 | RUN npx prettier --check ./src |
| 7 | RUN yarn && yarn build | 7 | RUN yarn && yarn build |
| 8 | 8 | ||
| 9 | ### | 9 | ### |
| @@ -16,11 +16,11 @@ dev: | |||
| 16 | 16 | ||
| 17 | .PHONY: fmt | 17 | .PHONY: fmt |
| 18 | fmt: | 18 | fmt: |
| 19 | npx prettier --check . '!**/*.min.{css,js}' | 19 | npx prettier --check ./src |
| 20 | 20 | ||
| 21 | .PHONY: fmt.write | 21 | .PHONY: fmt.write |
| 22 | fmt.write: | 22 | fmt.write: |
| 23 | npx prettier --write . '!**/*.min.{css,js}' | 23 | npx prettier --write ./src |
| 24 | 24 | ||
| 25 | .PHONY: run | 25 | .PHONY: run |
| 26 | run: | 26 | 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 @@ | |||
| 6 | <meta name="theme-color" content="#000000" /> | 6 | <meta name="theme-color" content="#000000" /> |
| 7 | <meta name="description" content="Print a card for your WiFi login" /> | 7 | <meta name="description" content="Print a card for your WiFi login" /> |
| 8 | <link rel="icon" href="./images/wifi.ico" /> | 8 | <link rel="icon" href="./images/wifi.ico" /> |
| 9 | <link rel="stylesheet" href="/light.min.css" /> | ||
| 9 | <!-- | 10 | <!-- |
| 10 | manifest.json provides metadata used when your web app is installed on a | 11 | manifest.json provides metadata used when your web app is installed on a |
| 11 | user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | 12 | user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ |
diff --git a/src/light.min.css b/public/light.min.css index 8ce73eb..8ce73eb 100644 --- a/src/light.min.css +++ b/public/light.min.css | |||
diff --git a/src/index.js b/src/index.js index baca53a..c1f31c5 100644 --- a/src/index.js +++ b/src/index.js | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import ReactDOM from 'react-dom'; | 2 | import ReactDOM from 'react-dom'; |
| 3 | import './light.min.css'; | ||
| 4 | import App from './App'; | 3 | import App from './App'; |
| 5 | 4 | ||
| 6 | ReactDOM.render( | 5 | ReactDOM.render( |
