2016-12-07 13:19:01 +01:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2016-12-07 18:24:48 +01:00
|
|
|
GREEN='\033[0;32m'
|
|
|
|
NC='\033[0m' # No Color
|
|
|
|
|
2017-01-15 17:57:43 +01:00
|
|
|
rm -f /usr/local/bin/strapi.js # Remove existing binary
|
2016-12-07 18:24:48 +01:00
|
|
|
echo "${GREEN}Installing dependencies..."
|
2016-12-07 13:19:01 +01:00
|
|
|
npm install
|
2016-12-07 18:24:48 +01:00
|
|
|
echo "${GREEN}Bootstraping packages and building dashboard...${NC}"
|
|
|
|
echo "This can take few minutes (2-3)"
|
|
|
|
node node_modules/lerna/bin/lerna bootstrap
|
2016-12-07 19:31:21 +01:00
|
|
|
echo "${GREEN}Linking Strapi CLI...${NC}"
|
|
|
|
cd packages/strapi
|
|
|
|
npm link
|