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:
@@ -20,7 +20,7 @@ nav: ja
|
||||
最初に、ワークスペース内で新しいプロジェクトを生成します:
|
||||
|
||||
```sh
|
||||
ng generate library my-extension
|
||||
nx generate library my-extension
|
||||
```
|
||||
|
||||
`projects/my-extensions` フォルダに新しいプロジェクトを取得します。
|
||||
@@ -33,10 +33,10 @@ ng generate library my-extension
|
||||
次に、次のコマンドでプロジェクトをビルドします:
|
||||
|
||||
```sh
|
||||
ng build my-extension
|
||||
nx build my-extension
|
||||
```
|
||||
|
||||
Angular CLI は、プロジェクトの Typescript パスマッピングを自動的に構成するため、ライブラリをリンクするための追加手順は必要ありません。
|
||||
NX は、プロジェクトの Typescript パスマッピングを自動的に構成するため、ライブラリをリンクするための追加手順は必要ありません。
|
||||
|
||||
### 動的コンポーネントを登録する
|
||||
|
||||
@@ -102,7 +102,7 @@ JSON 定義で `my-extension.main.component` 識別子を使用できるよう
|
||||
{
|
||||
"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