Skip to content

Commit b6d365e

Browse files
committed
fix dev demo
1 parent 777b662 commit b6d365e

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node_modules
22
plugins/*
3-
!plugins/installplugins.sh
3+
!plugins/install-plugins.sh
44
adapters/*
55
!adapters/install-adapters.sh

adminforth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"--comment_postinstall": "postinstall executed after package installed in other project package and when we do npm ci in the package",
2626
"postinstall": "if test -d ./dist/spa/; then cd ./dist/spa/ && npm ci && echo 'installed spa dependencies'; fi",
2727
"install-plugins": "cd ../plugins && sh install-plugins.sh",
28-
"install-adapters": "cd ./adapters && sh install-adapters.sh"
28+
"install-adapters": "cd ../adapters && sh install-adapters.sh"
2929
},
3030
"exports": {
3131
".": {

plugins/install-plugins.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
PLUGINS="adminforth-audit-log adminforth-email-password-reset adminforth-foreign-inline-list \
2+
adminforth-i18n adminforth-import-export adminforth-text-complete adminforth-open-signup \
3+
adminforth-rich-editor adminforth-two-factors-auth adminforth-upload"
4+
5+
# for each plugin
6+
for plugin in $PLUGINS; do
7+
8+
if [ -d "$plugin/.git" ]; then
9+
echo "Repository for $plugin exists. Pulling latest changes..."
10+
cd "$plugin"
11+
git pull
12+
else
13+
echo "Repository for $plugin does not exist. Cloning..."
14+
git clone git@github.com:devforth/$plugin.git
15+
cd $plugin
16+
fi
17+
18+
npm ci
19+
cd ..
20+
done
21+
22+

0 commit comments

Comments
 (0)