1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00
A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
Go to file
Jeremy Ruston 02137055ec Refactored the Tiddler class
Specifically, made the constructor more flexible
2011-11-30 18:39:39 +00:00
js Refactored the Tiddler class 2011-11-30 18:39:39 +00:00
test/data Added a test recipe retrieving tiddlers in JSON from TiddlySpace/TiddlyWeb 2011-11-30 11:42:17 +00:00
.gitignore Introduced tmp/ directory for test artefacts 2011-11-25 15:51:02 +00:00
cook.js Minor refactoring, including switching to strict mode 2011-11-30 17:27:00 +00:00
ginsu.js Minor refactoring, including switching to strict mode 2011-11-30 17:27:00 +00:00
readme.md Improved readme.md 2011-11-29 19:25:51 +00:00
server.js Minor refactoring, including switching to strict mode 2011-11-30 17:27:00 +00:00
test.sh Improved test script 2011-11-26 13:23:26 +00:00

cook.js

This is an attempt to modernise TiddlyWiki's build system, which has been based on tools written in Ruby called Cook and Ginsu (see https://github.com/TiddlyWiki/cooker for details). They were first written in 2006 and have been heavily hacked since then.

This new version is written in JavaScript for node.js, with the intention that it can share code with TiddlyWiki itself.

The goal is to achieve byte-for-byte compatibility with the old tools, but only to support the features required by the recipe files that are currently in use by TiddlyWiki and TiddlySpace.

Usage

node cook.js <recipefile>

Cooks a recipe file and sends the output to STDOUT

node server.js <recipefile>

Cooks a recipe file and serves it over HTTP port 8000

node ginsu.js <tiddlywikifile> <outputdir>

Splits a TiddlyWiki file into separate .tid files and a split.recipe file.

Testing

test.sh contains a simple test that cooks the main tiddlywiki.com recipe, first with the old Ruby-based tool, and then the new one. It uses OS X's opendiff to display the differences between the two files.

Current status

As of 22nd November 2011, cook.js can now build a fully functional TiddlyWiki from the existing recipe files. There are still some minor differences in the layout of tiddler attributes, and some whitespace issues that prevent full byte-for-byte compatibility.