Skip to content

Commit

Permalink
Revert "Switch from NPM to Yarn for build scripts"
Browse files Browse the repository at this point in the history
This reverts commit bd8b733.
  • Loading branch information
Pierre Cauchois committed Mar 25, 2017
1 parent 5e5c4a5 commit 43131f1
Show file tree
Hide file tree
Showing 14 changed files with 137 additions and 10,955 deletions.
78 changes: 35 additions & 43 deletions build/dev-setup.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,82 +11,74 @@ for %%i in ("%node-root%") do set node-root=%%~fi
cd %node-root%\common\core
echo.
echo -- Creating links for %cd% --
call yarn link
call yarn install
call npm link

cd %node-root%\common\transport\amqp
echo.
echo -- Creating links for %cd% --
call yarn link azure-iot-common
call yarn link
call yarn install
call npm link azure-iot-common
call npm link

cd %node-root%\common\transport\http
echo.
echo -- Creating links for %cd% --
call yarn link azure-iot-common
call yarn link
call yarn install
call npm link azure-iot-common
call npm link

cd %node-root%\device\core
echo.
echo -- Creating links for %cd% --
call yarn link azure-iot-http-base
call yarn link azure-iot-common
call yarn link
call yarn install
call npm link azure-iot-http-base
call npm link azure-iot-common
call npm link

cd %node-root%\service
echo.
echo -- Creating links for %cd% --
call yarn link azure-iot-common
call yarn link azure-iot-amqp-base
call yarn link azure-iot-http-base
call yarn link
call yarn install
call npm link azure-iot-common
call npm link azure-iot-amqp-base
call npm link azure-iot-http-base
call npm link

cd %node-root%\device\transport\amqp
echo.
echo -- Creating links for %cd% --
call yarn link azure-iot-amqp-base
call yarn link azure-iot-common
call yarn link azure-iot-device
call yarn link azure-iothub
call yarn link
call yarn install
call npm link azure-iot-amqp-base
call npm link azure-iot-common
call npm link azure-iot-device
call npm link azure-iothub
call npm link

cd %node-root%\device\transport\http
echo.
echo -- Creating links for %cd% --
call yarn link azure-iot-http-base
call yarn link azure-iot-common
call yarn link azure-iot-device
call yarn link azure-iothub
call yarn link
call yarn install
call npm link azure-iot-http-base
call npm link azure-iot-common
call npm link azure-iot-device
call npm link azure-iothub
call npm link

cd %node-root%\device\transport\mqtt
echo.
echo -- Creating links for %cd% --
call yarn link azure-iot-common
call yarn link azure-iot-device
call yarn link azure-iothub
call yarn link
call yarn install
call npm link azure-iot-common
call npm link azure-iot-device
call npm link azure-iothub
call npm link

cd %node-root%\e2etests
echo.
echo -- Creating links for %cd% --
call yarn link azure-iot-common
call yarn link azure-iot-device
call yarn link azure-iot-device-amqp
call yarn link azure-iot-device-http
call yarn link azure-iot-device-mqtt
call yarn link azure-iothub
call yarn install
call npm link azure-iot-common
call npm link azure-iot-device
call npm link azure-iot-device-amqp
call npm link azure-iot-device-http
call npm link azure-iot-device-mqtt
call npm link azure-iothub
call npm install

cd %node-root%\build\tools
echo .
echo -- Setting up links for build tools --
call yarn link azure-iothub
call yarn install
call npm link azure-iothub
call npm install
78 changes: 35 additions & 43 deletions build/dev-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,81 +7,73 @@ node_root=$(cd "$(dirname "$0")/.." && pwd)

cd $node_root/common/core
echo "\n-- Creating links for `pwd` --"
yarn link
yarn install
npm link
[ $? -eq 0 ] || exit $?

cd $node_root/common/transport/amqp
echo "\n-- Creating links for `pwd` --"
yarn link azure-iot-common
yarn link
yarn install
npm link azure-iot-common
npm link
[ $? -eq 0 ] || exit $?

cd $node_root/common/transport/http
echo "\n-- Creating links for `pwd` --"
yarn link azure-iot-common
yarn link
yarn install
npm link azure-iot-common
npm link
[ $? -eq 0 ] || exit $?

cd $node_root/device/core
echo "\n-- Creating links for `pwd` --"
yarn link azure-iot-http-base
yarn link azure-iot-common
yarn link
yarn install
npm link azure-iot-http-base
npm link azure-iot-common
npm link
[ $? -eq 0 ] || exit $?

cd $node_root/service
echo "\n-- Creating links for `pwd` --"
yarn link azure-iot-common
yarn link azure-iot-amqp-base
yarn link azure-iot-http-base
yarn link
yarn install
npm link azure-iot-common
npm link azure-iot-amqp-base
npm link azure-iot-http-base
npm link
[ $? -eq 0 ] || exit $?

cd $node_root/device/transport/amqp
echo "\n-- Creating links for `pwd` --"
yarn link azure-iot-amqp-base
yarn link azure-iot-common
yarn link azure-iot-device
yarn link azure-iothub
yarn link
yarn install
npm link azure-iot-amqp-base
npm link azure-iot-common
npm link azure-iot-device
npm link azure-iothub
npm link
[ $? -eq 0 ] || exit $?

cd $node_root/device/transport/http
echo "\n-- Creating links for `pwd` --"
yarn link azure-iot-http-base
yarn link azure-iot-common
yarn link azure-iot-device
yarn link azure-iothub
yarn link
yarn install
npm link azure-iot-http-base
npm link azure-iot-common
npm link azure-iot-device
npm link azure-iothub
npm link
[ $? -eq 0 ] || exit $?

cd $node_root/device/transport/mqtt
echo "\n-- Creating links for `pwd` --"
yarn link azure-iot-common
yarn link azure-iot-device
yarn link azure-iothub
yarn link
yarn install
npm link azure-iot-common
npm link azure-iot-device
npm link azure-iothub
npm link
[ $? -eq 0 ] || exit $?

cd $node_root/e2etests
echo "\n-- Creating links for `pwd` --"
yarn link azure-iot-common
yarn link azure-iot-device
yarn link azure-iot-device-amqp
yarn link azure-iot-device-http
yarn link azure-iot-device-mqtt
yarn link azure-iothub
yarn install
npm link azure-iot-common
npm link azure-iot-device
npm link azure-iot-device-amqp
npm link azure-iot-device-http
npm link azure-iot-device-mqtt
npm link azure-iothub
npm install

cd $node_root/build/tools
echo "\n-- Creating links for `pwd` --"
yarn link azure-iothub
yarn install
npm link azure-iothub
npm install
68 changes: 34 additions & 34 deletions build/dev-teardown.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license infounlinkation.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.

@setlocal
@echo off
Expand All @@ -11,64 +11,64 @@ for %%i in ("%node-root%") do set node-root=%%~fi
cd %node-root%\build\tools
echo .
echo -- Removing links for build tools --
call yarn unlink azure-iothub
call npm rm azure-iothub

cd %node-root%\e2etests
echo.
echo -- Removing links for %cd% --
call yarn unlink azure-iothub
call yarn unlink azure-iot-device-mqtt
call yarn unlink azure-iot-device-http
call yarn unlink azure-iot-device-amqp
call yarn unlink azure-iot-device
call yarn unlink azure-iot-common
call npm rm azure-iothub
call npm rm azure-iot-device-mqtt
call npm rm azure-iot-device-http
call npm rm azure-iot-device-amqp
call npm rm azure-iot-device
call npm rm azure-iot-common

cd %node-root%\device\transport\mqtt
echo -- Removing links for %cd% --
call yarn unlink
call yarn unlink azure-iothub
call yarn unlink azure-iot-device
call yarn unlink azure-iot-common
call npm rm
call npm rm azure-iothub
call npm rm azure-iot-device
call npm rm azure-iot-common

cd %node-root%\device\transport\http
echo -- Removing links for %cd% --
call yarn unlink
call yarn unlink azure-iothub
call yarn unlink azure-iot-device
call yarn unlink azure-iot-common
call yarn unlink azure-iot-http-base
call npm rm
call npm rm azure-iothub
call npm rm azure-iot-device
call npm rm azure-iot-common
call npm rm azure-iot-http-base

cd %node-root%\device\transport\amqp
echo -- Removing links for %cd% --
call yarn unlink
call yarn unlink azure-iothub
call yarn unlink azure-iot-device
call yarn unlink azure-iot-common
call yarn unlink azure-iot-amqp-base
call npm rm
call npm rm azure-iothub
call npm rm azure-iot-device
call npm rm azure-iot-common
call npm rm azure-iot-amqp-base

cd %node-root%\service
echo -- Removing links for %cd% --
call yarn unlink
call yarn unlink azure-iot-http-base
call yarn unlink azure-iot-amqp-base
call yarn unlink azure-iot-common
call npm rm
call npm rm azure-iot-http-base
call npm rm azure-iot-amqp-base
call npm rm azure-iot-common

cd %node-root%\device\core
echo -- Removing links for %cd% --
call yarn unlink
call yarn unlink azure-iot-common
call yarn unlink azure-iot-http-base
call npm rm
call npm rm azure-iot-common
call npm rm azure-iot-http-base

cd %node-root%\common\transport\http
echo -- Removing links for %cd% --
call yarn unlink
call yarn unlink azure-iot-common
call npm rm
call npm rm azure-iot-common

cd %node-root%\common\transport\amqp
echo -- Removing links for %cd% --
call yarn unlink
call yarn unlink azure-iot-common
call npm rm
call npm rm azure-iot-common

cd %node-root%\common\core
echo -- Removing links for %cd% --
call yarn unlink
call npm rm
Loading

0 comments on commit 43131f1

Please sign in to comment.