-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto pack template in build.cmd (#379)
- Loading branch information
1 parent
cde1142
commit cf70369
Showing
11 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@ECHO OFF | ||
PUSHD %~dp0 | ||
|
||
SETLOCAL | ||
SETLOCAL ENABLEDELAYEDEXPANSION | ||
|
||
:: Check if node exists globally | ||
WHERE node >NUL | ||
IF NOT '%ERRORLEVEL%'=='0' ( | ||
ECHO ERROR: UpdateTemplate.cmd requires node installed globally. | ||
GOTO :Exit | ||
) | ||
|
||
SET TemplateHome=%~dp0src\docfx.website.themes\ | ||
SET DefaultTemplate=%TemplateHome%default | ||
|
||
CALL npm install -g gulp | ||
|
||
:: Check if gulp install successfully | ||
WHERE gulp >NUL | ||
IF NOT '%ERRORLEVEL%'=='0' ( | ||
ECHO ERROR: UpdateTemplate.cmd requires gulp installed globally. | ||
GOTO :Exit | ||
) | ||
|
||
CD %DefaultTemplate% | ||
CALL npm install | ||
CALL gulp | ||
|
||
CD %TemplateHome% | ||
CALL npm install | ||
CALL gulp | ||
|
||
:Exit | ||
POPD | ||
|
||
EXIT /B %ERRORLEVEL%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.