Skip to content

Commit

Permalink
Apply changes from cloudfoundry#4583 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmo-at-a9s authored Sep 25, 2023
1 parent c305846 commit c0aa141
Show file tree
Hide file tree
Showing 11 changed files with 117 additions and 0 deletions.
40 changes: 40 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,46 @@
}
}
},
"extension": {
"root": "src/frontend/packages/extension",
"sourceRoot": "src/frontend/packages/extension/src",
"projectType": "library",
"prefix": "ext",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "src/frontend/packages/extension/tsconfig.lib.json",
"project": "src/frontend/packages/extension/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "src/frontend/packages/extension/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/frontend/packages/extension/src/test.ts",
"tsConfig": "src/frontend/packages/extension/tsconfig.spec.json",
"karmaConfig": "src/frontend/packages/extension/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.json"
],
"tslintConfig": "src/frontend/packages/extension/tslint.json",
"files": [
"src/frontend/packages/extension/src/**/*.ts"
]
}
}
}
},
"shared": {
"root": "src/frontend/packages/shared",
"sourceRoot": "src/frontend/packages/shared/src",
Expand Down
8 changes: 8 additions & 0 deletions src/frontend/packages/extension/karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function (config) {
config.set({
...require('../../../../build/karma.conf.creator.js')('extension')(config)
})
}
8 changes: 8 additions & 0 deletions src/frontend/packages/extension/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../../../dist/extension",
"lib": {
"entryFile": "src/public-api.ts",
"umdModuleIds": {}
}
}
8 changes: 8 additions & 0 deletions src/frontend/packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@stratosui/extension",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^9.1.6",
"@angular/core": "^9.1.6"
}
}
7 changes: 7 additions & 0 deletions src/frontend/packages/extension/src/extension.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { NgModule } from '@angular/core';

@NgModule({
imports: [
]
})
export class ExtensionModule { }
5 changes: 5 additions & 0 deletions src/frontend/packages/extension/src/public-api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*
* Public API Surface of the extension package
*/

export { ExtensionModule } from './extension.module';
7 changes: 7 additions & 0 deletions src/frontend/packages/extension/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../../tsconfig.lib.json",
"compilerOptions": {
"outDir": "../../../../out-tsc"
},
"exclude": ["./src/test.ts", "**/*.spec.ts"]
}
6 changes: 6 additions & 0 deletions src/frontend/packages/extension/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.lib.json",
"angularCompilerOptions": {
"enableIvy": false
}
}
9 changes: 9 additions & 0 deletions src/frontend/packages/extension/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../../tsconfig.spec.json",
"compilerOptions": {
"outDir": "../../../../out-tsc",
"types": ["jasmine", "node"]
},
"files": ["src/test.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
}
17 changes: 17 additions & 0 deletions src/frontend/packages/extension/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "../../../../tslint.json",
"rules": {
"directive-selector": [
false,
"attribute",
"lib",
"camelCase"
],
"component-selector": [
false,
"element",
"lib",
"kebab-case"
]
}
}
2 changes: 2 additions & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"preserveSymlinks": true,
"paths": {
"@stratosui/core": ["frontend/packages/core/src/public-api.ts"],
"@stratosui/extension": ["frontend/packages/extension/src/public-api.ts"],
"@stratosui/store": ["frontend/packages/store/src/public-api.ts"],
"@stratosui/shared": ["frontend/packages/shared/src/public-api.ts"],
"@stratosui/store/testing": ["frontend/packages/store/testing/public-api.ts"],
"@stratosui/cloud-foundry": ["frontend/packages/cloud-foundry/src/public_api.ts"],
"@stratosui/cf-autoscaler": ["frontend/packages/cf-autoscaler/src/public_api.ts"],
Expand Down

0 comments on commit c0aa141

Please sign in to comment.