mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
remove submodules (#1440)
This commit is contained in:
parent
922605f0f5
commit
0b9df2e2c9
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -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
|
@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
git submodule update --init
|
@ -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",
|
||||
|
@ -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
|
@ -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
|
@ -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 ..
|
Loading…
x
Reference in New Issue
Block a user