Skip to content

Commit

Permalink
#57: js similar to css
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 23, 2024
1 parent a1e796f commit f90e620
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ FBS = $(subst tests/,target/fb/,${YAMLS:.yml=.fb})
HTMLS = $(subst fb/,html/,${FBS:.fb=.html})
XSLS = $(subst xsl/,target/xsl/,$(wildcard xsl/*.xsl))
JUDGES = judges
DIRS = target target/html target/fb target/xsl target/css
DIRS = target target/html target/fb target/xsl target/css target/js
CSS = target/css/main.css
JS = target/js/main.js
SAXON = target/saxon.jar

export

all: $(CSS) $(XSLS) $(HTMLS) entry rmi verify
all: $(JS) $(CSS) $(XSLS) $(HTMLS) entry rmi verify

target/xsl/%.xsl: xsl/%.xsl | target/xsl
cp $< $@
Expand All @@ -59,6 +60,9 @@ target/fb/%.fb: tests/%.yml Makefile | target/fb
$(CSS): sass/*.scss | target/css
sass --no-source-map --style=compressed --no-quiet --stop-on-error $< $@

$(JS): js/*.js | target/js
uglifyjs $< > $@

clean:
rm -rf target

Expand Down
2 changes: 1 addition & 1 deletion entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ done <<< "${INPUT_OPTIONS}"

# Build a summary HTML.
css=$(cat "${SELF}/target/css/main.css")
js=$(uglifyjs "${SELF}/js/*.js")
js=$(cat "${SELF}/target/js/main.js")
html=${INPUT_OUTPUT}/${name}.html
java -jar "${SELF}/target/saxon.jar" \
"-s:${INPUT_OUTPUT}/${name}.rich.xml" \
Expand Down

0 comments on commit f90e620

Please sign in to comment.