mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACA-4612] ACA: integrating with the local ADF source code (#2658)
* linked ADF runs * configure excludes
This commit is contained in:
parent
42f4d7c844
commit
fdc1dadf26
10
README.md
10
README.md
@ -29,6 +29,16 @@ npm install
|
|||||||
npm start content-ce
|
npm start content-ce
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Using Local ADF
|
||||||
|
|
||||||
|
Clone the `alfresco-ng2-components` and `alfresco-content-app` repositories in the same folder, and run the following command:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm start content-ce -- --configuration=adf
|
||||||
|
```
|
||||||
|
|
||||||
|
Changing the ADF code results in the recompilation and hot-reloading of the ACA application.
|
||||||
|
|
||||||
## See Also
|
## See Also
|
||||||
|
|
||||||
Please refer to the [Public documentation](https://alfresco-content-app.netlify.com/) for more details
|
Please refer to the [Public documentation](https://alfresco-content-app.netlify.com/) for more details
|
||||||
|
12
angular.json
12
angular.json
@ -188,6 +188,15 @@
|
|||||||
"with": "app/src/environments/environment.e2e.ts"
|
"with": "app/src/environments/environment.e2e.ts"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"adf": {
|
||||||
|
"tsConfig": "app/tsconfig.app.adf.json",
|
||||||
|
"vendorChunk": true,
|
||||||
|
"extractLicenses": false,
|
||||||
|
"buildOptimizer": false,
|
||||||
|
"sourceMap": true,
|
||||||
|
"optimization": false,
|
||||||
|
"namedChunks": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultConfiguration": ""
|
"defaultConfiguration": ""
|
||||||
@ -210,6 +219,9 @@
|
|||||||
},
|
},
|
||||||
"release": {
|
"release": {
|
||||||
"browserTarget": "content-ce:build:release"
|
"browserTarget": "content-ce:build:release"
|
||||||
|
},
|
||||||
|
"adf": {
|
||||||
|
"browserTarget": "content-ce:build:adf"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,13 +1,20 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../../tsconfig.adf.json",
|
"extends": "../tsconfig.adf.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "../out-tsc/content-ce",
|
"outDir": "../out-tsc/content-ce"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": ["src/main.ts", "src/polyfills.ts"],
|
||||||
"src/main.ts",
|
"include": ["src/**/*.d.ts"],
|
||||||
"src/polyfills.ts"
|
"exclude": [
|
||||||
],
|
"**/*.spec.ts",
|
||||||
"include": [
|
"**/*.spec.ts",
|
||||||
"apps/content-ce/src/**/*.d.ts"
|
"**/*.mock.ts",
|
||||||
]
|
"src/test.ts",
|
||||||
}
|
"src/environments/environment.prod.ts",
|
||||||
|
"src/environments/environment.e2e.ts",
|
||||||
|
"src/app/testing/app-testing.module.ts",
|
||||||
|
"src/app/testing/translation.service.ts",
|
||||||
|
"src/app/testing/translate-pipe.directive.ts",
|
||||||
|
"src/environments/environment.release.ts"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
50
tsconfig.adf.json
Normal file
50
tsconfig.adf.json
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"compileOnSave": false,
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": "./",
|
||||||
|
"downlevelIteration": true,
|
||||||
|
"importHelpers": true,
|
||||||
|
"outDir": "./dist/out-tsc",
|
||||||
|
"sourceMap": true,
|
||||||
|
"declaration": false,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"emitDecoratorMetadata": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"target": "es2020",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"typeRoots": ["node_modules/@types"],
|
||||||
|
"lib": ["es2019", "dom"],
|
||||||
|
"paths": {
|
||||||
|
"@alfresco/adf-testing": ["../alfresco-ng2-components/lib/testing"],
|
||||||
|
"@alfresco/adf-testing/shared": ["../alfresco-ng2-components/lib/testing/src/lib/shared"],
|
||||||
|
"@alfresco/adf-core": ["../alfresco-ng2-components/lib/core"],
|
||||||
|
"@alfresco/adf-core/*": ["../alfresco-ng2-components/lib/core/*/public-api.ts"],
|
||||||
|
"@alfresco/adf-extensions": ["../alfresco-ng2-components/lib/extensions"],
|
||||||
|
"@alfresco/adf-content-services": ["../alfresco-ng2-components/lib/content-services"],
|
||||||
|
"@alfresco/adf-process-services-cloud": ["../alfresco-ng2-components/lib/process-services-cloud"],
|
||||||
|
"@alfresco/adf-process-services": ["../alfresco-ng2-components/lib/process-services"],
|
||||||
|
"@alfresco/aca-shared": ["projects/aca-shared/src/public-api.ts"],
|
||||||
|
"@alfresco/aca-shared/store": ["projects/aca-shared/store/src/public-api.ts"],
|
||||||
|
"@alfresco/aca-shared/rules": ["projects/aca-shared/rules/src/public-api.ts"],
|
||||||
|
"@alfresco/adf-office-services-ext": ["projects/adf-office-services-ext/src/public-api.ts"],
|
||||||
|
"@alfresco/aca-testing-shared": ["projects/aca-testing-shared"],
|
||||||
|
"@alfresco/aca-about": ["projects/aca-about/src/public-api.ts"],
|
||||||
|
"@alfresco/aca-settings": ["projects/aca-settings/src/public-api.ts"],
|
||||||
|
"@alfresco/aca-folder-rules": ["projects/aca-folder-rules/src/public-api.ts"],
|
||||||
|
"package.json": ["package.json"],
|
||||||
|
"*": ["./node_modules/*"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"exclude": ["node_modules"],
|
||||||
|
"angularCompilerOptions": {
|
||||||
|
"preserveWhitespaces": false,
|
||||||
|
"fullTemplateTypeCheck": true,
|
||||||
|
"strictInjectionParameters": true,
|
||||||
|
"strictTemplates": true
|
||||||
|
}
|
||||||
|
}
|
@ -18,7 +18,7 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"typeRoots": ["node_modules/@types"],
|
"typeRoots": ["node_modules/@types"],
|
||||||
"lib": ["es2018", "dom"],
|
"lib": ["es2019", "dom"],
|
||||||
"paths": {
|
"paths": {
|
||||||
"@alfresco/aca-shared": ["projects/aca-shared/src/public-api.ts"],
|
"@alfresco/aca-shared": ["projects/aca-shared/src/public-api.ts"],
|
||||||
"@alfresco/aca-shared/store": ["projects/aca-shared/store/src/public-api.ts"],
|
"@alfresco/aca-shared/store": ["projects/aca-shared/store/src/public-api.ts"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user