-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
24 lines (19 loc) · 1.19 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
start:
hugo server & ./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/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(); })();"