mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-28 11:00:27 +00:00
Sync bld.cmd with latest bld.sh
Synced bld.cmd to bld.sh, added some mostly cosmetic changes in the command scripts to make them even more 1-to-1 with the .sh scripts.
This commit is contained in:
parent
1b54313615
commit
c4a85e3b82
10
bld.cmd
10
bld.cmd
@ -4,9 +4,14 @@ rem build TiddlyWiki5 for five.tiddlywiki.com
|
||||
|
||||
rem Set up the build output directory
|
||||
|
||||
if "x%TW5_BUILD_OUTPUT%" == "x" (set TW5_BUILD_OUTPUT=..\jermolene.github.com)
|
||||
if "x%TW5_BUILD_OUTPUT%" == "x" (
|
||||
set TW5_BUILD_OUTPUT=..\jermolene.github.com
|
||||
)
|
||||
|
||||
if not exist %TW5_BUILD_OUTPUT%\nul echo A valid TW5_BUILD_OUTPUT environment variable must be set
|
||||
if not exist %TW5_BUILD_OUTPUT%\nul (
|
||||
echo A valid TW5_BUILD_OUTPUT environment variable must be set
|
||||
exit 1
|
||||
)
|
||||
|
||||
echo Using TW5_BUILD_OUTPUT as %TW5_BUILD_OUTPUT%
|
||||
echo.
|
||||
@ -32,6 +37,7 @@ node .\tiddlywiki.js ^
|
||||
--rendertiddler ReadMe .\readme.md text/html ^
|
||||
--rendertiddler ContributingTemplate .\contributing.md text/html ^
|
||||
--rendertiddler $:/core/save/all %TW5_BUILD_OUTPUT%\index.html text/plain ^
|
||||
--rendertiddler $:/editions/tw5.com/save-empty %TW5_BUILD_OUTPUT%\empty2.html text/plain ^
|
||||
--rendertiddler $:/core/templates/static.template.html %TW5_BUILD_OUTPUT%\static.html text/plain ^
|
||||
--rendertiddler $:/core/templates/static.template.css %TW5_BUILD_OUTPUT%\static\static.css text/plain ^
|
||||
--rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html %TW5_BUILD_OUTPUT%\static text/plain ^
|
||||
|
@ -1,4 +1,4 @@
|
||||
@echo
|
||||
@echo off
|
||||
|
||||
rem Publish to NPM
|
||||
|
||||
@ -6,7 +6,7 @@ npm publish || exit 1
|
||||
|
||||
rem Deploy latest build to github
|
||||
|
||||
pushd ..\mytiddlywiki.github.com
|
||||
pushd ..\jermolene.github.com
|
||||
|
||||
git add --all || exit 1
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
@echo
|
||||
@echo off
|
||||
|
||||
rem Split the tiddlers out of a TiddlyWiki file
|
||||
|
||||
|
9
test.cmd
9
test.cmd
@ -4,9 +4,14 @@ rem test TiddlyWiki5 for five.tiddlywiki.com
|
||||
|
||||
rem Set up the build output directory
|
||||
|
||||
if "x%TW5_BUILD_OUTPUT%" == "x" (set TW5_BUILD_OUTPUT=%TMP%\mytiddlywiki.github.com)
|
||||
if "x%TW5_BUILD_OUTPUT%" == "x" (
|
||||
set TW5_BUILD_OUTPUT=..\jermolene.github.com
|
||||
)
|
||||
|
||||
if not exist %TW5_BUILD_OUTPUT%\nul echo A valid TW5_BUILD_OUTPUT environment variable must be set
|
||||
if not exist %TW5_BUILD_OUTPUT%\nul (
|
||||
echo A valid TW5_BUILD_OUTPUT environment variable must be set
|
||||
exit 1
|
||||
)
|
||||
|
||||
echo Using TW5_BUILD_OUTPUT as %TW5_BUILD_OUTPUT%
|
||||
|
||||
|
@ -1,8 +1,11 @@
|
||||
@echo
|
||||
@echo off
|
||||
|
||||
rem Bump to a new version number
|
||||
|
||||
if "x%1" == "x" echo "Missing version (eg '5.0.0-alpha.99')" && exit 1
|
||||
if "x%1" == "x" (
|
||||
echo Missing version (eg '5.0.0-alpha.99'^)
|
||||
exit 1
|
||||
)
|
||||
|
||||
rem Set the new version number (will also commit and tag the release)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user