Skip to content

Commit

Permalink
update build targets + CR
Browse files Browse the repository at this point in the history
  • Loading branch information
BSekula committed Mar 28, 2024
1 parent 461eec8 commit b052e4e
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 34 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ jobs:
./scripts/update-version.sh -gnu || exit 1;
npx nx affected:build $NX_CALCULATION_FLAGS --prod --exclude="demoshell" --skip-nx-cache
npx nx affected $NX_CALCULATION_FLAGS --target=pretheme
npx nx affected $NX_CALCULATION_FLAGS --target=build-schematics
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
name: release libraries GH registry
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ jobs:
./scripts/github/build/bumpversion.sh
npx nx affected:build $NX_CALCULATION_FLAGS --prod --exclude="demoshell" --skip-nx-cache
npx nx affected $NX_CALCULATION_FLAGS --target=pretheme
npx nx affected $NX_CALCULATION_FLAGS --target=build-schematics
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
name: release libraries GH registry
with:
Expand Down
30 changes: 10 additions & 20 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,26 +320,6 @@
"prefix": "adf",
"architect": {
"build": {
"builder": "nx:run-commands",
"options": {
"commands": [
"ng run core:build-lib",
"ng run core:build-schematics"
],
"parallel": false
}
},
"build-schematics": {
"builder": "nx:run-commands",
"options": {
"commands": [
"npx tsc -p lib/core/tsconfig.schematics.json",
"cp lib/core/schematics/migrations/collection.json dist/libs/core/schematics/migrations/collection.json"
],
"parallel": false
}
},
"build-lib": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "lib/core/tsconfig.lib.json",
Expand All @@ -357,6 +337,16 @@
},
"defaultConfiguration": "production"
},
"build-schematics": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx tsc -p lib/core/tsconfig.schematics.json",
"cp lib/core/schematics/migrations/collection.json dist/libs/core/schematics/migrations/collection.json"
],
"parallel": false
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
Expand Down
1 change: 0 additions & 1 deletion lib/core/src/lib/app-config/app-config.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable arrow-body-style */
/*!
* @license
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/core/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ export * from './lib/core.module';
export { AuthModule } from './lib/auth/oidc/auth.module';

/** @deprecated please use alfresco-api from \@alfresco/adf-content-services */
export * from './lib/services/index';
export * from './lib/services/index';
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ import {
UploadWidgetContentLinkModel,
DestinationFolderPath
} from '@alfresco/adf-core';
import { AlfrescoApiService } from '@alfresco/adf-content-services';
import { Node, NodesApi, RelatedContentRepresentation } from '@alfresco/js-api';
import { ContentCloudNodeSelectorService } from '../../../services/content-cloud-node-selector.service';
import { ProcessCloudContentService } from '../../../services/process-cloud-content.service';
import { UploadCloudWidgetComponent } from './upload-cloud.widget';
import { DestinationFolderPathModel, DestinationFolderPathType } from '../../../models/form-cloud-representation.model';
import { ContentNodeSelectorPanelService, NewVersionUploaderDataAction, NewVersionUploaderDialogData, NewVersionUploaderService, VersionManagerUploadData } from '@alfresco/adf-content-services';
import { AlfrescoApiService, ContentNodeSelectorPanelService, NewVersionUploaderDataAction, NewVersionUploaderDialogData, NewVersionUploaderService, VersionManagerUploadData } from '@alfresco/adf-content-services';

export const RETRIEVE_METADATA_OPTION = 'retrieveMetadata';
export const ALIAS_ROOT_FOLDER = '-root-';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
* limitations under the License.
*/

import { AlfrescoApiService } from '@alfresco/adf-content-services';
import { LogService, ExternalContent } from '@alfresco/adf-core';
import { SitesService } from '@alfresco/adf-content-services';
import { SitesService, AlfrescoApiService } from '@alfresco/adf-content-services';
import { Injectable } from '@angular/core';
import { IntegrationAlfrescoOnPremiseApi, Node, RelatedContentRepresentation, ActivitiContentApi, AlfrescoEndpointRepresentation, AlfrescoContentRepresentation } from '@alfresco/js-api';
import { Observable, from, throwError } from 'rxjs';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
* limitations under the License.
*/

import { AlfrescoApiService } from '@alfresco/adf-content-services';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { ContentModule, ContentNodeSelectorPanelComponent, DocumentListService, SitesService, NodesApiService } from '@alfresco/adf-content-services';
import { AlfrescoApiService, ContentModule, ContentNodeSelectorPanelComponent, DocumentListService, SitesService, NodesApiService } from '@alfresco/adf-content-services';
import { EventEmitter, NO_ERRORS_SCHEMA } from '@angular/core';
import { ProcessTestingModule } from '../../../testing/process.testing.module';
import { AttachFileWidgetDialogComponent } from './attach-file-widget-dialog.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
* limitations under the License.
*/

import { AlfrescoApiService } from '@alfresco/adf-content-services';
import { Component, Inject, ViewEncapsulation, ViewChild } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { LoginDialogPanelComponent, TranslationService, AuthenticationService } from '@alfresco/adf-core';
import { AttachFileWidgetDialogComponentData } from './attach-file-widget-dialog-component.interface';
import { DocumentListService, SitesService, SearchService } from '@alfresco/adf-content-services';
import { AlfrescoApiService, DocumentListService, SitesService, SearchService } from '@alfresco/adf-content-services';
import { ExternalAlfrescoApiService } from '../../services/external-alfresco-api.service';
import { Node } from '@alfresco/js-api';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
* limitations under the License.
*/

import { AlfrescoApiService } from '@alfresco/adf-content-services';
import { AppConfigService } from '@alfresco/adf-core';
import { DiscoveryApiService, UploadService } from '@alfresco/adf-content-services';
import { DiscoveryApiService, UploadService, AlfrescoApiService } from '@alfresco/adf-content-services';
import { ActivitiContentApi, RelatedContentRepresentation } from '@alfresco/js-api';
import { Injectable } from '@angular/core';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
* limitations under the License.
*/

import { AlfrescoApiService } from '@alfresco/adf-content-services';
import { AppConfigService } from '@alfresco/adf-core';
import { DiscoveryApiService, UploadService } from '@alfresco/adf-content-services';
import { DiscoveryApiService, UploadService, AlfrescoApiService } from '@alfresco/adf-content-services';
import { Injectable } from '@angular/core';
import { ActivitiContentApi, RelatedContentRepresentation } from '@alfresco/js-api';

Expand Down

0 comments on commit b052e4e

Please sign in to comment.