-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (27 loc) · 1.56 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
start:
hugo server --buildDrafts & ./tailwindcss -i ./assets/css/tailwind.css -o ./static/css/tailwind.css --watch
build:
HUGO_ENVIRONMENT=production hugo --minify
tailwind-download:
ifeq ($(shell uname -s), Darwin)
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.17/tailwindcss-macos-arm64
else ifeq ($(shell uname -s), Linux)
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.17/tailwindcss-linux-x64
endif
mv tailwindcss-* tailwindcss
chmod +x tailwindcss
# tailwind-download:
# ifeq ($(shell uname -s), Darwin)
# curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64
# else ifeq ($(shell uname -s), Linux)
# curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64
# endif
# mv tailwindcss-* tailwindcss
# chmod +x tailwindcss
watch:
./tailwindcss -i ./assets/css/tailwind.css -o ./static/css/tailwind.css --watch
tailwind-build:
./tailwindcss -i ./assets/css/tailwind.css -o ./static/css/tailwind.css --minify
cv:
npm i puppeteer
node -e "const puppeteer = require('puppeteer'); const path = require('path'); const os = require('os'); (async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://www.v01.io/pages/services/', { waitUntil: 'networkidle2' }); const filePath = path.join(os.homedir(), 'Downloads', 'cv.pdf'); await page.pdf({ path: filePath, format: 'A4', margin: { top: '1cm', bottom: '1cm', left: '1cm', right: '1cm' } }); await browser.close(); })();"