Skip to content

Commit

Permalink
[AAE-11496] Build and publish adf-office-services-ext (#2935)
Browse files Browse the repository at this point in the history
  • Loading branch information
BSekula committed Jan 27, 2023
1 parent 4df548a commit 010821d
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 4 deletions.
3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@
"production": {
"tsConfig": "projects/adf-office-services-ext/tsconfig.lib.prod.json"
}
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"prebuild": "mkdir -p ./app/.tmp && cp ./app/src/app.config.json.tpl ./app/.tmp/app.config.json",
"build": "ng build content-ce",
"build.release": "npm run build -- --configuration=production,release",
"build-libs": "ng build aca-shared",
"build-libs": "ng build aca-shared && ng build adf-office-services-ext",
"test": "ng test",
"test:ci": "ng test adf-office-services-ext && ng test content-ce --code-coverage",
"lint": "NODE_OPTIONS=--max_old_space_size=4096 ng lint && npm run spellcheck && npm run e2e.typecheck",
Expand Down
1 change: 0 additions & 1 deletion projects/aca-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"@alfresco/adf-extensions": "6.0.0-A.1-37376",
"@alfresco/js-api": "5.2.0",
"@angular/animations": "14.1.2",
"@angular/cdk": "14.1.2",
"@angular/common": "14.1.2",
"@angular/compiler": "14.1.2",
"@angular/core": "14.1.2",
Expand Down
7 changes: 7 additions & 0 deletions projects/adf-office-services-ext/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"dest": "../../dist/@alfresco/adf-office-services-ext",
"lib": {
"entryFile": "src/public-api.ts"
},
"assets": ["assets"]
}
8 changes: 8 additions & 0 deletions projects/adf-office-services-ext/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@alfresco/adf-office-services-ext",
"version": "2.0.1",
"main": "src/index.ts",
"dependencies": {
"tslib": "^2.0.0"
}
}
7 changes: 6 additions & 1 deletion projects/adf-office-services-ext/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
"declarationMap": false,
"paths": {
"@alfresco/aca-shared": ["dist/@alfresco/aca-shared"],
"@alfresco/aca-shared/store": ["dist/@alfresco/aca-shared/store"],
"@alfresco/aca-shared/rules": ["dist/@alfresco/aca-shared/rules"]
}
},
"angularCompilerOptions": {
"compilationMode": "partial"
Expand Down
1 change: 1 addition & 0 deletions scripts/ci/npm/publish-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ echo -e "Branch is '$TRAVIS_BRANCH', therefore publish with '$TAG_NPM' tag\n"

PROJECTS=(
'aca-shared'
'adf-office-services-ext'
);

for PROJECT in "${PROJECTS[@]}"
Expand Down

0 comments on commit 010821d

Please sign in to comment.