Add justfile
This commit is contained in:
		
							parent
							
								
									ccc3b51c83
								
							
						
					
					
						commit
						64df711a5e
					
				
					 1 changed files with 19 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								justfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								justfile
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| # vim: set ft=make :
 | ||||
| root := `pwd` | ||||
| 
 | ||||
| # Build static website
 | ||||
| build: | ||||
|     tup build | ||||
| 
 | ||||
| # Generate dependency graph as PNG file
 | ||||
| graph: | ||||
|     tup graph . | dot -Tpng > graph.png | ||||
| 
 | ||||
| # Deploy up-to-date website to webserver
 | ||||
| deploy: build | ||||
|     rsync --checksum --copy-links -ave 'ssh -p 4242' \
 | ||||
|         --exclude-from=rsync_excludes.txt \
 | ||||
|         build/* fab@ffreling.com:public_html/ffreling.com/public/ | ||||
| 
 | ||||
| preview: build | ||||
|     python -m webbrowser -t "file://{{root}}/build/index.html" | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue