remove submodules (#1440)

This commit is contained in:
Denys Vuika 2020-05-02 18:18:53 +01:00 committed by GitHub
parent 922605f0f5
commit 0b9df2e2c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 0 additions and 72 deletions

6
.gitmodules vendored
View File

@ -1,6 +0,0 @@
[submodule "alfresco-js-api"]
path = alfresco-js-api
url = https://github.com/Alfresco/alfresco-js-api
[submodule "alfresco-ng2-components"]
path = alfresco-ng2-components
url = https://github.com/Alfresco/alfresco-ng2-components

@ -1 +0,0 @@
Subproject commit a7e88e55269df1969c98340516290555738df18b

@ -1 +0,0 @@
Subproject commit 94e02c0552bf1cfd84af87a92fbf237ee75e5744

View File

@ -1,2 +0,0 @@
#!/bin/bash
git submodule update --init

View File

@ -13,8 +13,6 @@
"build.extensions": "npm run build.shared && npm run build.aos",
"build.app": "node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng build app",
"build": "npm run validate-config && npm run build.app -- --prod",
"build.js-api": "./scripts/install-local-js-api.sh && npm run build",
"build.adf": "./scripts/install-local-adf.sh && npm run build.extensions && npm run build.app",
"build.e2e": "npm run build.app -- --prod --configuration=e2e",
"test": "ng test app --code-coverage",
"test:ci": "npm run build.extensions && ng test adf-office-services-ext --watch=false && ng test app --code-coverage --watch=false",

View File

@ -1,29 +0,0 @@
#!/bin/bash
cd alfresco-ng2-components
npm install
echo "== install ADF libs =="
./scripts/build/build-core.sh
./scripts/build/build-content-services.sh
./scripts/build/build-extensions.sh
cd ..
echo "== copy ADF libs =="
rm -rf node_modules/@alfresco/adf-content-services
rm -rf node_modules/@alfresco/adf-core
rm -rf node_modules/@alfresco/adf-extensions
mkdir -p node_modules/@alfresco/adf-content-services
mkdir -p node_modules/@alfresco/adf-core
mkdir -p node_modules/@alfresco/adf-extensions
cp -rf alfresco-ng2-components/lib/dist/content-services/* node_modules/@alfresco/adf-content-services
cp -rf alfresco-ng2-components/lib/dist/core/* node_modules/@alfresco/adf-core
cp -rf alfresco-ng2-components/lib/dist/extensions/* node_modules/@alfresco/adf-extensions
LOCAL=LOCAL
echo "== Rename local ADF libs version with attaching _$LOCAL ==="
CORE_VERSION=$(node -p "require('./node_modules/@alfresco/adf-core/package.json').version")
echo "CORE_VERSION $CORE_VERSION"
sed -i'' -e "s#\"version\": \"$CORE_VERSION\"#\"version\": \"${CORE_VERSION}_$LOCAL\"#g" ./node_modules/@alfresco/adf-core/package.json
CONTENT_VERSION=$(node -p "require('./node_modules/@alfresco/adf-content-services/package.json').version")
sed -i'' -e "s#\"version\": \"$CONTENT_VERSION#\"version\": \"${CONTENT_VERSION}_$LOCAL#g" ./node_modules/@alfresco/adf-content-services/package.json
EXT_VERSION=$(node -p "require('./node_modules/@alfresco/adf-extensions/package.json').version")
sed -i'' -e "s#\"version\": \"$EXT_VERSION#\"version\": \"${EXT_VERSION}_$LOCAL#g" ./node_modules/@alfresco/adf-extensions/package.json

View File

@ -1,13 +0,0 @@
#!/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

View File

@ -1,18 +0,0 @@
#!/bin/bash
git pull
git submodule sync --recursive
git submodule update --init --recursive
# Go through all of the submodules switching them to their branches and updating them
echo
echo "Updating alfresco-js-api ..."
echo --------------------------
cd alfresco-js-api && git checkout master && git pull
cd ..
echo
echo "Updating alfresco-ng2-components ..."
echo --------------------------
cd alfresco-ng2-components && git checkout master && git pull
cd ..