#!/bin/bash


if [ ! -f package.json ];
then
	echo "in a angular project plz"
	exit 0
fi


if [ ! -d node_modules ];
then
    echo "node_modules missing, we'll install package first"
    npm install
fi

pushd node_modules/@lumed

rm -r admin/

cp -r ../../../adminModule/dist/admin/ .

popd


rm -r .angular/
