File tree Expand file tree Collapse file tree 5 files changed +34
-3
lines changed Expand file tree Collapse file tree 5 files changed +34
-3
lines changed Original file line number Diff line number Diff line change 30
30
uses : actions/checkout@v4
31
31
- name : Setup Pages
32
32
uses : actions/configure-pages@v5
33
+ - name : Install wget
34
+ run : sudo apt-get update && sudo apt-get install -y wget
35
+ - name : Install Tailwind CLI
36
+ run : |
37
+ wget https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.14/tailwindcss-linux-x64 &&
38
+ chmod +x tailwindcss-linux-x64 &&
39
+ sudo mv tailwindcss-linux-x64 /usr/bin/tailwindcss
33
40
- name : Setup Go environment
34
41
uses : actions/setup-go@v5.0.2
35
42
with :
@@ -40,10 +47,12 @@ jobs:
40
47
run : |
41
48
cd pwa &&
42
49
mkdir -p ./app/web &&
50
+ mv ./web/* ./app/web/ &&
43
51
echo -n ${{ vars.FLUSH_API_URL }} > ./app/web/apiurl &&
44
52
GOARCH=wasm GOOS=js go build -o ./app/web/app.wasm ./main/main.go &&
45
53
BUILD_STATIC=true go build -o ./flush-log ./main/main.go &&
46
54
./flush-log &&
55
+ tailwindcss -i ./app/web/tailwind-input.css -o ./app/web/style.css --minify
47
56
ls -ltrRa &&
48
57
mv ./*.html ./*.webmanifest ./*.js ./*.css ./app &&
49
58
mv app ..
Original file line number Diff line number Diff line change 5
5
6
6
# go
7
7
tmp /
8
- web /
9
8
flush-log
10
9
flush-log.exe
10
+ * .exe
11
+ apiurl
11
12
12
13
# drawio
13
14
.$ *
15
+
16
+ # web static artifacts
17
+ wasm_exec.js
18
+ app-worker.js
19
+ app.js
20
+ app.css
21
+ * .html
22
+ * .webmanifest
23
+ app.wasm
24
+ style.css
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ func Run() {
21
21
Name : "Flush-Log" ,
22
22
Description : "bowel tracking app" ,
23
23
Resources : app .GitHubPages ("flush-log" ),
24
- Scripts : []string {
25
- "https://cdn.tailwindcss.com " ,
24
+ Styles : []string {
25
+ "/web/style.css " ,
26
26
},
27
27
})
28
28
if err != nil {
Original file line number Diff line number Diff line change
1
+ /** @type {import('tailwindcss').Config } */
2
+ module . exports = {
3
+ content : [ "./*.{html,js}" ] ,
4
+ theme : {
5
+ extend : { } ,
6
+ } ,
7
+ plugins : [ ] ,
8
+ }
Original file line number Diff line number Diff line change
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
You can’t perform that action at this time.
0 commit comments