Skip to content

Commit

Permalink
build: leave generated templates in dist as-is
Browse files Browse the repository at this point in the history
previously the typescript compiler had its way with them which resulted in  larger-than-necessary template files (e.g. the dot.template.js was 29kb - without  treatment ~22kb)
  • Loading branch information
sverweij committed Apr 13, 2024
1 parent 2df298b commit f1e80e6
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 74 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ docs/grammar.html: src/parse/smcat/peg/smcat-parser.peggy

docs: $(GENERATED_SOURCES)

templates-dist:
cp src/render/dot/*.template.js dist/render/dot/.
cp src/render/scxml/*.template.js dist/render/scxml/.
cp src/render/smcat/*.template.js dist/render/smcat/.

dist:
mkdir -p $@

Expand Down
27 changes: 1 addition & 26 deletions dist/render/dot/dot.states.template.js

Large diffs are not rendered by default.

15 changes: 1 addition & 14 deletions dist/render/dot/dot.template.js

Large diffs are not rendered by default.

15 changes: 1 addition & 14 deletions dist/render/scxml/scxml.states.template.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions dist/render/scxml/scxml.template.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f1e80e6

Please sign in to comment.