diff --git a/.github/actions/run-e2e/action.yml b/.github/actions/run-e2e/action.yml index ba96bb3e06..ced5a274eb 100644 --- a/.github/actions/run-e2e/action.yml +++ b/.github/actions/run-e2e/action.yml @@ -39,7 +39,7 @@ runs: echo "APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI={protocol}//{hostname}{:port}/assets/silent-refresh.html" } >> .env - npm start > /dev/null &\ + npm start content-ce > /dev/null &\ if [ ${{ inputs.test-runner }} == "playwright" ]; then echo "Running playwright tests with options ${{ inputs.options }}" diff --git a/package.json b/package.json index 0ad326a38a..5c8ad3e211 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "validate-app-config": "ajv validate -s ./node_modules/@alfresco/adf-core/app.config.schema.json -d ./app/.tmp/app.config.json --errors=text --verbose", "assemble-app-config": "envsub --env-file ./.env --env APP_CONFIG_ECM_HOST={protocol}//{hostname}{:port} --env APP_CONFIG_PROVIDER=ECM --env APP_CONFIG_AUTH_TYPE=BASIC --env APP_CONFIG_OAUTH2_HOST=http://localhost:4200/auth/realms/alfresco --env APP_CONFIG_OAUTH2_CLIENTID=alfresco --env APP_CONFIG_OAUTH2_IMPLICIT_FLOW=true --env APP_CONFIG_OAUTH2_SILENT_LOGIN=true --env APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI={protocol}//{hostname}{:port}/assets/silent-refresh.html --env APP_CONFIG_OAUTH2_REDIRECT_LOGIN=/ --env APP_CONFIG_OAUTH2_REDIRECT_LOGOUT=/logout --all ./app/src/app.config.json.tpl ./app/.tmp/app.config.json", "prestart": "mkdir -p ./app/.tmp && npm run assemble-app-config && npm run validate-app-config", - "start": "nx serve content-ce", - "start:prod": "npm run validate-app-config && node --max-old-space-size=8192 nx run content-ce:serve:production", + "start": "nx serve", + "start:prod": "npm run validate-app-config && node --max-old-space-size=8192 nx serve content-ce --configuration production", "prebuild": "mkdir -p ./app/.tmp && cp ./app/src/app.config.json.tpl ./app/.tmp/app.config.json", "build": "nx build content-ce", "build.release": "npm run build -- --configuration=production,release", @@ -20,7 +20,17 @@ "e2e": "npm run update-webdriver && protractor $SUITE", "inspect.bundle": "nx build content-ce --configuration production --stats-json && npx webpack-bundle-analyzer dist/content-ce/stats.json", "prepare": "husky install", - "stylelint": "stylelint \"{app,projects}/**/*.scss\"" + "stylelint": "stylelint \"{app,projects}/**/*.scss\"", + "affected:build": "nx affected:build", + "affected:test": "nx affected:test", + "affected:lint": "nx affected:lint", + "affected:dep-graph": "nx affected:dep-graph", + "affected": "nx affected", + "print-affected:app": "nx print-affected --type=app --select=projects", + "print-affected:projects": "nx print-affected --type=lib --select=projects", + "print-affected:build": "nx print-affected --target=build --select=tasks.target.project", + "print-affected:test": "nx print-affected --target=test --select=tasks.target.project", + "print-affected:lint": "nx print-affected --target=lint --select=tasks.target.project" }, "repository": { "type": "git",