-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgetLibs.cmd
47 lines (37 loc) · 1.28 KB
/
getLibs.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
REM Creates the bower package files by copying
REM them here from their sources in other repos.
REM The package maintainers call this command before publishing.
REM Assumes the source breeze repos are siblings to this repo
if not exist "%1..\breeze.js\build" GOTO :skip
if not exist "%1..\breeze.js\src\" GOTO :skip
if not exist "%1..\breeze.js.labs\" GOTO :skip
GOTO :libsExist
:skip
echo Skipping file copy because can't find one (or more) source folders
GOTO :done
:libsExist
if not exist "%1adapters" MKDIR "%1adapters"
if not exist "%1labs" MKDIR "%1labs"
echo Copying breeze client files into the breeze.js.bower repo
@echo on
XCOPY "%1..\breeze.js\build\*.js" "%1." /Y
XCOPY "%1.\breeze.dataService.mongo.js" "%1adapters" /Y
XCOPY "%1.\breeze.modelLibrary.backbone.js" "%1adapters" /Y
DEL "%1.\breeze.dataService.mongo.js" 2>nul
DEL "%1.\breeze.modelLibrary.backbone.js" 2>nul
XCOPY "%1..\breeze.js.labs\*.js" "%1labs" /Y
XCOPY "%1..\breeze.js.labs\*.css" "%1labs" /Y
@echo off
REM Exclude certain files
@echo on
DEL "%1.\gulpfile.js" 2>nul
DEL "%1labs\b00_breeze.modelLibrary.new-backingstore.js" 2>nul
DEL "%1labs\breeze.ajaxrestinterceptor.js" 2>nul
DEL "%1labs\breeze.to$q.shim.js" 2>nul
@echo off
@echo.
@echo CONFIRM that all files copied successfully
:done
@echo.
pause