-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·23 lines (19 loc) · 875 Bytes
/
deploy.sh
File metadata and controls
executable file
·23 lines (19 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# A simple helper to build & copy all widgets to the Recogito working folder.
# Use at your own risk!
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo 'Building activity stats page'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
(cd ./stats/activity ; npm run build )
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo 'Building entity stats page'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
( cd ./stats/entity ; npm run build )
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo 'Done. Removing previous build from Recogito'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
rm ../recogito2/public/javascripts/widgets/*.js
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo 'Copying files to Recogito'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
cp ./stats/activity/dist/*.js ../recogito2/public/javascripts/widgets/.
cp ./stats/entity/dist/*.js ../recogito2/public/javascripts/widgets/.