Skip to content

Commit

Permalink
added web as submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed Apr 26, 2024
1 parent aa9ac94 commit a072922
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "src/modules"]
path = src/modules
url = https://github.com/AppiumTestDistribution/device-farm-pro.git
[submodule "dashboard-frontend"]
path = dashboard-frontend
url = https://github.com/AppiumTestDistribution/appium-dashboard.git
22 changes: 14 additions & 8 deletions buildAndCopyWeb.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
cd appium-dashboard
npm install --force
npm run build
cd ..
rm -rf src/public
mkdir src/public
cp -R ./appium-dashboard/dist/* src/public/
echo "Build date - `date` by `whoami`" > src/public/version.txt
if [ -d "dashboard-web" ]; then
# shellcheck disable=SC2164
cd dashboard-frontend
npm install --force
npm run build
# shellcheck disable=SC2103
cd ..
rm -rf src/public
mkdir src/public
cp -R ./dashboard-frontend/dist/* src/public/
echo "Build date - `date` by `whoami`" > src/public/version.txt
else
echo "Directory dashboard-web does not exist."
fi
1 change: 1 addition & 0 deletions dashboard-frontend
Submodule dashboard-frontend added at 95681b

0 comments on commit a072922

Please sign in to comment.