mirror of
				https://github.com/ItsDrike/itsdrike.com.git
				synced 2025-11-04 04:06:36 +00:00 
			
		
		
		
	Update build script
This commit is contained in:
		
							parent
							
								
									5b08a38d52
								
							
						
					
					
						commit
						f89455e6fd
					
				
					 1 changed files with 2 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
source ./scripts/common.sh
 | 
			
		||||
 | 
			
		||||
rm -rf "$STATIC_BUILD"
 | 
			
		||||
| 
						 | 
				
			
			@ -10,7 +10,7 @@ mkdir -p "$STATIC_BUILD/img"
 | 
			
		|||
cp -r "$STATIC_SRC/img"/* "$STATIC_BUILD/img"
 | 
			
		||||
 | 
			
		||||
mkdir -p "$STATIC_BUILD/js"
 | 
			
		||||
# cp -r "$STATIC_SRC/js"/* "$STATIC_BUILD/js"
 | 
			
		||||
cp -r "$STATIC_SRC/js"/* "$STATIC_BUILD/js"
 | 
			
		||||
cp $BASEDIR/node_modules/jquery/dist/jquery.min.js $STATIC_BUILD/js/jquery.min.js
 | 
			
		||||
cp $BASEDIR/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $STATIC_BUILD/js/bootstrap.min.js
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -21,7 +21,4 @@ hugo gen chromastyles --style=monokai > "$STATIC_BUILD/css/highlight.css"
 | 
			
		|||
 | 
			
		||||
mkdir -p "$STATIC_BUILD/scss"
 | 
			
		||||
cp -r "$STATIC_SRC/scss"/* "$STATIC_BUILD/scss"
 | 
			
		||||
 | 
			
		||||
hugo -vDEF --gc $@
 | 
			
		||||
 | 
			
		||||
ln -s ../etc "$OUTPUT_DIR/etc"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue