feature/csv-import-asset-library
jfrocha 2022-07-15 14:14:02 +02:00
parent 6d7896b0b2
commit c6c23da869
1 changed files with 69 additions and 69 deletions

View File

@ -1,69 +1,69 @@
#!/bin/bash #!/bin/bash
# Ensure folders are existing # Ensure folders are existing
if [ ! -d public/js ]; then if [ ! -d public/js ]; then
mkdir public/js mkdir public/js
else else
find -L public/js -type l -exec rm {} \; find -L public/js -type l -exec rm {} \;
fi fi
if [ ! -d public/css ]; then if [ ! -d public/css ]; then
mkdir public/css mkdir public/css
else else
find -L public/css -type l -exec rm {} \; find -L public/css -type l -exec rm {} \;
fi fi
if [ ! -d public/flags ]; then if [ ! -d public/flags ]; then
mkdir public/flags mkdir public/flags
else else
find -L public/flags -type l -exec rm {} \; find -L public/flags -type l -exec rm {} \;
fi fi
if [ ! -d public/views/dialogs ]; then if [ ! -d public/views/dialogs ]; then
mkdir -p public/views/dialogs mkdir -p public/views/dialogs
else else
find -L public/views -type l -exec rm {} \; find -L public/views -type l -exec rm {} \;
fi fi
if [ ! -d public/views/partials ]; then if [ ! -d public/views/partials ]; then
mkdir -p public/views/partials mkdir -p public/views/partials
else else
find -L public/views -type l -exec rm {} \; find -L public/views -type l -exec rm {} \;
fi fi
if [ ! -d public/img ]; then if [ ! -d public/img ]; then
mkdir public/img mkdir public/img
else else
find -L public/img -type l -exec rm {} \; find -L public/img -type l -exec rm {} \;
fi fi
# Link modules resources. TODO: Replace with Grunt tasks to minify the JS and CSS. # Link modules resources. TODO: Replace with Grunt tasks to minify the JS and CSS.
cd public/views/ && find ../../node_modules/ng_backoffice/views -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null 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 cd dialogs/ && find ../../../node_modules/ng_backoffice/views/dialogs -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null
#cd ../partials/ && find ../../../node_modules/ng_backoffice/views/partials -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null #cd ../partials/ && find ../../../node_modules/ng_backoffice/views/partials -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null
cd ../../js/ && find ../../node_modules/ng_backoffice/src -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null cd ../../js/ && find ../../node_modules/ng_backoffice/src -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
cd ../css/ && find ../../node_modules/ng_backoffice/css -name "*" -exec ln -s {} \; 2>/dev/null cd ../css/ && find ../../node_modules/ng_backoffice/css -name "*" -exec ln -s {} \; 2>/dev/null
cd ../img/ && find ../../node_modules/ng_backoffice/img -name "*" -exec ln -s {} \; 2>/dev/null cd ../img/ && find ../../node_modules/ng_backoffice/img -name "*" -exec ln -s {} \; 2>/dev/null
cd ../flags/ && find ../../node_modules/ng_backoffice/node_modules/flag-icons/flags -mindepth 1 -type d -exec ln -s {} \; 2>/dev/null cd ../flags/ && find ../../node_modules/ng_backoffice/node_modules/flag-icons/flags -mindepth 1 -type d -exec ln -s {} \; 2>/dev/null
cd ../js/ cd ../js/
mkdir -p anr mkdir -p anr
cd anr && find ../../../node_modules/ng_anr/src -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null cd anr && find ../../../node_modules/ng_anr/src -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
cd .. cd ..
cd ../views/ cd ../views/
mkdir -p anr mkdir -p anr
cd anr && find ../../../node_modules/ng_anr/views -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null cd anr && find ../../../node_modules/ng_anr/views -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
cd .. cd ..
cd ../css/ cd ../css/
mkdir -p anr mkdir -p anr
cd anr && find ../../../node_modules/ng_anr/css -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null cd anr && find ../../../node_modules/ng_anr/css -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
cd .. cd ..
cd ../.. cd ../..
pushd node_modules/ng_backoffice pushd node_modules/ng_backoffice
grunt concat grunt concat
popd popd