4b56cb4298
* Add support for running in-browser tests via playwright in GitHub CLI * `ci.yml` was updated to store the report so that it can be inspected on failure * `ci-test.sh` was added as an expansion to `test.sh` which installs and runs playwright * `playwright.spec.js` does the actual verification of opening the test TW edition in browser, waiting for the tests to finish and then verifying it has indeed passed * `playwright.config.js` Playwrifht configuration * Add support for running in-browser tests via playwright in GitHub CLI * `ci.yml` was updated to store the report so that it can be inspected on failure * `ci-test.sh` was added as an expansion to `test.sh` which installs and runs playwright * `playwright.spec.js` does the actual verification of opening the test TW edition in browser, waiting for the tests to finish and then verifying it has indeed passed * `playwright.config.js` Playwrifht configuration * Fix file permissions for `ci-test.sh` * Increased node version for github actions to support playwright * Add installation of the required @playwright/test library during CI test execution |
||
---|---|---|
.. | ||
build-site.sh | ||
build-tw-org.sh | ||
ci-pre-build.sh | ||
ci-push.sh | ||
ci-test.sh | ||
clean.sh | ||
get-plugin-library-version-number | ||
ginsu.cmd | ||
ginsu.sh | ||
lazy.cmd | ||
lazy.sh | ||
npm-publish.sh | ||
optimise-svgs.js | ||
quick-bld.sh | ||
readme-bld.sh | ||
readme.md | ||
serve.cmd | ||
serve.sh | ||
tankbld.cmd | ||
tankbld.sh | ||
test.cmd | ||
test.sh | ||
update-translation-from-html-file.sh | ||
verbump.sh |
Script Files
The TiddlyWiki5 repository contains several scripts in the bin
folder that you can use to automate common tasks, or as a useful starting point for your own scripts. See Scripts for building tiddlywiki.com for details of the scripts used to build and release https://tiddlywiki.com/.
All the scripts expect to be run from the root folder of the repository.
serve
: serves tw5.com
./bin/serve.sh -h
./bin/serve.sh [edition dir] [username] [password] [host] [port]
Or:
./bin/serve.cmd -h
./bin/serve.cmd [edition dir] [username] [password] [host] [port]
This script starts TiddlyWiki5 running as an HTTP server, defaulting to the content from the tw5.com-server
edition. By default, the Node.js serves on port 8080. If the optional username
parameter is provided, it is used for signing edits. If the password
is provided then HTTP basic authentication is used. Run the script with the -h
parameter to see online help.
To experiment with this configuration, run the script and then visit http://127.0.0.1:8080
in a browser.
Changes made in the browser propagate to the server over HTTP (use the browser developer console to see these requests). The server then syncs changes to the file system (and logs each change to the screen).
test
: build and run tests
This script runs the test
edition of TiddlyWiki on the server to perform the server-side tests and to build test.html
for running the tests in the browser.
lazy
: serves tw5.com with lazily loaded images
./bin/lazy.sh <username> [<password>]
Or:
./bin/lazy.cmd <username> [<password>]
This script serves the tw5.com-server
edition content with LazyLoading applied to images.