mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
* fix local adf script + attach _LOCAL to the local created libraries * fix redirect login for SSO * optimise package.json
14 lines
511 B
Bash
Executable File
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
|