mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-4534] nx workspace support for aca (#3143)
* ACS-4534 Added nx workspace support * ACS-4534 Updated package-lock.json file * ACS-4534 Configured cache directory and affected command * ACS-4534 Updated README * ACS-4534 Updated more README files * ACS-4534 Fixed lint * ACS-4534 Address comment for readme * ACS-4534 Removed redundant build-libs script * ACS-4534 Fixed start script * ACS-4534 Updated some left documentation * ACS-4534 Added more helper scripts, addressed PR comments * ACS-4534 Updated package-lock.json after rebasing * ACS-4534 Fix stylelint issue
This commit is contained in:
@@ -17,10 +17,10 @@ ng generate @schematics/angular:library aca-new-lib
|
||||
|
||||
### Build library
|
||||
|
||||
In order to publish new library, we need to build it first. You need to add build of your library to `build-libs` command in `package.json`
|
||||
In order to publish new library, we need to build it first. Building is done by following command from `package.json`
|
||||
|
||||
```sh
|
||||
"build-libs": "ng build aca-shared && ng build aca-new-lib",
|
||||
"build": "nx build content-ce"
|
||||
```
|
||||
|
||||
### Update publish script
|
||||
|
@@ -19,7 +19,7 @@ See also
|
||||
First, generate a new project within the workspace:
|
||||
|
||||
```sh
|
||||
ng generate library my-extension
|
||||
nx generate library my-extension
|
||||
```
|
||||
|
||||
You will get a new project in the `projects/my-extensions` folder.
|
||||
@@ -32,10 +32,10 @@ By default, the project contains at least the following content:
|
||||
Next, build the project with the following command:
|
||||
|
||||
```sh
|
||||
ng build my-extension
|
||||
nx build my-extension
|
||||
```
|
||||
|
||||
Angular CLI automatically configures Typescript path mappings for the project, so that you do not need any additional steps to link the library.
|
||||
NX automatically configures Typescript path mappings for the project, so that you do not need any additional steps to link the library.
|
||||
|
||||
### Register dynamic components
|
||||
|
||||
@@ -104,7 +104,7 @@ Update the root `package.json` file and append the following entry to the `scrip
|
||||
{
|
||||
"scripts": {
|
||||
"build:my-extension":
|
||||
"ng build my-extension && npx cpr projects/my-extension/assets dist/my-extension/assets --deleteFirst"
|
||||
"nx build my-extension && npx cpr projects/my-extension/assets dist/my-extension/assets --deleteFirst"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user