 082f254da0
			
		
	
	
		082f254da0
		
	
	
	
	
		
			
			Error pages: Add error pages for 404 and 50X errors by nginx Makefile improvements: Remove shit.sh and replace it by improving the Makefile
		
			
				
	
	
		
			30 lines
		
	
	
		
			776 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			776 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| node_modules:
 | |
| 	npm install
 | |
| 
 | |
| .PHONY: watch
 | |
| watch: node_modules
 | |
| 	npm start
 | |
| 
 | |
| clean:
 | |
| 	rm -rf dist/
 | |
| 
 | |
| .PHONY: build
 | |
| build: prod
 | |
| prod: node_modules clean
 | |
| 	@echo Building with parcel
 | |
| 	./node_modules/.bin/parcel build --out-dir dist/app src/index.html
 | |
| 	./node_modules/.bin/parcel build --out-dir dist src/lost.html src/error.html
 | |
| 	sed -e "s/\/src/\/app\/src/g" --in-place dist/app/index.html
 | |
| 
 | |
| 	tar -czf lateinicus-web.tar.gz dist/
 | |
| 
 | |
| dev: node_modules clean
 | |
| 	@echo Building with parcel
 | |
| 	./node_modules/.bin/parcel build --out-dir dist/app src/index.html
 | |
| 	./node_modules/.bin/parcel build --out-dir dist src/lost.html src/error.html
 | |
| 	sed -e "s/\/src/\/app\/src/g" --in-place dist/app/index.html
 | |
| 
 | |
| 	chmod 604 -R dist/app/*
 | |
| 	chmod 604 dist/error.html dist/lost.html
 | |
| 	chmod 705 dist dist/app
 |