diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-11-03 21:14:50 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-11-03 21:14:50 +0100 |
| commit | 8282239d1cf73ed8e992dc121f45df29fcb2c872 (patch) | |
| tree | e8345e8449c8a53942efd3eaff3300fe597aa5c2 /Makefile | |
| parent | bdc60d7d56b5384f13feaaccef28e63d77f15933 (diff) | |
| download | mitjafelicijan.com-8282239d1cf73ed8e992dc121f45df29fcb2c872.tar.gz | |
Move to Tailwind 3
Diffstat (limited to 'Makefile')
| -rwxr-xr-x | Makefile | 21 |
1 files changed, 19 insertions, 2 deletions
| @@ -1,7 +1,23 @@ | |||
| 1 | dev: openring | 1 | MAKEFLAGS=-j4 |
| 2 | |||
| 3 | dev: tailwind-watch dev-server | ||
| 4 | |||
| 5 | dev-server: openring | ||
| 2 | hugo server --bind=0.0.0.0 --buildDrafts | 6 | hugo server --bind=0.0.0.0 --buildDrafts |
| 3 | 7 | ||
| 4 | deploy: openring | 8 | tailwind-watch: |
| 9 | npx tailwindcss \ | ||
| 10 | -i ./themes/simple/static/css/tailwind.css \ | ||
| 11 | -o ./static/general/index.css \ | ||
| 12 | --jit --minify --watch | ||
| 13 | |||
| 14 | tailwind-build: | ||
| 15 | npx tailwindcss \ | ||
| 16 | -i ./themes/simple/static/css/tailwind.css \ | ||
| 17 | -o ./static/general/index.css \ | ||
| 18 | --jit --minify | ||
| 19 | |||
| 20 | deploy: openring tailwind-build | ||
| 5 | hugo --gc --minify | 21 | hugo --gc --minify |
| 6 | rsync -az --delete public/ root@165.22.87.180:/var/www/html/mitjafelicijan.com/ | 22 | rsync -az --delete public/ root@165.22.87.180:/var/www/html/mitjafelicijan.com/ |
| 7 | ssh root@165.22.87.180 chown www-data:www-data /var/www/html/mitjafelicijan.com/ -Rf | 23 | ssh root@165.22.87.180 chown www-data:www-data /var/www/html/mitjafelicijan.com/ -Rf |
| @@ -18,6 +34,7 @@ openring: | |||
| 18 | > themes/simple/layouts/partials/openring.html | 34 | > themes/simple/layouts/partials/openring.html |
| 19 | 35 | ||
| 20 | provision: | 36 | provision: |
| 37 | npm install | ||
| 21 | cd ~/Junk \ | 38 | cd ~/Junk \ |
| 22 | git clone https://git.sr.ht/~sircmpwn/openring \ | 39 | git clone https://git.sr.ht/~sircmpwn/openring \ |
| 23 | cd openring \ | 40 | cd openring \ |
