Skip to content

Commit 2a00a2a

Browse files
committed
WIP
1 parent 76d3407 commit 2a00a2a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

edit.cmd

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
@if "%~1"=="" goto usage
22

3-
export TUTORIAL_ROOT="../javascript-tutorial-%1"
4-
@set NODE_LANG=%1
3+
@set TUTORIAL_ROOT="../javascript-tutorial-%1"
4+
5+
@if "%~2"=="" (
6+
@set NODE_LANG=en
7+
) else (
8+
@set NODE_LANG=%2
9+
)
10+
511
@set NODE_ENV=production
612
@set TUTORIAL_EDIT=1
713
@set ASSET_VERSIONING=query
@@ -14,5 +20,5 @@ call gulp edit
1420
goto :eof
1521

1622
:usage
17-
echo Usage: %0 <Language>
23+
echo Usage: %0 <tutorial language> [<server language>]
1824
exit /B 1

0 commit comments

Comments
 (0)