-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·34 lines (34 loc) · 860 Bytes
/
setup.sh
File metadata and controls
executable file
·34 lines (34 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
echo "Welcome to dcx-react-library"
echo "This script will setup your environment"
echo "removing node_modules from dcx-react-library..."
rm -rf node_modules/
echo "installing library for dcx-react-library"
yarn install
echo "unlinking previous link for react,react-dom, dcx-react-library"
yarn unlink
cd node_modules/react
yarn unlink
cd ../../node_modules/react-dom
yarn unlink
cd ../../
echo "building library..."
rm -rf dist/
yarn build
echo "link library"
yarn link
echo "link react"
cd node_modules/react
yarn link
echo "link react-dom"
cd ../../node_modules/react-dom
yarn link
echo "removing node_modules from the example folder..."
cd ../../example
rm -rf node_modules/
echo "installing dependencies..."
yarn install
echo "linking library dependencies..."
yarn link "@capgeminiuk/dcx-react-library"
yarn link "react"
yarn link "react-dom"
yarn start