1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

CI: Fixes

Things are starting to work now...

* Now we extract the version number from package.json to use in making the plugin library
* We start building the whole site (eek, going to be slow)
This commit is contained in:
Jermolene 2019-01-07 20:07:32 +00:00
parent 37b335a136
commit 14623d33d2
3 changed files with 310 additions and 261 deletions

View File

@ -15,9 +15,9 @@ jobs:
- stage: build-prerelease - stage: build-prerelease
script: script:
- ./bin/travis-pre-build.sh - ./bin/travis-pre-build.sh
- export TW5_BUILD_VERSION=v5.1.20-prerelease # Eeek need to automate this
- export TW5_BUILD_DETAILS="Prerelease built from branch '$TRAVIS_BRANCH' at commit $(git rev-parse HEAD) of $(git remote get-url origin) at $(date '%H:%M:%S +%Y-%m-%d')"
- export TW5_BUILD_TIDDLYWIKI='./node_modules/tiddlywiki/tiddlywiki.js' - export TW5_BUILD_TIDDLYWIKI='./node_modules/tiddlywiki/tiddlywiki.js'
- export TW5_BUILD_VERSION=$(./bin/get-version-number)
- export TW5_BUILD_DETAILS="Prerelease built from branch '$TRAVIS_BRANCH' at commit $(git rev-parse HEAD) of $(git remote get-url origin) at $(date '%H:%M:%S +%Y-%m-%d')"
- export TW5_BUILD_MAIN_EDITION='./editions/prerelease' - export TW5_BUILD_MAIN_EDITION='./editions/prerelease'
- export TW5_BUILD_OUTPUT='./output/prerelease' - export TW5_BUILD_OUTPUT='./output/prerelease'
- ./bin/build-site.sh - ./bin/build-site.sh
@ -25,9 +25,9 @@ jobs:
- stage: build-tiddlywiki-com - stage: build-tiddlywiki-com
script: script:
- ./bin/travis-pre-build.sh - ./bin/travis-pre-build.sh
- export TW5_BUILD_VERSION=v5.1.19 # Eeek need to automate this
- export TW5_BUILD_DETAILS="Built from branch '$TRAVIS_BRANCH' at commit $(git rev-parse HEAD) of $(git remote get-url origin) at $(date '%H:%M:%S +%Y-%m-%d')"
- export TW5_BUILD_TIDDLYWIKI='./tiddlywiki.js' - export TW5_BUILD_TIDDLYWIKI='./tiddlywiki.js'
- export TW5_BUILD_VERSION=$(./bin/get-version-number)
- export TW5_BUILD_DETAILS="Built from branch '$TRAVIS_BRANCH' at commit $(git rev-parse HEAD) of $(git remote get-url origin) at $(date '%H:%M:%S +%Y-%m-%d')"
- export TW5_BUILD_MAIN_EDITION='./editions/tw5.com' - export TW5_BUILD_MAIN_EDITION='./editions/tw5.com'
- export TW5_BUILD_OUTPUT='./output' - export TW5_BUILD_OUTPUT='./output'
- ./bin/build-site.sh - ./bin/build-site.sh

View File

@ -64,7 +64,7 @@ echo "<a href='./plugins/tiddlywiki/highlight/index.html'>Moved to http://tiddly
echo "<a href='./plugins/tiddlywiki/markdown/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/markdown/index.html</a>" > $TW5_BUILD_OUTPUT/markdowndemo.html echo "<a href='./plugins/tiddlywiki/markdown/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/markdown/index.html</a>" > $TW5_BUILD_OUTPUT/markdowndemo.html
echo "<a href='./plugins/tiddlywiki/tahoelafs/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/tahoelafs/index.html</a>" > $TW5_BUILD_OUTPUT/tahoelafs.html echo "<a href='./plugins/tiddlywiki/tahoelafs/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/tahoelafs/index.html</a>" > $TW5_BUILD_OUTPUT/tahoelafs.html
# Put the build details into a .tid file so that it can be included in each build # Put the build details into a .tid file so that it can be included in each build (deleted at the end of this script)
echo -e -n "title: $:/build\n\n$TW5_BUILD_DETAILS\n" > $TW5_BUILD_OUTPUT/build.tid echo -e -n "title: $:/build\n\n$TW5_BUILD_DETAILS\n" > $TW5_BUILD_OUTPUT/build.tid
@ -90,296 +90,327 @@ node $TW5_BUILD_TIDDLYWIKI \
--build favicon static index \ --build favicon static index \
|| exit 1 || exit 1
# # /empty.html Empty # /empty.html Empty
# # /empty.hta For Internet Explorer # /empty.hta For Internet Explorer
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/empty \ ../TiddlyWiki5/editions/empty \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --output $TW5_BUILD_OUTPUT \
# --build empty \ --build empty \
# || exit 1 || exit 1
# # /dev/index.html Developer docs # /dev/index.html Developer docs
# # /dev/favicon.ico Favicon for dev site # /dev/favicon.ico Favicon for dev site
# # /dev/static.html Static rendering of default tiddlers # /dev/static.html Static rendering of default tiddlers
# # /dev/alltiddlers.html Static rendering of all tiddlers # /dev/alltiddlers.html Static rendering of all tiddlers
# # /dev/static/* Static single tiddlers # /dev/static/* Static single tiddlers
# # /dev/static/static.css Static stylesheet # /dev/static/static.css Static stylesheet
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/dev \ ../TiddlyWiki5/editions/dev \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/dev \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build index favicon static \ --output $TW5_BUILD_OUTPUT/dev \
# || exit 1 --build index favicon static \
|| exit 1
# # /upgrade.html Custom edition for performing upgrades # /upgrade.html Custom edition for performing upgrades
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/upgrade \ ../TiddlyWiki5/editions/upgrade \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build upgrade \ --output $TW5_BUILD_OUTPUT \
# || exit 1 --build upgrade \
|| exit 1
# # /encrypted.html Copy of the main file encrypted with the password "password" # /encrypted.html Copy of the main file encrypted with the password "password"
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# $TW5_BUILD_MAIN_EDITION \ $TW5_BUILD_MAIN_EDITION \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build encrypted \ --output $TW5_BUILD_OUTPUT \
# || exit 1 --build encrypted \
|| exit 1
# ###################################################### ######################################################
# # #
# # Editions # Editions
# # #
# ###################################################### ######################################################
# # /editions/xlsx-utils/index.html xlsx-utils edition # /editions/xlsx-utils/index.html xlsx-utils edition
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/xlsx-utils \ ../TiddlyWiki5/editions/xlsx-utils \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/editions/xlsx-utils/ \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build index \ --output $TW5_BUILD_OUTPUT/editions/xlsx-utils/ \
# || exit 1 --build index \
|| exit 1
# # /editions/resumebuilder/index.html Resume builder edition # /editions/resumebuilder/index.html Resume builder edition
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/resumebuilder \ ../TiddlyWiki5/editions/resumebuilder \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/editions/resumebuilder/ \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build index \ --output $TW5_BUILD_OUTPUT/editions/resumebuilder/ \
# || exit 1 --build index \
|| exit 1
# # /editions/text-slicer/index.html Text slicer edition # /editions/text-slicer/index.html Text slicer edition
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/text-slicer \ ../TiddlyWiki5/editions/text-slicer \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/editions/text-slicer/ \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build index \ --output $TW5_BUILD_OUTPUT/editions/text-slicer/ \
# || exit 1 --build index \
|| exit 1
# # /editions/translators/index.html Translators edition # /editions/translators/index.html Translators edition
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/translators \ ../TiddlyWiki5/editions/translators \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/editions/translators/ \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build index \ --output $TW5_BUILD_OUTPUT/editions/translators/ \
# || exit 1 --build index \
|| exit 1
# # /editions/introduction/index.html Introduction edition # /editions/introduction/index.html Introduction edition
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/introduction \ ../TiddlyWiki5/editions/introduction \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/editions/introduction/ \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build index \ --output $TW5_BUILD_OUTPUT/editions/introduction/ \
# || exit 1 --build index \
|| exit 1
# # /editions/full/index.html Full edition # /editions/full/index.html Full edition
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/full \ ../TiddlyWiki5/editions/full \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/editions/full/ \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build index \ --output $TW5_BUILD_OUTPUT/editions/full/ \
# || exit 1 --build index \
|| exit 1
# # /editions/tw5.com-docs/index.html tiddlywiki.com docs edition # /editions/tw5.com-docs/index.html tiddlywiki.com docs edition
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/tw5.com-docs \ ../TiddlyWiki5/editions/tw5.com-docs \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/editions/tw5.com-docs/ \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build index \ --output $TW5_BUILD_OUTPUT/editions/tw5.com-docs/ \
# || exit 1 --build index \
|| exit 1
# ###################################################### ######################################################
# # #
# # Plugin demos # Plugin demos
# # #
# ###################################################### ######################################################
# # /plugins/tiddlywiki/dynaview/index.html Demo wiki with DynaView plugin # /plugins/tiddlywiki/dynaview/index.html Demo wiki with DynaView plugin
# # /plugins/tiddlywiki/dynaview/empty.html Empty wiki with DynaView plugin # /plugins/tiddlywiki/dynaview/empty.html Empty wiki with DynaView plugin
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/dynaviewdemo \ ../TiddlyWiki5/editions/dynaviewdemo \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --load $TW5_BUILD_OUTPUT/build.tid \
# --rendertiddler $:/core/save/all plugins/tiddlywiki/dynaview/index.html text/plain \ --output $TW5_BUILD_OUTPUT \
# --rendertiddler $:/core/save/empty plugins/tiddlywiki/dynaview/empty.html text/plain \ --rendertiddler $:/core/save/all plugins/tiddlywiki/dynaview/index.html text/plain \
# || exit 1 --rendertiddler $:/core/save/empty plugins/tiddlywiki/dynaview/empty.html text/plain \
|| exit 1
# # /plugins/tiddlywiki/katex/index.html Demo wiki with KaTeX plugin # /plugins/tiddlywiki/katex/index.html Demo wiki with KaTeX plugin
# # /plugins/tiddlywiki/katex/empty.html Empty wiki with KaTeX plugin # /plugins/tiddlywiki/katex/empty.html Empty wiki with KaTeX plugin
# # TODO: Build the static file with the release of 5.1.3 # TODO: Build the static file with the release of 5.1.3
# # --rendertiddler $:/core/templates/static.template.html plugins/tiddlywiki/katex/static.html text/plain \ # --rendertiddler $:/core/templates/static.template.html plugins/tiddlywiki/katex/static.html text/plain \
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/katexdemo \ ../TiddlyWiki5/editions/katexdemo \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --load $TW5_BUILD_OUTPUT/build.tid \
# --rendertiddler $:/core/save/all plugins/tiddlywiki/katex/index.html text/plain \ --output $TW5_BUILD_OUTPUT \
# --rendertiddler $:/core/save/empty plugins/tiddlywiki/katex/empty.html text/plain \ --rendertiddler $:/core/save/all plugins/tiddlywiki/katex/index.html text/plain \
# || exit 1 --rendertiddler $:/core/save/empty plugins/tiddlywiki/katex/empty.html text/plain \
|| exit 1
# # /plugins/tiddlywiki/tahoelafs/index.html Demo wiki with Tahoe-LAFS plugin # /plugins/tiddlywiki/tahoelafs/index.html Demo wiki with Tahoe-LAFS plugin
# # /plugins/tiddlywiki/tahoelafs/empty.html Empty wiki with Tahoe-LAFS plugin # /plugins/tiddlywiki/tahoelafs/empty.html Empty wiki with Tahoe-LAFS plugin
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/tahoelafs \ ../TiddlyWiki5/editions/tahoelafs \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --load $TW5_BUILD_OUTPUT/build.tid \
# --rendertiddler $:/core/save/all plugins/tiddlywiki/tahoelafs/index.html text/plain \ --output $TW5_BUILD_OUTPUT \
# --rendertiddler $:/core/save/empty plugins/tiddlywiki/tahoelafs/empty.html text/plain \ --rendertiddler $:/core/save/all plugins/tiddlywiki/tahoelafs/index.html text/plain \
# || exit 1 --rendertiddler $:/core/save/empty plugins/tiddlywiki/tahoelafs/empty.html text/plain \
|| exit 1
# # /plugins/tiddlywiki/d3/index.html Demo wiki with D3 plugin # /plugins/tiddlywiki/d3/index.html Demo wiki with D3 plugin
# # /plugins/tiddlywiki/d3/empty.html Empty wiki with D3 plugin # /plugins/tiddlywiki/d3/empty.html Empty wiki with D3 plugin
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/d3demo \ ../TiddlyWiki5/editions/d3demo \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --load $TW5_BUILD_OUTPUT/build.tid \
# --rendertiddler $:/core/save/all plugins/tiddlywiki/d3/index.html text/plain \ --output $TW5_BUILD_OUTPUT \
# --rendertiddler $:/core/save/empty plugins/tiddlywiki/d3/empty.html text/plain \ --rendertiddler $:/core/save/all plugins/tiddlywiki/d3/index.html text/plain \
# || exit 1 --rendertiddler $:/core/save/empty plugins/tiddlywiki/d3/empty.html text/plain \
|| exit 1
# # /plugins/tiddlywiki/codemirror/index.html Demo wiki with codemirror plugin # /plugins/tiddlywiki/codemirror/index.html Demo wiki with codemirror plugin
# # /plugins/tiddlywiki/codemirror/empty.html Empty wiki with codemirror plugin # /plugins/tiddlywiki/codemirror/empty.html Empty wiki with codemirror plugin
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/codemirrordemo \ ../TiddlyWiki5/editions/codemirrordemo \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --load $TW5_BUILD_OUTPUT/build.tid \
# --rendertiddler $:/core/save/all plugins/tiddlywiki/codemirror/index.html text/plain \ --output $TW5_BUILD_OUTPUT \
# --rendertiddler $:/core/save/empty plugins/tiddlywiki/codemirror/empty.html text/plain \ --rendertiddler $:/core/save/all plugins/tiddlywiki/codemirror/index.html text/plain \
# || exit 1 --rendertiddler $:/core/save/empty plugins/tiddlywiki/codemirror/empty.html text/plain \
|| exit 1
# # /plugins/tiddlywiki/markdown/index.html Demo wiki with Markdown plugin # /plugins/tiddlywiki/markdown/index.html Demo wiki with Markdown plugin
# # /plugins/tiddlywiki/markdown/empty.html Empty wiki with Markdown plugin # /plugins/tiddlywiki/markdown/empty.html Empty wiki with Markdown plugin
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/markdowndemo \ ../TiddlyWiki5/editions/markdowndemo \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --load $TW5_BUILD_OUTPUT/build.tid \
# --rendertiddler $:/core/save/all plugins/tiddlywiki/markdown/index.html text/plain \ --output $TW5_BUILD_OUTPUT \
# --rendertiddler $:/core/save/empty plugins/tiddlywiki/markdown/empty.html text/plain \ --rendertiddler $:/core/save/all plugins/tiddlywiki/markdown/index.html text/plain \
# || exit 1 --rendertiddler $:/core/save/empty plugins/tiddlywiki/markdown/empty.html text/plain \
|| exit 1
# # /plugins/tiddlywiki/tw2parser/index.html Demo wiki with tw2parser plugin # /plugins/tiddlywiki/tw2parser/index.html Demo wiki with tw2parser plugin
# # /plugins/tiddlywiki/tw2parser/empty.html Empty wiki with tw2parser plugin # /plugins/tiddlywiki/tw2parser/empty.html Empty wiki with tw2parser plugin
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/classicparserdemo \ ../TiddlyWiki5/editions/classicparserdemo \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --load $TW5_BUILD_OUTPUT/build.tid \
# --rendertiddler $:/core/save/all plugins/tiddlywiki/tw2parser/index.html text/plain \ --output $TW5_BUILD_OUTPUT \
# --rendertiddler $:/core/save/empty plugins/tiddlywiki/tw2parser/empty.html text/plain \ --rendertiddler $:/core/save/all plugins/tiddlywiki/tw2parser/index.html text/plain \
# || exit 1 --rendertiddler $:/core/save/empty plugins/tiddlywiki/tw2parser/empty.html text/plain \
|| exit 1
# # /plugins/tiddlywiki/highlight/index.html Demo wiki with highlight plugin # /plugins/tiddlywiki/highlight/index.html Demo wiki with highlight plugin
# # /plugins/tiddlywiki/highlight/empty.html Empty wiki with highlight plugin # /plugins/tiddlywiki/highlight/empty.html Empty wiki with highlight plugin
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/highlightdemo \ ../TiddlyWiki5/editions/highlightdemo \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --load $TW5_BUILD_OUTPUT/build.tid \
# --rendertiddler $:/core/save/all plugins/tiddlywiki/highlight/index.html text/plain \ --output $TW5_BUILD_OUTPUT \
# --rendertiddler $:/core/save/empty plugins/tiddlywiki/highlight/empty.html text/plain \ --rendertiddler $:/core/save/all plugins/tiddlywiki/highlight/index.html text/plain \
# || exit 1 --rendertiddler $:/core/save/empty plugins/tiddlywiki/highlight/empty.html text/plain \
|| exit 1
# ###################################################### ######################################################
# # #
# # Language editions # Language editions
# # #
# ###################################################### ######################################################
# # Delete any existing static content # Delete any existing static content
# rm $TW5_BUILD_OUTPUT/languages/de-AT/static/* rm $TW5_BUILD_OUTPUT/languages/de-AT/static/*
# rm $TW5_BUILD_OUTPUT/languages/de-DE/static/* rm $TW5_BUILD_OUTPUT/languages/de-DE/static/*
# rm $TW5_BUILD_OUTPUT/languages/es-ES/static/* rm $TW5_BUILD_OUTPUT/languages/es-ES/static/*
# rm $TW5_BUILD_OUTPUT/languages/fr-FR/static/* rm $TW5_BUILD_OUTPUT/languages/fr-FR/static/*
# rm $TW5_BUILD_OUTPUT/languages/ja-JP/static/* rm $TW5_BUILD_OUTPUT/languages/ja-JP/static/*
# rm $TW5_BUILD_OUTPUT/languages/ko-KR/static/* rm $TW5_BUILD_OUTPUT/languages/ko-KR/static/*
# rm $TW5_BUILD_OUTPUT/languages/zh-Hans/static/* rm $TW5_BUILD_OUTPUT/languages/zh-Hans/static/*
# rm $TW5_BUILD_OUTPUT/languages/zh-Hant/static/* rm $TW5_BUILD_OUTPUT/languages/zh-Hant/static/*
# # /languages/de-AT/index.html Demo wiki with de-AT language # /languages/de-AT/index.html Demo wiki with de-AT language
# # /languages/de-AT/empty.html Empty wiki with de-AT language # /languages/de-AT/empty.html Empty wiki with de-AT language
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/de-AT \ ../TiddlyWiki5/editions/de-AT \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/languages/de-AT \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build favicon empty static index \ --output $TW5_BUILD_OUTPUT/languages/de-AT \
# || exit 1 --build favicon empty static index \
|| exit 1
# # /languages/de-DE/index.html Demo wiki with de-DE language # /languages/de-DE/index.html Demo wiki with de-DE language
# # /languages/de-DE/empty.html Empty wiki with de-DE language # /languages/de-DE/empty.html Empty wiki with de-DE language
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/de-DE \ ../TiddlyWiki5/editions/de-DE \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/languages/de-DE \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build favicon empty static index \ --output $TW5_BUILD_OUTPUT/languages/de-DE \
# || exit 1 --build favicon empty static index \
|| exit 1
# # /languages/es-ES/index.html Demo wiki with es-ES language # /languages/es-ES/index.html Demo wiki with es-ES language
# # /languages/es-ES/empty.html Empty wiki with es-ES language # /languages/es-ES/empty.html Empty wiki with es-ES language
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/es-ES \ ../TiddlyWiki5/editions/es-ES \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/languages/es-ES \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build favicon empty static index \ --output $TW5_BUILD_OUTPUT/languages/es-ES \
# || exit 1 --build favicon empty static index \
|| exit 1
# # /languages/fr-FR/index.html Demo wiki with fr-FR language # /languages/fr-FR/index.html Demo wiki with fr-FR language
# # /languages/fr-FR/empty.html Empty wiki with fr-FR language # /languages/fr-FR/empty.html Empty wiki with fr-FR language
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/fr-FR \ ../TiddlyWiki5/editions/fr-FR \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/languages/fr-FR \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build favicon empty static index \ --output $TW5_BUILD_OUTPUT/languages/fr-FR \
# || exit 1 --build favicon empty static index \
|| exit 1
# # /languages/ja-JP/index.html Demo wiki with ja-JP language # /languages/ja-JP/index.html Demo wiki with ja-JP language
# # /languages/ja-JP/empty.html Empty wiki with ja-JP language # /languages/ja-JP/empty.html Empty wiki with ja-JP language
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/ja-JP \ ../TiddlyWiki5/editions/ja-JP \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/languages/ja-JP \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build empty index \ --output $TW5_BUILD_OUTPUT/languages/ja-JP \
# || exit 1 --build empty index \
|| exit 1
# # /languages/ko-KR/index.html Demo wiki with ko-KR language # /languages/ko-KR/index.html Demo wiki with ko-KR language
# # /languages/ko-KR/empty.html Empty wiki with ko-KR language # /languages/ko-KR/empty.html Empty wiki with ko-KR language
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/ko-KR \ ../TiddlyWiki5/editions/ko-KR \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/languages/ko-KR \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build favicon empty static index \ --output $TW5_BUILD_OUTPUT/languages/ko-KR \
# || exit 1 --build favicon empty static index \
|| exit 1
# # /languages/zh-Hans/index.html Demo wiki with zh-Hans language # /languages/zh-Hans/index.html Demo wiki with zh-Hans language
# # /languages/zh-Hans/empty.html Empty wiki with zh-Hans language # /languages/zh-Hans/empty.html Empty wiki with zh-Hans language
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/zh-Hans \ ../TiddlyWiki5/editions/zh-Hans \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/languages/zh-Hans \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build empty index \ --output $TW5_BUILD_OUTPUT/languages/zh-Hans \
# || exit 1 --build empty index \
|| exit 1
# # /languages/zh-Hant/index.html Demo wiki with zh-Hant language # /languages/zh-Hant/index.html Demo wiki with zh-Hant language
# # /languages/zh-Hant/empty.html Empty wiki with zh-Hant language # /languages/zh-Hant/empty.html Empty wiki with zh-Hant language
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/zh-Hant \ ../TiddlyWiki5/editions/zh-Hant \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/languages/zh-Hant \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build empty index \ --output $TW5_BUILD_OUTPUT/languages/zh-Hant \
# || exit 1 --build empty index \
|| exit 1
# ###################################################### ######################################################
# # #
# # Plugin library # Plugin library
# # #
# ###################################################### ######################################################
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# ../TiddlyWiki5/editions/pluginlibrary \ ../TiddlyWiki5/editions/pluginlibrary \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT/library/$TW5_BUILD_VERSION \ --load $TW5_BUILD_OUTPUT/build.tid \
# --build \ --output $TW5_BUILD_OUTPUT/library/$TW5_BUILD_VERSION \
# || exit 1 --build \
|| exit 1
# Delete the temporary build tiddler
rm $TW5_BUILD_OUTPUT/build.tid || exit 1

18
bin/get-version-number Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env node
// Extract raw version number from package.json (without the optional "-prerelease" suffix)
if(!process.env["TW5_BUILD_TIDDLYWIKI"]) {
throw "TW5_BUILD_TIDDLYWIKI environment variable not set";
}
var fs = require("fs"),
path = require("path");
var json = JSON.parse(fs.readFileSync(path.resolve(path.dirname(process.env["TW5_BUILD_TIDDLYWIKI"]),"./package.json"),"utf8"));
if(!json.version) {
throw "Missing version number in package.json";
}
process.stdout.write(json.version.split("-")[0]);