17 lines
		
	
	
	
		
			813 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			813 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
default:
 | 
						|
    just --list
 | 
						|
build:
 | 
						|
    rm -rf public && NODE_ENV=production ./themes/blowfish/node_modules/tailwindcss/lib/cli.js -c ./themes/blowfish/tailwind.config.js -i ./themes/blowfish/assets/css/main.css -o ./assets/css/compiled/main.css --jit && hugo --gc --minify
 | 
						|
serve:
 | 
						|
    zola serve 
 | 
						|
uglify:
 | 
						|
    uglifyjs ./src/js/main.js --compress --mangle -o ./static/js/main.js && uglifyjs ./src/js/page.js --compress --mangle -o ./static/js/page.js && uglifyjs ./src/js/search.js --compress --mangle -o ./static/js/search.js && uglifyjs ./src/js/lang.js --compress --mangle -o ./static/js/lang.js
 | 
						|
dev:
 | 
						|
    tailwindcss -i static/css/base.css -o static/css/main.css --watch
 | 
						|
api:
 | 
						|
    cargo build
 | 
						|
clean:
 | 
						|
    cargo clean
 | 
						|
    rm -rf bld/
 | 
						|
test:
 | 
						|
    RUST_LOG=debug cargo test --benches --tests --all-features -- --nocapture
 |