mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
7184bc5fa5
Still not spotless
27 lines
901 B
Bash
Executable File
27 lines
901 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# create a temporary directory if it doesn't already exist
|
|
mkdir -p tmp
|
|
|
|
# cook tiddlywiki 2.6.5 with cook.js
|
|
mkdir -p tmp/newcooked
|
|
node tiddlywiki.js --recipe $PWD/test/tiddlywiki.2.6.5/source/tiddlywiki.com/index.html.recipe --savewiki tmp/newcooked || exit 1
|
|
|
|
# compare the two
|
|
opendiff tmp/newcooked/index.html test/tiddlywiki.2.6.5/target/index.2.6.5.html
|
|
|
|
# split the newly cooked tiddlywiki into tiddlers, first with the new ginsu
|
|
#mkdir -p tmp/newtiddlers
|
|
#rm -f tmp/newtiddlers/*
|
|
#node ginsu.js tmp/newcooked.html tmp/newtiddlers || exit 1
|
|
|
|
# now cook those tiddlers back again with the respective versions of cook
|
|
#cook $PWD/test/data/recipes/oldtiddlers.recipe -d $PWD -o tmp/oldrecooked.html || exit 1
|
|
#node cook.js $PWD/test/data/recipes/newtiddlers.recipe > tmp/newrecooked.html || exit 1
|
|
|
|
# Run the wikification tests
|
|
node wikitest.js test/wikitests/
|
|
|
|
jshint *.js
|
|
jshint js
|