-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (34 loc) · 1.47 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
35
36
37
38
39
40
41
42
43
44
all: tww serve
serve:
${BROWSER} http://localhost:1313 >/dev/null 2>&1 &
hugo server -D -p 1313 --navigateToChanged
tw: themes/congo/node_modules # tailwind
./themes/congo/node_modules/tailwindcss/lib/cli.js -c ./themes/congo/tailwind.config.js -i ./themes/congo/assets/css/main.css -o ./assets/css/compiled/main.css --jit >/dev/null
tww: themes/congo/node_modules # tailwind watch
./themes/congo/node_modules/tailwindcss/lib/cli.js -c ./themes/congo/tailwind.config.js -i ./themes/congo/assets/css/main.css -o ./assets/css/compiled/main.css --jit --watch >/dev/null
themes/congo/node_modules:
git submodule init
git submodule update
npm install --prefix ./themes/congo
assets/css/compiled/main.css: themes/congo/node_modules
./themes/congo/node_modules/tailwindcss/lib/cli.js -c ./themes/congo/tailwind.config.js -i ./themes/congo/assets/css/main.css -o ./assets/css/compiled/main.css ---minify
build: assets/css/compiled/main.css
HUGO_ENV=production hugo --gc --minify -b ${URL}
buildDrafts: assets/css/compiled/main.css
HUGO_ENV=production hugo --gc --minify --buildDrafts -b ${DEPLOY_PRIME_URL}
_:
mkdir -p _
ln -s ../content/review _/review
ln -s ../content/guide _/guide
ln -s ../content/project _/project
ln -s ../content/essay _/essay
ln -s ../content/newsletter _/newsletter
ln -s ../layouts _/…layout
ln -s ../layouts/shortcodes/glossary _/glossary
descriptions:
short-descriptions .
titles:
short-titles .
clear-cache:
rm -r public
git restore public/_redirects