diff options
| author | Simon Tatham <anakin@pobox.com> | 2017-09-20 10:22:28 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2017-09-20 18:03:44 +0100 |
| commit | 61e711178455dbd0ec8f78d15791b7e25fbf7156 (patch) | |
| tree | 592383dcb8205544006248cd57c7f3b25cc57b31 /Buildscr | |
| parent | d72db91888c1efddd56c67eee665b0a83c9329eb (diff) | |
| download | puzzles-61e711178455dbd0ec8f78d15791b7e25fbf7156.zip puzzles-61e711178455dbd0ec8f78d15791b7e25fbf7156.tar.gz puzzles-61e711178455dbd0ec8f78d15791b7e25fbf7156.tar.bz2 puzzles-61e711178455dbd0ec8f78d15791b7e25fbf7156.tar.xz | |
Build test HTML wrapper pages for the Javascript puzzles.
This should make it less annoying for me to do local testing of the JS
output of a build, before I push a change. There's a new
build.out/jstest directory containing .html files suitable for loading
in a local browser, which refer to the JS files via an appropriate
relative path to the existing build.out/js directory.
Diffstat (limited to 'Buildscr')
| -rw-r--r-- | Buildscr | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -158,6 +158,16 @@ delegate emscripten return puzzles/js/*.js enddelegate +# Build a set of wrapping HTML pages for easy testing of the +# Javascript puzzles. These aren't quite the same as the versions that +# will go on my live website, because those ones will substitute in a +# different footer, and not have to link to the .js files with the +# ../js/ prefix. But these ones should be good enough to just open +# using a file:// URL in a browser after running a build, and make +# sure the main functionality works. +in puzzles do mkdir jstest +in puzzles/jstest do ../html/jspage.pl --jspath=../js/ /dev/null ../html/*.html + # Set up .htaccess containing a redirect for the archive filename. in puzzles do echo "AddType application/octet-stream .chm" > .htaccess in puzzles do echo "AddType application/octet-stream .hlp" >> .htaccess @@ -179,6 +189,7 @@ deliver puzzles/puzzles.zip $@ deliver puzzles/puzzles.msi puzzles-$(Version)-installer.msi deliver puzzles/*.jar java/$@ deliver puzzles/js/*.js js/$@ +deliver puzzles/jstest/*.html jstest/$@ deliver puzzles/html/*.html html/$@ deliver puzzles/html/*.pl html/$@ deliver puzzles/wwwspans.html $@ |