-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathlink-api-specifications.bat
More file actions
46 lines (42 loc) · 1.26 KB
/
link-api-specifications.bat
File metadata and controls
46 lines (42 loc) · 1.26 KB
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
@ECHO ON
echo "LINKING API-SPECIFICATIONS FOR WINDOWS"
:: ********************************************************
:: First unlink to ensure that any previous links is removed
:: ********************************************************
pushd backend
call yarn unlink api-specifications
:: back to the root of the project
popd
pushd frontend
call yarn unlink api-specifications
:: back to the root of the project
popd
pushd api-specifications
call yarn unlink
cd dist
call yarn unlink
:: back to the root of the project
popd
:: ********************************************************
:: Install dependencies for the 'api-specifications' package,
:: compiles it, and creates a symbolic link to the dist/ folder.
:: ********************************************************
pushd api-specifications
call yarn install
call yarn run compile
cd dist
call yarn link
:: back to the root of the project
popd
:: ********************************************************
:: Finally, link the 'api-specifications' package
:: to the 'backend' and 'frontend' projects.
:: ********************************************************
pushd backend
call yarn link api-specifications
:: back to the root of the project
popd
pushd frontend
call yarn link api-specifications
:: back to the root of the project
popd