diff --git a/.gitmodules b/.gitmodules index dbbfe7e84..e69de29bb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/alfresco-js-api b/alfresco-js-api deleted file mode 160000 index a7e88e552..000000000 --- a/alfresco-js-api +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a7e88e55269df1969c98340516290555738df18b diff --git a/alfresco-ng2-components b/alfresco-ng2-components deleted file mode 160000 index 94e02c055..000000000 --- a/alfresco-ng2-components +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 94e02c0552bf1cfd84af87a92fbf237ee75e5744 diff --git a/init-submodules.sh b/init-submodules.sh deleted file mode 100755 index 9dcb97458..000000000 --- a/init-submodules.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -git submodule update --init diff --git a/package.json b/package.json index 84e1b8cbd..661f13806 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/install-local-adf.sh b/scripts/install-local-adf.sh deleted file mode 100755 index e1388b21e..000000000 --- a/scripts/install-local-adf.sh +++ /dev/null @@ -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 diff --git a/scripts/install-local-js-api.sh b/scripts/install-local-js-api.sh deleted file mode 100755 index 1a5885ea2..000000000 --- a/scripts/install-local-js-api.sh +++ /dev/null @@ -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 diff --git a/update-submodules.sh b/update-submodules.sh deleted file mode 100755 index a0335e740..000000000 --- a/update-submodules.sh +++ /dev/null @@ -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 ..