-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdev.sh
executable file
·37 lines (28 loc) · 933 Bytes
/
dev.sh
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
35
36
37
#!/bin/bash
set -e
SOURCE=src
DIST=dist
DIR_SASS=scss
DIR_CSS=css
DIR_FONTS=fonts
RESOURCES=resources
export NODE_ENV=development
export CONTENTFUL_SPACE=le2r9m8siffu
export CONTENTFUL_ACCESS_TOKEN=87cc9575c510bdf64212f7f3e21181d84dc8243fdfd75bf23949375aeb519dc8
export MESSAGE_SERVICE=http://localhost:8095/send/message/
export PHONEBACK_SERVICE=http://localhost:8095/request/phoneback
export APPOINTMENT_SERVICE=http://localhost:8095/book/appointment
if [ -d "$DIST" ]; then rm -Rf $DIST; fi
npm run lint
webpack --config webpack.config.dev.js --bail
# RESOURCES
cp -r $SOURCE/$DIR_SASS $DIST/$DIR_CSS
cp -r $SOURCE/$DIR_FONTS $DIST/$DIR_FONTS
cp -r $RESOURCES $DIST/$RESOURCES
# SEO
cp $SOURCE/favicon.ico $DIST
cp $SOURCE/sitemap.xml $DIST
cp $SOURCE/robots.txt $DIST
echo "----------------------------------------------";
echo " Build is successful!";
echo "----------------------------------------------";