build: fix and document the symlinks scripts for Windows

Closes #10213
This commit is contained in:
mlaval 2016-07-21 18:01:47 +02:00
parent 9edea0b139
commit ca16fc29a6
3 changed files with 16 additions and 2 deletions

View File

@ -74,6 +74,18 @@ use in these instructions.
*Option 2*: defining a bash alias like `alias nbin='PATH=$(npm bin):$PATH'` as detailed in this *Option 2*: defining a bash alias like `alias nbin='PATH=$(npm bin):$PATH'` as detailed in this
[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`. [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`.
## Windows only
In order to create the right symlinks, run **as administrator**:
```shell
./scripts/windows/create-symlinks.sh
```
Before submitting a PR, do not forget to remove them:
```shell
./scripts/windows/remove-symlinks.sh
```
## Building ## Building
To build Angular run: To build Angular run:

View File

@ -2,8 +2,9 @@
cd `dirname $0` cd `dirname $0`
while read PACKAGE while read RAW_PACKAGE
do do
PACKAGE=${RAW_PACKAGE: : -1}
DESTDIR=./../../modules/\@angular/${PACKAGE}/src DESTDIR=./../../modules/\@angular/${PACKAGE}/src
mv ${DESTDIR}/facade ${DESTDIR}/facade.old mv ${DESTDIR}/facade ${DESTDIR}/facade.old
cmd <<< "mklink \"..\\..\\modules\\\@angular\\"${PACKAGE}"\\src\\facade\" \"..\\..\\facade\\src\\\"" cmd <<< "mklink \"..\\..\\modules\\\@angular\\"${PACKAGE}"\\src\\facade\" \"..\\..\\facade\\src\\\""

View File

@ -2,8 +2,9 @@
cd `dirname $0` cd `dirname $0`
while read PACKAGE while read RAW_PACKAGE
do do
PACKAGE=${RAW_PACKAGE: : -1}
DESTDIR=./../../modules/\@angular/${PACKAGE}/src DESTDIR=./../../modules/\@angular/${PACKAGE}/src
rm ${DESTDIR}/facade rm ${DESTDIR}/facade
mv ${DESTDIR}/facade.old ${DESTDIR}/facade mv ${DESTDIR}/facade.old ${DESTDIR}/facade