Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gulp.bat: kjør for evig hvis uten argumenter
- Loading branch information
Showing
1 changed file
with
19 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
cd codeclub_lesson_builder | ||
node node_modules\gulp\bin\gulp.js %* | ||
@echo off | ||
set CWD=codeclub_lesson_builder | ||
set MODULES=%CWD%/node_modules | ||
|
||
if not "%1"=="" goto task | ||
|
||
:: no args, run forever | ||
:gulp | ||
node %MODULES%/gulp/bin/gulp.js --cwd %CWD% | ||
if errorlevel 1 goto gulp | ||
goto done | ||
|
||
:task | ||
:: arg supplied, do not run forever | ||
node %MODULES%/gulp/bin/gulp.js --cwd %CWD% %* | ||
|
||
:done | ||
set CWD= | ||
set MODULES= |