alfresco-content-app/scripts/install-local-js-api.sh
Martin Muller b09c93b103
Git Submodules improvements (#1300)
* fix local adf script + attach _LOCAL to the local created libraries

* fix redirect login for SSO

* optimise package.json
2020-01-17 17:51:40 +01:00

14 lines
511 B
Bash
Executable File

#!/bin/bash
rm -rf node_modules
./alfresco-js-api/scripts/build.sh
npm install
rm -rf node_modules/@alfresco/js-api
mkdir -p node_modules/@alfresco/js-api
cp -rf alfresco-js-api/dist/package/* node_modules/@alfresco/js-api
LOCAL=LOCAL
echo "== Rename local JS API version with attaching _$LOCAL ==="
VERSION=$(node -p "require('./node_modules/@alfresco/js-api/package.json').version")
sed -i'' -e "s#\"version\": \"$VERSION\"#\"version\": \"${VERSION}_$LOCAL\"#g" ./node_modules/@alfresco/js-api/package.json