Skip to content

Commit

Permalink
Switch from node-static to serve
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman committed Aug 19, 2020
1 parent d9505db commit 1058a70
Show file tree
Hide file tree
Showing 3 changed files with 912 additions and 1,034 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: depends generate-tests js beautify py package jstest pytest perf
help:
@echo "make <action>"
@echo " all - build both implementations"
@echo " static - serve static version of site locally"
@echo " serve - serve site locally from localhost:8080"
@echo " js - build javascript"
@echo " py - build python"
@echo " alltest - test both implementations, js and python"
Expand All @@ -20,8 +20,8 @@ help:

ci: all git-status-clear

static: js/lib/*.js
@./node_modules/.bin/static -H '{"Cache-Control": "no-cache, must-revalidate"}'
serve: js/lib/*.js
@./node_modules/.bin/serve

js: generate-tests js/lib/*.js
@echo Testing node beautify functionality...
Expand Down Expand Up @@ -155,5 +155,5 @@ clean:
git clean -xfd
#######################################################

.PHONY: all beautify clean depends generate-tests git-status-clear help static update
.PHONY: all beautify clean depends generate-tests git-status-clear help serve update

0 comments on commit 1058a70

Please sign in to comment.