Skip to content

Commit

Permalink
core, components, widgets libraries integration
Browse files Browse the repository at this point in the history
core, components, widgets libraries integration in hyperiot-app workspace
  • Loading branch information
gabriele-los committed Apr 17, 2023
1 parent e213d5b commit f8cc2b2
Show file tree
Hide file tree
Showing 862 changed files with 54,373 additions and 359 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ This project was generated with [Angular CLI](https://github.com/angular/angular

Node v16 is required to run this project.

## Libraries Build

HyperIoT-app relies on `core`, `components` and `widets` libraries. Before running the application it is necessary to build the libraries with the command `ng build <library-name>`
> Note: Libraries should be build in the following order: core, components, widgets
## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
Expand All @@ -27,7 +32,7 @@ Run `ng generate component component-name` to generate a new component. You can

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.

## Further help

Expand Down
93 changes: 93 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,99 @@
"defaultConfiguration": "development"
}
}
},
"core": {
"projectType": "library",
"root": "projects/core",
"sourceRoot": "projects/core/src",
"prefix": "hyt",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/core/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/core/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/core/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/core/src/test.ts",
"tsConfig": "projects/core/tsconfig.spec.json",
"karmaConfig": "projects/core/karma.conf.js"
}
}
}
},
"components": {
"projectType": "library",
"root": "projects/components",
"sourceRoot": "projects/components/src",
"prefix": "hyt",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/components/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/components/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/components/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/components/src/test.ts",
"tsConfig": "projects/components/tsconfig.spec.json",
"karmaConfig": "projects/components/karma.conf.js"
}
}
}
},
"widgets": {
"projectType": "library",
"root": "projects/widgets",
"sourceRoot": "projects/widgets/src",
"prefix": "hyperiot",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/widgets/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/widgets/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/widgets/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/widgets/src/test.ts",
"tsConfig": "projects/widgets/tsconfig.spec.json",
"karmaConfig": "projects/widgets/karma.conf.js"
}
}
}
}
},
"defaultProject": "hyperiot",
Expand Down
166 changes: 0 additions & 166 deletions gulpfile.js

This file was deleted.

63 changes: 32 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyperiot",
"version": "2.2.10",
"version": "2.2.11",
"scripts": {
"ng": "node_modules/.bin/ng",
"ng-high-memory": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng",
Expand All @@ -21,53 +21,54 @@
},
"private": true,
"dependencies": {
"@angular/animations": "12.2.16",
"@angular/cdk": "12.2.13",
"@angular/common": "12.2.16",
"@angular/compiler": "12.2.16",
"@angular/core": "12.2.16",
"@angular/forms": "12.2.16",
"@angular/localize": "12.2.16",
"@angular/material": "12.2.13",
"@hyperiot/widgets": "1.0.23",
"@types/d3": "^5.7.2",
"@angular/platform-browser": "12.2.16",
"@angular/platform-browser-dynamic": "12.2.16",
"@angular/router": "12.2.16",
"@angular/service-worker": "12.2.16",
"angular-gridster2": "~12.1.1",
"angular-plotly.js": "~4.0.4",
"bootstrap": "^4.3.1",
"convert-units": "^2.3.4",
"crypto-js": "^3.1.9-1",
"css-element-queries": "^1.2.2",
"d3": "^5.14.2",
"http-server": "^0.12.3",
"map-stream": "0.0.7",
"moment": "^2.29.1",
"moment-precise-range-plugin": "^1.3.0",
"ng-inline-svg": "^13.0.0",
"ngx-color-picker": "^12.0.1",
"ngx-cookie-service": "^12.0.3",
"ngx-cookie-service": "12.0.3",
"ngx-mask": "^12.0.0",
"ngx-moment": "^6.0.2",
"plotly.js": "1.49.4"
"ngx-toastr": "14.3.0",
"plotly.js": "1.49.4",
"rxjs": "7.5.5",
"tslib": "2.4.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "12.2.16",
"@angular/animations": "12.2.16",
"@angular/cdk": "12.2.13",
"@angular/cli": "12.2.16",
"@angular/common": "12.2.16",
"@angular/compiler": "12.2.16",
"@angular/compiler-cli": "12.2.16",
"@angular/core": "12.2.16",
"@angular/forms": "12.2.16",
"@angular/language-service": "12.2.16",
"@compodoc/compodoc": "^1.1.10",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"@compodoc/compodoc": "~1.1.11",
"@types/d3": "^5.7.2",
"@types/jasmine": "~3.8.0",
"@types/node": "^12.11.1",
"codelyzer": "^6.0.2",
"gulp": "^4.0.2",
"gulp-json-editor": "^2.5.2",
"jasmine-core": "^3.5.0",
"jasmine-core": "~3.8.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "~6.3.20",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "~3.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"ng-packagr": "^12.2.7",
"patch-package": "^6.1.2",
"protractor": "~7.0.0",
"rxjs": "7.5.5",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "4.2.4",
"xlf-merge": "^1.0.6"
"typescript": "~4.3.5"
}
}
Loading

0 comments on commit f8cc2b2

Please sign in to comment.