mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-4535] cleanup unused dependencies (#3064)
* cleanup unused dependencies * more cleanup
This commit is contained in:
10
.github/actions/adf-linking/action.yml
vendored
10
.github/actions/adf-linking/action.yml
vendored
@@ -13,14 +13,10 @@ runs:
|
||||
echo "TEST_OPTS=--configuration=adfprod" >> $GITHUB_ENV
|
||||
echo "E2E_PROTRACTOR_OPTS=--with-local-adf" >> $GITHUB_ENV
|
||||
echo "E2E_TSCONFIG=tsconfig.e2e.adf.json" >> $GITHUB_ENV
|
||||
|
||||
BRANCH=`echo $COMMIT_MESSAGE | grep -o "\[link-adf\:[^]]*\]" | sed -e 's#\[link-adf:##g' | sed -e 's#\]##g'`
|
||||
echo "Checking out ADF's branch: ${BRANCH}" && \
|
||||
echo "Cloning ADF with branch ${BRANCH}" && \
|
||||
git clone https://github.com/Alfresco/alfresco-ng2-components.git --depth=1 --branch ${BRANCH} ../alfresco-ng2-components
|
||||
# ADF theming needs it the styling
|
||||
CWD=`pwd`
|
||||
cd ../alfresco-ng2-components
|
||||
npm install @angular/material
|
||||
cd $CWD
|
||||
else
|
||||
echo -e "\e[32mUsing ADF from installed node_modules.\e[0m"
|
||||
echo -e "Using ADF from installed node_modules."
|
||||
fi ;
|
||||
|
@@ -27,7 +27,7 @@ runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
uses: aws-actions/configure-aws-credentials@v2
|
||||
with:
|
||||
aws-access-key-id: ${{ inputs.aws-access-key-id }}
|
||||
aws-secret-access-key: ${{ inputs.aws-secret-access-key }}
|
||||
|
2
.github/actions/run-e2e/action.yml
vendored
2
.github/actions/run-e2e/action.yml
vendored
@@ -19,7 +19,7 @@ runs:
|
||||
shell: bash
|
||||
run: |
|
||||
./node_modules/.bin/tsc -p "./e2e/$E2E_TSCONFIG" || exit 1;
|
||||
./node_modules/.bin/http-server -c-1 $CONTENT_CE_DIST_PATH -p 4200 > /dev/null &\
|
||||
npx http-server -c-1 $CONTENT_CE_DIST_PATH -p 4200 > /dev/null &\
|
||||
|
||||
if [ ${{ inputs.test-runner }} == "playwright" ]; then
|
||||
echo "Running playwright tests with options ${{ inputs.options }}"
|
||||
|
@@ -27,7 +27,7 @@ runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
uses: aws-actions/configure-aws-credentials@v2
|
||||
with:
|
||||
aws-access-key-id: ${{ inputs.aws-access-key-id }}
|
||||
aws-secret-access-key: ${{ inputs.aws-secret-access-key }}
|
||||
|
27
angular.json
27
angular.json
@@ -238,24 +238,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lite-serve": {
|
||||
"builder": "@angular-custom-builders/lite-serve:dist-serve",
|
||||
"options": {
|
||||
"publicHost": "http://localhost:4200",
|
||||
"browserTarget": "content-ce:build"
|
||||
},
|
||||
"configurations": {
|
||||
"standalone": {
|
||||
"watch": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "content-ce:build"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
@@ -349,15 +331,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"e2elite": {
|
||||
"builder": "@angular-devkit/build-angular:protractor",
|
||||
"options": {
|
||||
"protractorConfig": "protractor.conf.js",
|
||||
"webdriverUpdate": false,
|
||||
"devServerTarget": "content-ce:lite-serve",
|
||||
"invertGrep": true
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-eslint/builder:lint",
|
||||
"options": {
|
||||
|
@@ -1,54 +0,0 @@
|
||||
let fallback = require('connect-history-api-fallback');
|
||||
require('@alfresco/adf-cli/tooling').dotenvConfig();
|
||||
var proxyMiddleware = require('http-proxy-middleware');
|
||||
|
||||
function getProxy(contentHost) {
|
||||
return {
|
||||
'/alfresco': {
|
||||
target: contentHost,
|
||||
secure: false,
|
||||
changeOrigin: true,
|
||||
// workaround for REPO-2260
|
||||
onProxyRes: function (proxyRes, req, res) {
|
||||
const header = proxyRes.headers['www-authenticate'];
|
||||
if (header && header.startsWith('Basic')) {
|
||||
proxyRes.headers['www-authenticate'] = 'x' + header;
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getMiddleWares() {
|
||||
var counter = 0;
|
||||
const proxies = {
|
||||
...getProxy(process.env.APP_CONFIG_ECM_HOST),
|
||||
};
|
||||
const appMiddlewares = Object.keys(proxies).reduce((accumulator, proxyName) => {
|
||||
counter++;
|
||||
return {
|
||||
...accumulator,
|
||||
[counter]: proxyMiddleware(proxyName, proxies[proxyName]),
|
||||
}
|
||||
}, {});
|
||||
counter++;
|
||||
|
||||
return {
|
||||
...appMiddlewares,
|
||||
[counter]: fallback({ index: '/index.html', verbose: true }),
|
||||
};
|
||||
}
|
||||
module.exports = {
|
||||
injectChanges: false, // workaround for Angular 2 styleUrls loading
|
||||
files: ['./**/*.{html,htm,css,js}'],
|
||||
watchOptions: {
|
||||
ignoreInitial: true,
|
||||
ignored: '*'
|
||||
},
|
||||
ghostMode: false,
|
||||
port: 4200,
|
||||
open: false,
|
||||
server: {
|
||||
middleware: getMiddleWares(),
|
||||
}
|
||||
};
|
1385
package-lock.json
generated
1385
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@@ -55,7 +55,6 @@
|
||||
"@ngrx/store": "^14.2.0",
|
||||
"@ngrx/store-devtools": "^14.2.0",
|
||||
"@ngx-translate/core": "^14.0.0",
|
||||
"@playwright/test": "^1.30.0",
|
||||
"minimatch-browser": "^1.0.0",
|
||||
"moment": "^2.29.4",
|
||||
"moment-es6": "1.0.0",
|
||||
@@ -67,7 +66,6 @@
|
||||
"devDependencies": {
|
||||
"@alfresco/adf-cli": "6.0.0-A.3-8351",
|
||||
"@alfresco/adf-testing": "6.0.0-A.3-8351",
|
||||
"@angular-custom-builders/lite-serve": "^0.2.3",
|
||||
"@angular-devkit/build-angular": "14.1.2",
|
||||
"@angular-eslint/builder": "^14.1.2",
|
||||
"@angular-eslint/eslint-plugin": "^14.1.2",
|
||||
@@ -77,6 +75,7 @@
|
||||
"@angular/cli": "14.1.2",
|
||||
"@angular/compiler-cli": "14.1.2",
|
||||
"@angular/language-service": "14.1.2",
|
||||
"@playwright/test": "^1.31.2",
|
||||
"@types/event-emitter": "^0.3.3",
|
||||
"@types/jasmine": "~3.6.0",
|
||||
"@types/jasminewd2": "^2.0.8",
|
||||
@@ -86,9 +85,7 @@
|
||||
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
||||
"@typescript-eslint/parser": "^5.48.2",
|
||||
"ajv-cli": "^4.2.0",
|
||||
"browser-sync": "^2.27.11",
|
||||
"commander": "^6.1.0",
|
||||
"connect-history-api-fallback": "^2.0.0",
|
||||
"cspell": "^6.23.0",
|
||||
"cypress": "^12.6.0",
|
||||
"dotenv": "8.2.0",
|
||||
@@ -102,11 +99,8 @@
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-rxjs": "^5.0.2",
|
||||
"eslint-plugin-unicorn": "^45.0.2",
|
||||
"http-server": "^14.1.1",
|
||||
"husky": "^8.0.2",
|
||||
"inquirer": "^9.1.4",
|
||||
"jasmine-core": "~4.5.0",
|
||||
"jasmine-marbles": "0.8.3",
|
||||
"jasmine-spec-reporter": "~5.0.0",
|
||||
"karma": "^6.4.1",
|
||||
"karma-chrome-launcher": "~3.1.1",
|
||||
@@ -115,7 +109,6 @@
|
||||
"karma-jasmine-html-reporter": "^2.0.0",
|
||||
"karma-mocha-reporter": "^2.2.5",
|
||||
"lint-staged": "^13.1.0",
|
||||
"lite-server": "^2.4.0",
|
||||
"ng-packagr": "^14.2.2",
|
||||
"node-stream-zip": "^1.14.0",
|
||||
"prettier": "2.8.3",
|
||||
@@ -129,7 +122,6 @@
|
||||
"ts-node": "^10.9.1",
|
||||
"tsconfig-paths": "4.1.1",
|
||||
"typescript": "4.7.4",
|
||||
"webdriver-manager": "12.1.8",
|
||||
"winston": "^3.8.2"
|
||||
"webdriver-manager": "12.1.8"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user