mirror of
https://github.com/visgl/luma.gl.git
synced 2026-01-18 14:03:42 +00:00
26 lines
480 B
Bash
Executable File
26 lines
480 B
Bash
Executable File
#!/bin/sh
|
|
# Script to bootstrap repo for development
|
|
|
|
set -e
|
|
|
|
# install dependencies
|
|
yarn
|
|
|
|
ROOT_NODE_MODULES_DIR=`pwd`/node_modules
|
|
|
|
cd modules
|
|
for D in *; do (
|
|
[ -d $D ]
|
|
cd $D
|
|
|
|
# create symlink to dev dependencies at root
|
|
# this is a bug of yarn: https://github.com/yarnpkg/yarn/issues/4964
|
|
# TODO - remove when fixed
|
|
mkdir -p node_modules
|
|
rm -rf ./node_modules/.bin
|
|
ln -sf $ROOT_NODE_MODULES_DIR/.bin ./node_modules
|
|
); done
|
|
|
|
# build the submodules
|
|
npm run build
|