reagent/prepare-tests.sh
Juho Teperi c68f5a88f4 Optimize node modules, remove old stuff
- Removed webpack build for now, not up-to-date, can be added later if
needed
- Share node modules using symlinks for envs that use the same packages
2017-10-13 16:42:25 +03:00

24 lines
443 B
Bash
Executable File

#!/bin/bash
npm install
echo
# Symlinked node_modules, package.json and package-lock.json
# are used to share node_modules between environments that
# use the same packages.
for env in test-environments/*; do
name=$(basename "$env")
(
cd "$env"
if [[ ! -L node_modules ]]; then
echo "Install $name packages"
npm install
else
echo "$name uses $(readlink node_modules)"
fi
)
echo
done