Skip to content

Commit

Permalink
split ngx bootstrap into separate package (#13)
Browse files Browse the repository at this point in the history
* created olt-ngx-bootstrap

* moved ngx-bootstrap components

* added test app

* working sidebar

* wip

* working form date without time control

* wip

* wip

* working test sample

* wip

* clean build

* publish of new ngx-bootstrap library
  • Loading branch information
chrisstraw authored Jul 11, 2023
1 parent 1d8bffa commit 845da58
Show file tree
Hide file tree
Showing 113 changed files with 2,644 additions and 278 deletions.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"npm.scriptExplorerExclude": [
"/dist"
],
"javascript.preferences.quoteStyle": "single",
"typescript.tsdk": "node_modules\\typescript\\lib"
}
14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<img src="https://user-images.githubusercontent.com/1365728/127748628-47575d74-a2fb-4539-a31e-74d8b435fc21.png" width="30%" >

# OLT Angular Library
# OLT Angular Application Libraries

_This library contains common Angular components, models, directives, and utilities._

## Model Definitions

_Some of the models work in conjunction with the OLT Core Library Json Models_

| TypeScript | OLT Core Model | Definition |
| --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| [Paged<T>](./projects/olt-core/src/lib/models/paged.model.ts) | [OltPagedJson<TModel>](https://github.com/OuterlimitsTech/olt-dotnet-core/blob/master/src/OLT.Core.Common/Models/Json/OltPagedJson.cs) | Paged Result |
| [PersonName](./projects/olt-core/src/lib/models/person-name.model.ts) | [OltPersonName](https://github.com/OuterlimitsTech/olt-dotnet-core/blob/master/src/OLT.Core.Common/Models/PersonName/OltPersonName.cs) | Person's Name with (F/M/L/S) |
[Base Core](./projects//olt-core//README.md)
[ngx-boostrap components](./projects/olt-ngx-bootstrap//README.md)
135 changes: 135 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,141 @@
}
}
}
},
"olt-ngx-bootstrap": {
"projectType": "library",
"root": "projects/olt-ngx-bootstrap",
"sourceRoot": "projects/olt-ngx-bootstrap/src",
"prefix": "olt",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/olt-ngx-bootstrap/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/olt-ngx-bootstrap/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/olt-ngx-bootstrap/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"tsConfig": "projects/olt-ngx-bootstrap/tsconfig.spec.json",
"polyfills": [
"zone.js",
"zone.js/testing"
]
}
}
}
},
"test-app": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/test-app",
"sourceRoot": "projects/test-app/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"allowedCommonJsDependencies": [
"error-stack-parser"
],
"outputPath": "dist/test-app",
"index": "projects/test-app/src/index.html",
"main": "projects/test-app/src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "projects/test-app/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"projects/test-app/src/favicon.ico",
"projects/test-app/src/assets"
],
"styles": [
"projects/test-app/src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "test-app:build:production",
"port": 5632
},
"development": {
"browserTarget": "test-app:build:development",
"port": 5633
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "test-app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "projects/test-app/tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
"projects/test-app/src/favicon.ico",
"projects/test-app/src/assets"
],
"styles": [
"projects/test-app/src/styles.scss"
],
"scripts": []
}
}
}
}
},
"schematics": {
Expand Down
61 changes: 37 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"version": "16.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --configuration production",
"watch": "ng build --watch --configuration development",
"start": "ng serve test-app",
"build": "ng build olt-core --configuration production && ng build olt-ngx-bootstrap --configuration production",
"watch-core": "ng build olt-core --watch --configuration development",
"watch-ngx-bootstrap": "ng build olt-ngx-bootstrap --watch --configuration development",
"test": "ng test",
"postbuild": "xcopy \"README.md\" \".\\dist\\olt-core\" /Y"
"postbuild": "xcopy \"projects\\olt-core\\README.md\" \".\\dist\\olt-core\" /Y && xcopy \"projects\\olt-ngx-bootstrap\\README.md\" \".\\dist\\olt-ngx-bootstrap\" /Y"
},
"private": true,
"dependencies": {
Expand All @@ -19,6 +20,7 @@
"@angular/platform-browser": "^16.1.3",
"@angular/platform-browser-dynamic": "^16.1.3",
"@angular/router": "^16.1.3",
"bootstrap": "^5.3.0",
"error-stack-parser": "^2.1.4",
"ngx-bootstrap": "^10.2.0",
"ngx-logger": "^5.0.11",
Expand All @@ -41,4 +43,4 @@
"ng-packagr": "^16.1.0",
"typescript": "~4.9.4"
}
}
}
Loading

0 comments on commit 845da58

Please sign in to comment.