Skip to content

Commit ca16fc2

Browse files
committed
build: fix and document the symlinks scripts for Windows
Closes angular#10213
1 parent 9edea0b commit ca16fc2

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

DEVELOPER.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ use in these instructions.
7474
*Option 2*: defining a bash alias like `alias nbin='PATH=$(npm bin):$PATH'` as detailed in this
7575
[Stackoverflow answer](http://stackoverflow.com/questions/9679932/how-to-use-package-installed-locally-in-node-modules/15157360#15157360) and used like this: e.g., `nbin gulp build`.
7676

77+
## Windows only
78+
79+
In order to create the right symlinks, run **as administrator**:
80+
```shell
81+
./scripts/windows/create-symlinks.sh
82+
```
83+
84+
Before submitting a PR, do not forget to remove them:
85+
```shell
86+
./scripts/windows/remove-symlinks.sh
87+
```
88+
7789
## Building
7890

7991
To build Angular run:

scripts/windows/create-symlinks.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
cd `dirname $0`
44

5-
while read PACKAGE
5+
while read RAW_PACKAGE
66
do
7+
PACKAGE=${RAW_PACKAGE: : -1}
78
DESTDIR=./../../modules/\@angular/${PACKAGE}/src
89
mv ${DESTDIR}/facade ${DESTDIR}/facade.old
910
cmd <<< "mklink \"..\\..\\modules\\\@angular\\"${PACKAGE}"\\src\\facade\" \"..\\..\\facade\\src\\\""

scripts/windows/remove-symlinks.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
cd `dirname $0`
44

5-
while read PACKAGE
5+
while read RAW_PACKAGE
66
do
7+
PACKAGE=${RAW_PACKAGE: : -1}
78
DESTDIR=./../../modules/\@angular/${PACKAGE}/src
89
rm ${DESTDIR}/facade
910
mv ${DESTDIR}/facade.old ${DESTDIR}/facade

0 commit comments

Comments
 (0)