# Build WikiSpeech Angular app Maven package wrapper

# Pull latest version of WikiSpeechNg Angular app
git submodule update --init --remote

# If this command returns an error with the advice to first commit or stash package-lock.json you may force this command
# (The package-lock.json might has been changed in the last build)
git submodule update --init --remote --force

# Build WikiSpeechNg Angular app
cd src/ng/WikiSpeechNg/
rm -r dist/
npm i
npm prune
npm audit fix
npm run build

# Build this Maven wrapper project
cd ../../..
mvn clean install


# Deploy release
mvn deploy

