Skip to content

Commit

Permalink
feat(composer): add library skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
gund committed Jan 14, 2022
1 parent 238fc60 commit 5876771
Show file tree
Hide file tree
Showing 18 changed files with 579 additions and 4 deletions.
42 changes: 42 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,48 @@
},
"tags": ["e2e", "ui", "web"],
"implicitDependencies": ["ui-web-example"]
},
"composer": {
"root": "libs/composer",
"sourceRoot": "libs/composer/src",
"projectType": "library",
"prefix": "orc",
"architect": {
"build": {
"builder": "@nrwl/angular:package",
"outputs": ["dist/libs/composer"],
"options": {
"project": "libs/composer/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "libs/composer/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "libs/composer/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@nrwl/jest:jest",
"outputs": ["coverage/libs/composer"],
"options": {
"jestConfig": "libs/composer/jest.config.js",
"passWithNoTests": true
}
},
"lint": {
"builder": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"libs/composer/src/**/*.ts",
"libs/composer/src/**/*.html"
]
}
}
},
"tags": ["utility", "ui"]
}
}
}
36 changes: 36 additions & 0 deletions libs/composer/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts"],
"extends": [
"plugin:@nrwl/nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "orc",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "orc",
"style": "kebab-case"
}
]
}
},
{
"files": ["*.html"],
"extends": ["plugin:@nrwl/nx/angular-template"],
"rules": {}
}
]
}
24 changes: 24 additions & 0 deletions libs/composer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# @orchestrator/composer

> Allows to visually create and validate JSON UIs for Orchestrator.
![@orchestrator/composer](https://img.shields.io/npm/v/@orchestrator/composer)

## Registration

```ts
import { NgModule } from '@angular/core';
import { OrchestratorCoreModule } from '@orchestrator/core';
import { ComposerModule } from '@orchestrator/composer';

@NgModule({
imports: [OrchestratorCoreModule.forRoot(), ComposerModule.forRoot()],
})
export class AppModule {}
```

## Components list

| Component | Description |
| --------- | ----------- |
| | |
Loading

0 comments on commit 5876771

Please sign in to comment.