@frxjs/ngx-timeline 1.0.4 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/.editorconfig +16 -0
  2. package/.github/workflows/CI-main.yml +48 -0
  3. package/README.md +136 -136
  4. package/angular.json +178 -0
  5. package/docs/3rdpartylicenses.txt +268 -0
  6. package/docs/assets/inter.png +0 -0
  7. package/docs/favicon.ico +0 -0
  8. package/docs/index.html +13 -0
  9. package/docs/main.6005a10000c87d7095d3.js +1 -0
  10. package/docs/polyfills.f8ddde825b13760c1743.js +1 -0
  11. package/docs/runtime.0e49e2b53282f40c8925.js +1 -0
  12. package/docs/styles.09e2c710755c8867a460.css +0 -0
  13. package/package.json +51 -13
  14. package/projects/demo-app/.browserslistrc +17 -0
  15. package/projects/demo-app/e2e/protractor.conf.js +37 -0
  16. package/projects/demo-app/e2e/src/app.e2e-spec.ts +23 -0
  17. package/projects/demo-app/e2e/src/app.po.ts +11 -0
  18. package/projects/demo-app/e2e/tsconfig.json +13 -0
  19. package/projects/demo-app/karma.conf.js +44 -0
  20. package/projects/demo-app/src/app/app.component.html +90 -0
  21. package/projects/demo-app/src/app/app.component.scss +417 -0
  22. package/projects/demo-app/src/app/app.component.spec.ts +24 -0
  23. package/projects/demo-app/src/app/app.component.ts +147 -0
  24. package/projects/demo-app/src/app/app.module.ts +20 -0
  25. package/projects/demo-app/src/assets/.gitkeep +0 -0
  26. package/projects/demo-app/src/assets/inter.png +0 -0
  27. package/projects/demo-app/src/environments/environment.prod.ts +3 -0
  28. package/projects/demo-app/src/environments/environment.ts +16 -0
  29. package/projects/demo-app/src/favicon.ico +0 -0
  30. package/projects/demo-app/src/index.html +13 -0
  31. package/projects/demo-app/src/main.ts +12 -0
  32. package/projects/demo-app/src/polyfills.ts +63 -0
  33. package/projects/demo-app/src/styles.scss +1 -0
  34. package/projects/demo-app/src/test.ts +25 -0
  35. package/projects/demo-app/tsconfig.app.json +26 -0
  36. package/projects/demo-app/tsconfig.spec.json +18 -0
  37. package/projects/demo-app/tslint.json +17 -0
  38. package/projects/ngx-timeline/README.md +136 -0
  39. package/projects/ngx-timeline/karma.conf.js +44 -0
  40. package/projects/ngx-timeline/ng-package.json +7 -0
  41. package/projects/ngx-timeline/package.json +20 -0
  42. package/{lib/components/index.d.ts → projects/ngx-timeline/src/lib/components/index.ts} +2 -2
  43. package/projects/ngx-timeline/src/lib/components/ngx-timeline-event/ngx-timeline-event.component.html +37 -0
  44. package/projects/ngx-timeline/src/lib/components/ngx-timeline-event/ngx-timeline-event.component.scss +197 -0
  45. package/projects/ngx-timeline/src/lib/components/ngx-timeline-event/ngx-timeline-event.component.spec.ts +89 -0
  46. package/projects/ngx-timeline/src/lib/components/ngx-timeline-event/ngx-timeline-event.component.ts +66 -0
  47. package/projects/ngx-timeline/src/lib/components/ngx-timeline.component.html +98 -0
  48. package/projects/ngx-timeline/src/lib/components/ngx-timeline.component.spec.ts +160 -0
  49. package/projects/ngx-timeline/src/lib/components/ngx-timeline.component.ts +187 -0
  50. package/projects/ngx-timeline/src/lib/components/ngx-timeline.scss +226 -0
  51. package/projects/ngx-timeline/src/lib/models/NgxConfigObj.ts +110 -0
  52. package/projects/ngx-timeline/src/lib/models/NgxTimelineEvent.ts +32 -0
  53. package/{lib/models/index.d.ts → projects/ngx-timeline/src/lib/models/index.ts} +2 -2
  54. package/projects/ngx-timeline/src/lib/ngx-timeline.module.ts +21 -0
  55. package/{lib/pipes/index.d.ts → projects/ngx-timeline/src/lib/pipes/index.ts} +1 -1
  56. package/projects/ngx-timeline/src/lib/pipes/ngx-date-pipe.ts +29 -0
  57. package/{public-api.d.ts → projects/ngx-timeline/src/public-api.ts} +7 -4
  58. package/projects/ngx-timeline/src/test.ts +26 -0
  59. package/projects/ngx-timeline/tsconfig.lib.json +25 -0
  60. package/projects/ngx-timeline/tsconfig.lib.prod.json +10 -0
  61. package/projects/ngx-timeline/tsconfig.spec.json +17 -0
  62. package/projects/ngx-timeline/tslint.json +17 -0
  63. package/tsconfig.json +35 -0
  64. package/tslint.json +140 -0
  65. package/bundles/frxjs-ngx-timeline.umd.js +0 -696
  66. package/bundles/frxjs-ngx-timeline.umd.js.map +0 -1
  67. package/bundles/frxjs-ngx-timeline.umd.min.js +0 -2
  68. package/bundles/frxjs-ngx-timeline.umd.min.js.map +0 -1
  69. package/esm2015/frxjs-ngx-timeline.js +0 -8
  70. package/esm2015/lib/components/index.js +0 -3
  71. package/esm2015/lib/components/ngx-timeline-event/ngx-timeline-event.component.js +0 -55
  72. package/esm2015/lib/components/ngx-timeline.component.js +0 -147
  73. package/esm2015/lib/models/NgxConfigObj.js +0 -93
  74. package/esm2015/lib/models/NgxTimelineEvent.js +0 -6
  75. package/esm2015/lib/models/index.js +0 -3
  76. package/esm2015/lib/ngx-timeline.module.js +0 -23
  77. package/esm2015/lib/pipes/index.js +0 -2
  78. package/esm2015/lib/pipes/ngx-date-pipe.js +0 -28
  79. package/esm2015/public-api.js +0 -8
  80. package/fesm2015/frxjs-ngx-timeline.js +0 -350
  81. package/fesm2015/frxjs-ngx-timeline.js.map +0 -1
  82. package/frxjs-ngx-timeline.d.ts +0 -7
  83. package/frxjs-ngx-timeline.metadata.json +0 -1
  84. package/lib/components/ngx-timeline-event/ngx-timeline-event.component.d.ts +0 -35
  85. package/lib/components/ngx-timeline.component.d.ts +0 -76
  86. package/lib/models/NgxConfigObj.d.ts +0 -59
  87. package/lib/models/NgxTimelineEvent.d.ts +0 -29
  88. package/lib/ngx-timeline.module.d.ts +0 -2
  89. package/lib/pipes/ngx-date-pipe.d.ts +0 -7
package/.editorconfig ADDED
@@ -0,0 +1,16 @@
1
+ # Editor configuration, see https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 2
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.ts]
12
+ quote_type = single
13
+
14
+ [*.md]
15
+ max_line_length = off
16
+ trim_trailing_whitespace = false
@@ -0,0 +1,48 @@
1
+ name: CI
2
+
3
+ # Controls when the workflow will run
4
+ on:
5
+ # Triggers the workflow on push or pull request events but only for the master branch
6
+ push:
7
+ branches: [ master ]
8
+ pull_request:
9
+ branches: [ master ]
10
+
11
+ # Allows you to run this workflow manually from the Actions tab
12
+ workflow_dispatch:
13
+
14
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15
+ jobs:
16
+ build:
17
+ # The type of runner that the job will run on
18
+ runs-on: ubuntu-latest
19
+
20
+ # Steps represent a sequence of tasks that will be executed as part of the job
21
+ steps:
22
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23
+ - uses: actions/checkout@v2
24
+
25
+ # Runs a single command using the runners shell
26
+ - name: Run npm install
27
+ run: npm install
28
+
29
+ - name: Run build prod
30
+ run: npm run build:prod
31
+
32
+ - name: Run test
33
+ run: node --max_old_space_size=4096 node_modules/@angular/cli/bin/ng test
34
+
35
+ #if the version will be updated in package.json to 1.2.3 with the commit message Release 1.2.3 this job action will perform a new tag before publishing
36
+ # npm-publish:
37
+ # name: npm-publish
38
+ # needs: build
39
+ # runs-on: ubuntu-latest
40
+ # steps:
41
+ # - uses: actions/checkout@v1
42
+ # - uses: actions/setup-node@v1
43
+ # with:
44
+ # node-version: 12
45
+ # registry-url: https://registry.npmjs.org/
46
+ # - run: npm run publish
47
+ # env:
48
+ # NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
package/README.md CHANGED
@@ -1,136 +1,136 @@
1
- # NgxTimeline ![check-code-coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)
2
-
3
- The main goal of this angular library is to give you the possibility to integrate a timeline in your app.
4
- <br/>
5
- Go to [here](https://emanuelefricano93.github.io/frxjs-Ngx-Timeline/) and discover all possible configurations for the timeline
6
-
7
- ![image](https://user-images.githubusercontent.com/26500344/130092921-8338496a-31df-46fa-b75f-40989eb53d33.png)
8
- <p align = "center">
9
- Fig.1 - Preview of <a href="https://emanuelefricano93.github.io/frxjs-Ngx-Timeline/">Timeline example configuration page</a>
10
- </p>
11
- <br/><br/>
12
-
13
-
14
- ## Installation
15
- Running the following command to install the library
16
- ```
17
- npm install @frxjs/ngx-timeline
18
- ```
19
- <br/><br/>
20
-
21
-
22
-
23
- ## Examples of Usage
24
-
25
- After installing the library and including NgxTimelineModule in your imports module you could add one of following examples to your template in order to display your timeline
26
-
27
- ```
28
- <ngx-timeline [events]="events"></ngx-timeline>
29
- <ngx-timeline [events]="events" [langCode]="it"></ngx-timeline>
30
- <ngx-timeline [events]="events" [langCode]="it" [enableAnimation]="false"></ngx-timeline>
31
- ```
32
- <br/><br/>
33
-
34
- ## Configuration
35
-
36
- ### Input
37
- Input name | Explanation | Mandatory | Type/Supported Values | Default value
38
- --- | --- | --- | --- | ---
39
- events | list of events to be displayed | yes | NgxTimelineEvent | no default
40
- langCode | language code use to format dates | no | <ul><li>'en'</li><li>'it'</li><li>'fr'</li><li>'de'</li><li>'es'</li></ul> | 'en'
41
- enableAnimation | Boolean used to enable or disable the animations | no | boolean | true
42
- groupEvent | Logic to be applied in order to group events | no | enum NgxTimelineEventGroup | NgxTimelineEventGroup.MONTH_YEAR
43
- changeSideInGroup | Logic to be applied in order to put evetns on LEFT or RIGHT | no | enum NgxTimelineEventChangeSideInGroup | NgxTimelineEventChangeSideInGroup.ON_DIFFERENT_DAY
44
- periodCustomTemplate | Custom Template displayed before a group of events | no | TemplateRef<any> | no default
45
- eventCustomTemplate | Custom Template displayed to show a single event | no | TemplateRef<any> | no default
46
- centerIconCustomTemplate | Custom Template displayed to show an separator icon | no | TemplateRef<any> | no default
47
- dateInstantCustomTemplate | Custom Template displayed to show the side date | no | TemplateRef<any> | no default
48
- innerEventCustomTemplate | Custom Template displayed to show the inner event | no | TemplateRef<any> | no default
49
- <br/>
50
-
51
- ### Output
52
- Output name | Explanation | Mandatory | Type/Supported Values | Default value
53
- --- | --- | --- | --- | ---
54
- clickEmitter | Output click event emitter | no | BehaviorSubject<NgxTimelineItem> | no default
55
- <br/>
56
-
57
- ### Types and Enums
58
- ```typescript
59
- interface NgxTimelineEvent {
60
- timestamp?: Date;
61
- title?: string;
62
- description?: string;
63
- id?: any;
64
- }
65
- ```
66
- ```typescript
67
- enum NgxTimelineEventGroup {
68
- YEAR = 'YEAR',
69
- MONTH_YEAR = 'MONTH_YEAR',
70
- DAY_MONTH_YEAR = 'DAY_MONTH_YEAR'
71
- }
72
- ```
73
- ```typescript
74
- enum NgxTimelineEventChangeSideInGroup {
75
- ALL = 'ALL',
76
- ON_DIFFERENT_HMS = 'ON_DIFFERENT_HMS',
77
- ON_DIFFERENT_DAY = 'ON_DIFFERENT_DAY',
78
- ON_DIFFERENT_MONTH = 'ON_DIFFERENT_MONTH'
79
- }
80
- ```
81
- <br/>
82
-
83
- ### Examples with contexts of custom templates
84
- ```html
85
- <ng-template #periodCustomTemplate let-period=period let-index=index>
86
- <div [ngClass]="{'transparent first-line': !index}" class="line"></div>
87
- <div class="period-container">
88
- <p>
89
- {{index}} - {{period | json }}
90
- </p>
91
- </div>
92
- <div class="line"></div>
93
- </ng-template>
94
- ```
95
- ```html
96
- <ng-template #centerIconCustomTemplate>
97
- <div class="icon-container">
98
- <img src="assets/image.png"/>
99
- </div>
100
- </ng-template>
101
- ```
102
- ```html
103
- <ng-template #innerEventCustomTemplate let-event=event>
104
- <div class="event" (click)="handleClick(event)">
105
- {{event | json}}
106
- </div>
107
- </ng-template>
108
- ```
109
- ```html
110
- <ng-template #eventCustomTemplate let-event=event let-colSidePosition=colSidePosition>
111
- <div class="event" (click)="handleClick(event)">
112
- {{event | json}}
113
- </div>
114
- </ng-template>
115
- ```
116
- ```html
117
- <ng-template #dateInstantCustomTemplate let-item=item>
118
- <span>
119
- {{item | json}}
120
- </span>
121
- </ng-template>
122
- ```
123
- <br/><br/>
124
-
125
- ## How to contribute
126
- First of all, in order to track everything, open an issue describing the problem or a missing functionality you would like to add to the lib.
127
-
128
- To start the contribution:
129
- - `npm run watch-lib` (you are builduing the lib with --watch options)
130
- - `npm run start-dev` (you are linking the lib and starting the demo app )
131
-
132
- Every time you will change the code in your lib, any update will trigger the re-load of the app.
133
- When your code will be ready, create a Pull Request and put the link in a comment under the issue you opened before.
134
- Now is time to enjoy and start to code.
135
-
136
- Thanks in advance for your contribution
1
+ # NgxTimeline ![check-code-coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)
2
+
3
+ The main goal of this angular library is to give you the possibility to integrate a timeline in your app.
4
+ <br/>
5
+ Go [here](https://emanuelefricano93.github.io/frxjs-Ngx-Timeline/) and discover all possible configurations for the timeline
6
+
7
+ ![image](https://user-images.githubusercontent.com/26500344/130092921-8338496a-31df-46fa-b75f-40989eb53d33.png)
8
+ <p align = "center">
9
+ Fig.1 - Preview of <a href="https://emanuelefricano93.github.io/frxjs-Ngx-Timeline/">Timeline example configuration page</a>
10
+ </p>
11
+ <br/><br/>
12
+
13
+
14
+ ## Installation
15
+ Running the following command to install the library
16
+ ```
17
+ npm install @frxjs/ngx-timeline
18
+ ```
19
+ <br/><br/>
20
+
21
+
22
+
23
+ ## Examples of Usage
24
+
25
+ After installing the library and including NgxTimelineModule in your imports module you could add one of following examples to your template in order to display your timeline
26
+
27
+ ```
28
+ <ngx-timeline [events]="events"></ngx-timeline>
29
+ <ngx-timeline [events]="events" [langCode]="it"></ngx-timeline>
30
+ <ngx-timeline [events]="events" [langCode]="it" [enableAnimation]="false"></ngx-timeline>
31
+ ```
32
+ <br/><br/>
33
+
34
+ ## Configuration
35
+
36
+ ### Input
37
+ Input name | Explanation | Mandatory | Type/Supported Values | Default value
38
+ --- | --- | --- | --- | ---
39
+ events | list of events to be displayed | yes | NgxTimelineEvent | no default
40
+ langCode | language code use to format dates | no | <ul><li>'en'</li><li>'it'</li><li>'fr'</li><li>'de'</li><li>'es'</li></ul> | 'en'
41
+ enableAnimation | Boolean used to enable or disable the animations | no | boolean | true
42
+ groupEvent | Logic to be applied in order to group events | no | enum NgxTimelineEventGroup | NgxTimelineEventGroup.MONTH_YEAR
43
+ changeSideInGroup | Logic to be applied in order to put evetns on LEFT or RIGHT | no | enum NgxTimelineEventChangeSideInGroup | NgxTimelineEventChangeSideInGroup.ON_DIFFERENT_DAY
44
+ periodCustomTemplate | Custom Template displayed before a group of events | no | TemplateRef<any> | no default
45
+ eventCustomTemplate | Custom Template displayed to show a single event | no | TemplateRef<any> | no default
46
+ centerIconCustomTemplate | Custom Template displayed to show an separator icon | no | TemplateRef<any> | no default
47
+ dateInstantCustomTemplate | Custom Template displayed to show the side date | no | TemplateRef<any> | no default
48
+ innerEventCustomTemplate | Custom Template displayed to show the inner event | no | TemplateRef<any> | no default
49
+ <br/>
50
+
51
+ ### Output
52
+ Output name | Explanation | Mandatory | Type/Supported Values | Default value
53
+ --- | --- | --- | --- | ---
54
+ clickEmitter | Output click event emitter | no | BehaviorSubject<NgxTimelineItem> | no default
55
+ <br/>
56
+
57
+ ### Types and Enums
58
+ ```typescript
59
+ interface NgxTimelineEvent {
60
+ timestamp?: Date;
61
+ title?: string;
62
+ description?: string;
63
+ id?: any;
64
+ }
65
+ ```
66
+ ```typescript
67
+ enum NgxTimelineEventGroup {
68
+ YEAR = 'YEAR',
69
+ MONTH_YEAR = 'MONTH_YEAR',
70
+ DAY_MONTH_YEAR = 'DAY_MONTH_YEAR'
71
+ }
72
+ ```
73
+ ```typescript
74
+ enum NgxTimelineEventChangeSideInGroup {
75
+ ALL = 'ALL',
76
+ ON_DIFFERENT_HMS = 'ON_DIFFERENT_HMS',
77
+ ON_DIFFERENT_DAY = 'ON_DIFFERENT_DAY',
78
+ ON_DIFFERENT_MONTH = 'ON_DIFFERENT_MONTH'
79
+ }
80
+ ```
81
+ <br/>
82
+
83
+ ### Examples with contexts of custom templates
84
+ ```html
85
+ <ng-template #periodCustomTemplate let-period=period let-index=index>
86
+ <div [ngClass]="{'transparent first-line': !index}" class="line"></div>
87
+ <div class="period-container">
88
+ <p>
89
+ {{index}} - {{period | json }}
90
+ </p>
91
+ </div>
92
+ <div class="line"></div>
93
+ </ng-template>
94
+ ```
95
+ ```html
96
+ <ng-template #centerIconCustomTemplate>
97
+ <div class="icon-container">
98
+ <img src="assets/image.png"/>
99
+ </div>
100
+ </ng-template>
101
+ ```
102
+ ```html
103
+ <ng-template #innerEventCustomTemplate let-event=event>
104
+ <div class="event" (click)="handleClick(event)">
105
+ {{event | json}}
106
+ </div>
107
+ </ng-template>
108
+ ```
109
+ ```html
110
+ <ng-template #eventCustomTemplate let-event=event let-colSidePosition=colSidePosition>
111
+ <div class="event" (click)="handleClick(event)">
112
+ {{event | json}}
113
+ </div>
114
+ </ng-template>
115
+ ```
116
+ ```html
117
+ <ng-template #dateInstantCustomTemplate let-item=item>
118
+ <span>
119
+ {{item | json}}
120
+ </span>
121
+ </ng-template>
122
+ ```
123
+ <br/><br/>
124
+
125
+ ## How to contribute
126
+ First of all, in order to track everything, open an issue describing the problem or a missing functionality you would like to add to the lib.
127
+
128
+ To start the contribution:
129
+ - `npm run watch-lib` (you are builduing the lib with --watch options)
130
+ - `npm run start-dev` (you are linking the lib and starting the demo app )
131
+
132
+ Every time you will change the code in your lib, any update will trigger the re-load of the app.
133
+ When your code will be ready, create a Pull Request and put the link in a comment under the issue you opened before.
134
+ Now it's time to enjoy and start to code.
135
+
136
+ Thanks in advance for your contribution
package/angular.json ADDED
@@ -0,0 +1,178 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "ngx-timeline": {
7
+ "projectType": "library",
8
+ "root": "projects/ngx-timeline",
9
+ "sourceRoot": "projects/ngx-timeline/src",
10
+ "prefix": "lib",
11
+ "architect": {
12
+ "build": {
13
+ "builder": "@angular-devkit/build-angular:ng-packagr",
14
+ "options": {
15
+ "tsConfig": "projects/ngx-timeline/tsconfig.lib.json",
16
+ "project": "projects/ngx-timeline/ng-package.json"
17
+ },
18
+ "configurations": {
19
+ "production": {
20
+ "tsConfig": "projects/ngx-timeline/tsconfig.lib.prod.json"
21
+ }
22
+ }
23
+ },
24
+ "test": {
25
+ "builder": "@angular-devkit/build-angular:karma",
26
+ "options": {
27
+ "main": "projects/ngx-timeline/src/test.ts",
28
+ "tsConfig": "projects/ngx-timeline/tsconfig.spec.json",
29
+ "codeCoverage": true,
30
+ "karmaConfig": "projects/ngx-timeline/karma.conf.js"
31
+ }
32
+ },
33
+ "lint": {
34
+ "builder": "@angular-devkit/build-angular:tslint",
35
+ "options": {
36
+ "tsConfig": [
37
+ "projects/ngx-timeline/tsconfig.lib.json",
38
+ "projects/ngx-timeline/tsconfig.spec.json"
39
+ ],
40
+ "exclude": [
41
+ "**/node_modules/**"
42
+ ]
43
+ }
44
+ }
45
+ }
46
+ },
47
+ "demo-app": {
48
+ "projectType": "application",
49
+ "schematics": {
50
+ "@schematics/angular:component": {
51
+ "style": "scss"
52
+ }
53
+ },
54
+ "root": "projects/demo-app",
55
+ "sourceRoot": "projects/demo-app/src",
56
+ "prefix": "app",
57
+ "architect": {
58
+ "build": {
59
+ "builder": "@angular-devkit/build-angular:browser",
60
+ "options": {
61
+ "outputPath": "docs",
62
+ "index": "projects/demo-app/src/index.html",
63
+ "main": "projects/demo-app/src/main.ts",
64
+ "polyfills": "projects/demo-app/src/polyfills.ts",
65
+ "tsConfig": "projects/demo-app/tsconfig.app.json",
66
+ "assets": [
67
+ "projects/demo-app/src/favicon.ico",
68
+ "projects/demo-app/src/assets"
69
+ ],
70
+ "styles": [
71
+ "projects/demo-app/src/styles.scss"
72
+ ],
73
+ "scripts": [],
74
+ "vendorChunk": true,
75
+ "extractLicenses": false,
76
+ "buildOptimizer": false,
77
+ "sourceMap": true,
78
+ "optimization": false,
79
+ "namedChunks": true
80
+ },
81
+ "configurations": {
82
+ "production": {
83
+ "fileReplacements": [
84
+ {
85
+ "replace": "projects/demo-app/src/environments/environment.ts",
86
+ "with": "projects/demo-app/src/environments/environment.prod.ts"
87
+ }
88
+ ],
89
+ "optimization": true,
90
+ "outputHashing": "all",
91
+ "sourceMap": false,
92
+ "namedChunks": false,
93
+ "extractLicenses": true,
94
+ "vendorChunk": false,
95
+ "buildOptimizer": true,
96
+ "budgets": [
97
+ {
98
+ "type": "initial",
99
+ "maximumWarning": "2mb",
100
+ "maximumError": "5mb"
101
+ },
102
+ {
103
+ "type": "anyComponentStyle",
104
+ "maximumWarning": "6kb",
105
+ "maximumError": "10kb"
106
+ }
107
+ ]
108
+ }
109
+ },
110
+ "defaultConfiguration": ""
111
+ },
112
+ "serve": {
113
+ "builder": "@angular-devkit/build-angular:dev-server",
114
+ "options": {
115
+ "browserTarget": "demo-app:build"
116
+ },
117
+ "configurations": {
118
+ "production": {
119
+ "browserTarget": "demo-app:build:production"
120
+ }
121
+ }
122
+ },
123
+ "extract-i18n": {
124
+ "builder": "@angular-devkit/build-angular:extract-i18n",
125
+ "options": {
126
+ "browserTarget": "demo-app:build"
127
+ }
128
+ },
129
+ "test": {
130
+ "builder": "@angular-devkit/build-angular:karma",
131
+ "options": {
132
+ "main": "projects/demo-app/src/test.ts",
133
+ "polyfills": "projects/demo-app/src/polyfills.ts",
134
+ "tsConfig": "projects/demo-app/tsconfig.spec.json",
135
+ "karmaConfig": "projects/demo-app/karma.conf.js",
136
+ "assets": [
137
+ "projects/demo-app/src/favicon.ico",
138
+ "projects/demo-app/src/assets"
139
+ ],
140
+ "styles": [
141
+ "projects/demo-app/src/styles.scss"
142
+ ],
143
+ "scripts": []
144
+ }
145
+ },
146
+ "lint": {
147
+ "builder": "@angular-devkit/build-angular:tslint",
148
+ "options": {
149
+ "tsConfig": [
150
+ "projects/demo-app/tsconfig.app.json",
151
+ "projects/demo-app/tsconfig.spec.json",
152
+ "projects/demo-app/e2e/tsconfig.json"
153
+ ],
154
+ "exclude": [
155
+ "**/node_modules/**"
156
+ ]
157
+ }
158
+ },
159
+ "e2e": {
160
+ "builder": "@angular-devkit/build-angular:protractor",
161
+ "options": {
162
+ "protractorConfig": "projects/demo-app/e2e/protractor.conf.js",
163
+ "devServerTarget": "demo-app:serve"
164
+ },
165
+ "configurations": {
166
+ "production": {
167
+ "devServerTarget": "demo-app:serve:production"
168
+ }
169
+ }
170
+ }
171
+ }
172
+ }
173
+ },
174
+ "defaultProject": "ngx-timeline",
175
+ "cli": {
176
+ "analytics": false
177
+ }
178
+ }