mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Removing js-api external dep as it has been moved into ADF repo (#9255)
* Removing js-api external dep * Fixed targeting * Fixed targeting with local js-api * [affected:*] Fixed targeting with local js-api * Fixed bundle for CI
This commit is contained in:
1
.github/workflows/pull-request.yml
vendored
1
.github/workflows/pull-request.yml
vendored
@@ -206,6 +206,7 @@ jobs:
|
|||||||
- name: install
|
- name: install
|
||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
|
npx nx run js-api:bundle
|
||||||
npx nx run cli:bundle
|
npx nx run cli:bundle
|
||||||
npx nx run testing:bundle
|
npx nx run testing:bundle
|
||||||
- run: npx nx print-affected $NX_CALCULATION_FLAGS
|
- run: npx nx print-affected $NX_CALCULATION_FLAGS
|
||||||
|
1
.github/workflows/release-branch.yml
vendored
1
.github/workflows/release-branch.yml
vendored
@@ -97,6 +97,7 @@ jobs:
|
|||||||
- name: install
|
- name: install
|
||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
|
npx nx run js-api:bundle
|
||||||
npx nx run cli:bundle
|
npx nx run cli:bundle
|
||||||
npx nx run testing:bundle
|
npx nx run testing:bundle
|
||||||
- uses: ./.github/actions/upload-node-modules-and-artifacts
|
- uses: ./.github/actions/upload-node-modules-and-artifacts
|
||||||
|
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -102,6 +102,7 @@ jobs:
|
|||||||
- name: install
|
- name: install
|
||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
|
npx nx run js-api:bundle
|
||||||
npx nx run cli:bundle
|
npx nx run cli:bundle
|
||||||
npx nx run testing:bundle
|
npx nx run testing:bundle
|
||||||
- uses: ./.github/actions/upload-node-modules-and-artifacts
|
- uses: ./.github/actions/upload-node-modules-and-artifacts
|
||||||
|
29
angular.json
29
angular.json
@@ -253,6 +253,35 @@
|
|||||||
},
|
},
|
||||||
"defaultConfiguration": "production"
|
"defaultConfiguration": "production"
|
||||||
},
|
},
|
||||||
|
"bundle": {
|
||||||
|
"executor": "nx:run-commands",
|
||||||
|
"options": {
|
||||||
|
"commands": [
|
||||||
|
{
|
||||||
|
"command": "echo cli bundle created"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dependsOn": [
|
||||||
|
"copyToNodeModules"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"copyToNodeModules": {
|
||||||
|
"executor": "nx:run-commands",
|
||||||
|
"options": {
|
||||||
|
"commands": [
|
||||||
|
{
|
||||||
|
"command": "rm -rf ./node_modules/@alfresco/js-api/ && mkdir -p ./node_modules/@alfresco/js-api/ && cp -R ./dist/libs/js-api/* ./node_modules/@alfresco/js-api/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dependsOn": [
|
||||||
|
{
|
||||||
|
"projects": "self",
|
||||||
|
"target": "build"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"executor": "nx:run-commands",
|
"executor": "nx:run-commands",
|
||||||
"options": {
|
"options": {
|
||||||
|
@@ -21,7 +21,10 @@
|
|||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"typeRoots": ["node_modules/@types"],
|
"typeRoots": ["node_modules/@types"],
|
||||||
"types": ["node"],
|
"types": ["node"],
|
||||||
"paths": {}
|
"paths": {
|
||||||
|
"@alfresco/js-api": ["../../dist/libs/js-api"],
|
||||||
|
"@alfresco/js-api/*": ["../../dist/libs/js-api/*"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"exclude": ["dist/**/*", "./build.ts", "node_modules"]
|
"exclude": ["dist/**/*", "./build.ts", "node_modules"]
|
||||||
}
|
}
|
||||||
|
@@ -3,6 +3,10 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "../../dist/out-tsc",
|
"outDir": "../../dist/out-tsc",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationMap": true
|
"declarationMap": true,
|
||||||
|
"paths": {
|
||||||
|
"@alfresco/js-api": ["../../../dist/libs/js-api"],
|
||||||
|
"@alfresco/js-api/*": ["../../../dist/libs/js-api/*"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"ngPackage": {
|
|
||||||
"lib": {
|
|
||||||
"entryFile": "./resources.ts",
|
|
||||||
"flatModuleFile": "adf-testing-resources"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -8,9 +8,6 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./tsconfig.lib.prod.json"
|
"path": "./tsconfig.lib.prod.json"
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "./tsconfig.spec.json"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
@@ -1,8 +1,13 @@
|
|||||||
{
|
{
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "../../dist/bla",
|
"outDir": "../../dist/out-tsc",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationMap": true
|
"declarationMap": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"paths": {
|
||||||
|
"@alfresco/js-api": ["../../../dist/libs/js-api"],
|
||||||
|
"@alfresco/js-api/*": ["../../../dist/libs/js-api/*"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
package-lock.json
generated
11
package-lock.json
generated
@@ -10,7 +10,6 @@
|
|||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alfresco/js-api": ">=7.6.0",
|
|
||||||
"@angular/animations": "14.1.3",
|
"@angular/animations": "14.1.3",
|
||||||
"@angular/cdk": "14.1.2",
|
"@angular/cdk": "14.1.2",
|
||||||
"@angular/common": "14.1.3",
|
"@angular/common": "14.1.3",
|
||||||
@@ -169,16 +168,6 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@alfresco/js-api": {
|
|
||||||
"version": "7.6.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-7.6.0.tgz",
|
|
||||||
"integrity": "sha512-HeWXMfyQLcE0R++LdM+Ex1ORzfF/T6//U3qVRnFzVRjEHlxkuWdZRF78XfK/1rt0PQndYhw9DRacCQyDcPydYw==",
|
|
||||||
"dependencies": {
|
|
||||||
"event-emitter": "^0.3.5",
|
|
||||||
"superagent": "^8.0.9",
|
|
||||||
"tslib": "^2.6.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@ampproject/remapping": {
|
"node_modules/@ampproject/remapping": {
|
||||||
"version": "2.2.0",
|
"version": "2.2.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
@@ -54,7 +54,6 @@
|
|||||||
"process services-cloud"
|
"process services-cloud"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alfresco/js-api": ">=7.6.0",
|
|
||||||
"@angular/animations": "14.1.3",
|
"@angular/animations": "14.1.3",
|
||||||
"@angular/cdk": "14.1.2",
|
"@angular/cdk": "14.1.2",
|
||||||
"@angular/common": "14.1.3",
|
"@angular/common": "14.1.3",
|
||||||
|
Reference in New Issue
Block a user