7e8722a614f9e96c81968f2c9fc44e62fa9d501b — Andrew Zah 3 months ago 867c0e5
redo assets solution
2 files changed, 8 insertions(+), 1 deletions(-)

M .gitignore
M Makefile
M .gitignore => .gitignore +1 -1
@@ 2,6 2,6 @@ /binary-data
  /static/js/min
  /data
- /public
  secret.env
+ /public
  gutenberg

M Makefile => Makefile +7 -0
@@ 27,6 27,8 @@   JS_FILES            := $(wildcard $(JS_DIR)/*.js)
  MIN_JS_FILES        := ${patsubst $(JS_DIR)/%,$(MIN_JS_DIR)/%,$(JS_FILES:.js=.min.js) }
+ PUBLIC_FILES        := $(wildcard public/*)
+ CONTENT_FILES       := $(wildcard public/*) $(wildcard content/*) $(wildcard templates/*)
  
  JS_TARGET           := $(JS_DIR)/bundle.js
  


@@ 45,6 47,11 @@ rm -rf $(MIN_JS_DIR)
  	rm -rf $(PUBLIC_MIN_JS_DIR)
  
+ build: $(CONTENT_FILES)
+ 
+ static: build
+ 	rsync -arv public/* ../website-static-assets
+ 
  up:
  	docker-compose down
  	find . -type f -exec chmod 644 {} +