2016-04-13 14:58:41 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-04-26 15:55:13 +02:00
|
|
|
# Ensure folders are existing
|
2016-04-13 14:58:41 +02:00
|
|
|
if [ ! -d public/js ]; then
|
|
|
|
mkdir public/js
|
2016-07-28 14:29:43 +02:00
|
|
|
else
|
|
|
|
find -L public/js -type l -exec rm {} \;
|
2016-04-13 14:58:41 +02:00
|
|
|
fi
|
|
|
|
|
2016-04-22 15:51:07 +02:00
|
|
|
if [ ! -d public/css ]; then
|
|
|
|
mkdir public/css
|
2016-07-28 14:29:43 +02:00
|
|
|
else
|
|
|
|
find -L public/css -type l -exec rm {} \;
|
2016-04-22 15:51:07 +02:00
|
|
|
fi
|
2016-08-23 14:38:51 +02:00
|
|
|
if [ ! -d public/views/dialogs ]; then
|
2016-04-14 10:34:14 +02:00
|
|
|
mkdir -p public/views/dialogs
|
2016-07-28 14:29:43 +02:00
|
|
|
else
|
2016-08-23 14:38:51 +02:00
|
|
|
find -L public/views -type l -exec rm {} \;
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d public/views/partials ]; then
|
|
|
|
mkdir -p public/views/partials
|
|
|
|
else
|
|
|
|
find -L public/views -type l -exec rm {} \;
|
2016-04-13 14:58:41 +02:00
|
|
|
fi
|
|
|
|
|
2016-04-13 17:03:50 +02:00
|
|
|
if [ ! -d public/img ]; then
|
|
|
|
mkdir public/img
|
2016-07-28 14:29:43 +02:00
|
|
|
else
|
|
|
|
find -L public/img -type l -exec rm {} \;
|
2016-04-13 17:03:50 +02:00
|
|
|
fi
|
|
|
|
|
2016-04-26 15:55:13 +02:00
|
|
|
# Link modules resources
|
2016-04-13 14:58:41 +02:00
|
|
|
if [ -d node_modules/ng_backoffice ]; then
|
2016-04-26 16:23:48 +02:00
|
|
|
cd public/views/ && find ../../node_modules/ng_backoffice/views -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null
|
|
|
|
cd dialogs/ && find ../../../node_modules/ng_backoffice/views/dialogs -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null
|
2016-08-23 14:38:51 +02:00
|
|
|
cd ../partials/ && find ../../../node_modules/ng_backoffice/views/partials -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null
|
2016-06-07 17:00:55 +02:00
|
|
|
cd ../../js/ && find ../../node_modules/ng_backoffice/src -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
2016-06-29 11:46:42 +02:00
|
|
|
cd ../css/ && find ../../node_modules/ng_backoffice/css -name "*" -exec ln -s {} \; 2>/dev/null
|
2016-04-26 16:23:48 +02:00
|
|
|
cd ../img/ && find ../../node_modules/ng_backoffice/img -name "*" -exec ln -s {} \; 2>/dev/null
|
2016-08-26 16:38:48 +02:00
|
|
|
|
|
|
|
if [ -d ../../node_modules/ng_anr ]; then
|
|
|
|
cd ../js/
|
|
|
|
mkdir -p anr
|
|
|
|
cd anr && find ../../../node_modules/ng_anr/src -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
|
|
|
cd ..
|
2016-08-30 09:45:55 +02:00
|
|
|
|
|
|
|
cd ../views/
|
|
|
|
mkdir -p anr
|
|
|
|
cd anr && find ../../../node_modules/ng_anr/views -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
|
|
|
cd ..
|
2016-09-28 09:19:12 +02:00
|
|
|
|
|
|
|
cd ../css/
|
|
|
|
mkdir -p anr
|
|
|
|
cd anr && find ../../../node_modules/ng_anr/css -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
|
|
|
cd ..
|
2016-08-26 16:38:48 +02:00
|
|
|
fi
|
|
|
|
|
2016-04-26 16:23:48 +02:00
|
|
|
cd ../..
|
2016-04-13 17:03:50 +02:00
|
|
|
|
|
|
|
pushd node_modules/ng_backoffice
|
2016-10-06 11:19:13 +02:00
|
|
|
../.bin/grunt concat
|
2016-04-13 17:03:50 +02:00
|
|
|
popd
|
2016-04-13 14:58:41 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d node_modules/ng_client ]; then
|
2016-04-26 16:23:48 +02:00
|
|
|
cd public/views/ && find ../../node_modules/ng_client/views -name "*.html" -exec ln -s {} \; 2>/dev/null
|
2016-08-31 16:07:40 +02:00
|
|
|
cd dialogs/ && find ../../../node_modules/ng_client/views/dialogs -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null
|
|
|
|
cd ../../js/ && find ../../node_modules/ng_client/src -name "*" -exec ln -s {} \; 2>/dev/null
|
2016-08-26 10:07:55 +02:00
|
|
|
cd ../css/ && find ../../node_modules/ng_client/css -name "*" -exec ln -s {} \; 2>/dev/null
|
2016-08-26 10:01:09 +02:00
|
|
|
cd ../img/ && find ../../node_modules/ng_client/img -name "*" -exec ln -s {} \; 2>/dev/null
|
2016-08-26 16:38:48 +02:00
|
|
|
|
|
|
|
if [ -d ../../node_modules/ng_anr ]; then
|
|
|
|
cd ../js/
|
|
|
|
mkdir -p anr
|
|
|
|
cd anr && find ../../../node_modules/ng_anr/src -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
|
|
|
cd ..
|
2016-08-30 09:45:55 +02:00
|
|
|
|
|
|
|
cd ../views/
|
|
|
|
mkdir -p anr
|
|
|
|
cd anr && find ../../../node_modules/ng_anr/views -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
|
|
|
cd ..
|
2016-09-28 09:19:12 +02:00
|
|
|
|
|
|
|
cd ../css/
|
|
|
|
mkdir -p anr
|
|
|
|
cd anr && find ../../../node_modules/ng_anr/css -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
|
|
|
cd ..
|
2016-08-26 16:38:48 +02:00
|
|
|
fi
|
|
|
|
|
2016-04-26 16:23:48 +02:00
|
|
|
cd ../..
|
2016-04-13 17:03:50 +02:00
|
|
|
|
2016-06-29 11:46:42 +02:00
|
|
|
pushd node_modules/ng_client
|
2016-10-06 11:19:13 +02:00
|
|
|
../.bin/grunt concat
|
2016-04-13 17:03:50 +02:00
|
|
|
popd
|
2016-04-13 14:58:41 +02:00
|
|
|
fi
|
|
|
|
|