build converse another way, and upgrade to v10
This commit is contained in:
parent
1d7248916e
commit
1d03e29578
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ support/documentation/content/translations/**/*.md
|
|||||||
support/documentation/i18n
|
support/documentation/i18n
|
||||||
public
|
public
|
||||||
vendor/prosody-appimage
|
vendor/prosody-appimage
|
||||||
|
vendor/conversejs-*
|
||||||
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,6 +1,3 @@
|
|||||||
[submodule "vendor/converse.js"]
|
|
||||||
path = vendor/converse.js
|
|
||||||
url = https://github.com/conversejs/converse.js.git
|
|
||||||
[submodule "documentation/themes/hugo-theme-learn"]
|
[submodule "documentation/themes/hugo-theme-learn"]
|
||||||
path = support/documentation/themes/hugo-theme-learn
|
path = support/documentation/themes/hugo-theme-learn
|
||||||
url = https://github.com/matcornic/hugo-theme-learn.git
|
url = https://github.com/matcornic/hugo-theme-learn.git
|
||||||
|
@ -3,10 +3,13 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
CONVERSE_VERSION="v10.1.5"
|
||||||
|
CONVERSE_REPO="https://github.com/conversejs/converse.js.git"
|
||||||
|
|
||||||
rootdir="$(pwd)"
|
rootdir="$(pwd)"
|
||||||
src_dir="$rootdir/conversejs"
|
src_dir="$rootdir/conversejs"
|
||||||
converse_src_dir="$rootdir/vendor/converse.js"
|
converse_src_dir="$src_dir/conversejs-$CONVERSE_VERSION"
|
||||||
converse_build_dir="$rootdir/build/converse.js"
|
converse_build_dir="$rootdir/build/conversejs"
|
||||||
converse_destination_dir="$rootdir/dist/client/conversejs"
|
converse_destination_dir="$rootdir/dist/client/conversejs"
|
||||||
|
|
||||||
if [[ ! -d $src_dir ]]; then
|
if [[ ! -d $src_dir ]]; then
|
||||||
@ -15,8 +18,8 @@ if [[ ! -d $src_dir ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d "$converse_src_dir" ]]; then
|
if [[ ! -d "$converse_src_dir" ]]; then
|
||||||
echo "ConverseJS sources are not here. Please be sure to have all the submodules downloaded ('git pull --recurse-submodules')."
|
git clone --depth=1 --branch $CONVERSE_VERSION $CONVERSE_REPO $converse_src_dir
|
||||||
exit 1
|
rm -rf "$converse_build_dir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if cmp -s "$converse_src_dir/package.json" "$converse_build_dir/package.json"; then
|
if cmp -s "$converse_src_dir/package.json" "$converse_build_dir/package.json"; then
|
||||||
@ -38,7 +41,7 @@ mv "$converse_build_dir/custom/webpack.livechat.js" "$converse_build_dir/"
|
|||||||
if [[ ! -d "$converse_build_dir/node_modules" ]]; then
|
if [[ ! -d "$converse_build_dir/node_modules" ]]; then
|
||||||
echo "Missing node_modules directory, seems we have to call the makefile..."
|
echo "Missing node_modules directory, seems we have to call the makefile..."
|
||||||
cd "$converse_build_dir"
|
cd "$converse_build_dir"
|
||||||
make node_modules src/*
|
make dist
|
||||||
cd $rootdir
|
cd $rootdir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
1
vendor/converse.js
vendored
1
vendor/converse.js
vendored
@ -1 +0,0 @@
|
|||||||
Subproject commit d5deed087195e9835452503d31fe51e5fef53b10
|
|
Loading…
Reference in New Issue
Block a user