@hmcts/ccd-case-ui-toolkit 5.0.0-angular11-upgrade → 5.0.1-angular11-upgrade

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.
@@ -74074,7 +74074,7 @@
74074
74074
  "optional": false,
74075
74075
  "returnType": "void",
74076
74076
  "typeParameters": [],
74077
- "line": 182,
74077
+ "line": 181,
74078
74078
  "deprecated": false,
74079
74079
  "deprecationMessage": "",
74080
74080
  "modifierKind": [
@@ -74133,7 +74133,7 @@
74133
74133
  "optional": false,
74134
74134
  "returnType": "void",
74135
74135
  "typeParameters": [],
74136
- "line": 174,
74136
+ "line": 173,
74137
74137
  "deprecated": false,
74138
74138
  "deprecationMessage": "",
74139
74139
  "modifierKind": [
@@ -74223,7 +74223,7 @@
74223
74223
  "optional": false,
74224
74224
  "returnType": "void",
74225
74225
  "typeParameters": [],
74226
- "line": 169,
74226
+ "line": 168,
74227
74227
  "deprecated": false,
74228
74228
  "deprecationMessage": "",
74229
74229
  "modifierKind": [
@@ -74249,7 +74249,7 @@
74249
74249
  "optional": false,
74250
74250
  "returnType": "boolean",
74251
74251
  "typeParameters": [],
74252
- "line": 190,
74252
+ "line": 189,
74253
74253
  "deprecated": false,
74254
74254
  "deprecationMessage": "",
74255
74255
  "modifierKind": [
@@ -74341,7 +74341,7 @@
74341
74341
  "optional": false,
74342
74342
  "returnType": "boolean",
74343
74343
  "typeParameters": [],
74344
- "line": 225,
74344
+ "line": 224,
74345
74345
  "deprecated": false,
74346
74346
  "deprecationMessage": "",
74347
74347
  "modifierKind": [
@@ -79905,14 +79905,14 @@
79905
79905
  "file": "src/shared/components/case-header/case-header.component.stories.ts",
79906
79906
  "deprecated": false,
79907
79907
  "deprecationMessage": "",
79908
- "type": "Story",
79908
+ "type": "",
79909
79909
  "defaultValue": "template.bind({})"
79910
79910
  },
79911
79911
  {
79912
79912
  "name": "standard",
79913
79913
  "ctype": "miscellaneous",
79914
79914
  "subtype": "variable",
79915
- "file": "src/shared/components/error-message/error-message.component.stories.ts",
79915
+ "file": "src/shared/components/case-header/case-header.component.stories.ts",
79916
79916
  "deprecated": false,
79917
79917
  "deprecationMessage": "",
79918
79918
  "type": "Story",
@@ -79922,7 +79922,7 @@
79922
79922
  "name": "standard",
79923
79923
  "ctype": "miscellaneous",
79924
79924
  "subtype": "variable",
79925
- "file": "src/shared/components/loading-spinner/loading-spinner.component.stories.ts",
79925
+ "file": "src/shared/components/error-message/error-message.component.stories.ts",
79926
79926
  "deprecated": false,
79927
79927
  "deprecationMessage": "",
79928
79928
  "type": "Story",
@@ -80058,6 +80058,16 @@
80058
80058
  "type": "Story",
80059
80059
  "defaultValue": "template.bind({})"
80060
80060
  },
80061
+ {
80062
+ "name": "standard",
80063
+ "ctype": "miscellaneous",
80064
+ "subtype": "variable",
80065
+ "file": "src/shared/components/palette/text-area/read-text-area-field.component.stories.ts",
80066
+ "deprecated": false,
80067
+ "deprecationMessage": "",
80068
+ "type": "Story",
80069
+ "defaultValue": "template.bind({})"
80070
+ },
80061
80071
  {
80062
80072
  "name": "standard",
80063
80073
  "ctype": "miscellaneous",
@@ -80228,6 +80238,56 @@
80228
80238
  "type": "Story<ReadTextFieldComponent>",
80229
80239
  "defaultValue": "(args: ReadTextFieldComponent) => ({\r\n props: args,\r\n})"
80230
80240
  },
80241
+ {
80242
+ "name": "template",
80243
+ "ctype": "miscellaneous",
80244
+ "subtype": "variable",
80245
+ "file": "src/shared/components/palette/organisation/read-organisation-field.component.stories.ts",
80246
+ "deprecated": false,
80247
+ "deprecationMessage": "",
80248
+ "type": "Story<ReadOrganisationFieldComponent>",
80249
+ "defaultValue": "(args: ReadOrganisationFieldComponent) => ({\n props: args,\n})"
80250
+ },
80251
+ {
80252
+ "name": "template",
80253
+ "ctype": "miscellaneous",
80254
+ "subtype": "variable",
80255
+ "file": "src/shared/components/palette/organisation/write-organisation-field.component.stories.ts",
80256
+ "deprecated": false,
80257
+ "deprecationMessage": "",
80258
+ "type": "Story<WriteOrganisationFieldComponent>",
80259
+ "defaultValue": "(args: WriteOrganisationFieldComponent) => ({\n props: args,\n})"
80260
+ },
80261
+ {
80262
+ "name": "template",
80263
+ "ctype": "miscellaneous",
80264
+ "subtype": "variable",
80265
+ "file": "src/shared/components/palette/phone-uk/read-phone-uk-field.component.stories.ts",
80266
+ "deprecated": false,
80267
+ "deprecationMessage": "",
80268
+ "type": "Story<ReadPhoneUKFieldComponent>",
80269
+ "defaultValue": "(args: ReadPhoneUKFieldComponent) => ({\n props: args,\n})"
80270
+ },
80271
+ {
80272
+ "name": "template",
80273
+ "ctype": "miscellaneous",
80274
+ "subtype": "variable",
80275
+ "file": "src/shared/components/palette/phone-uk/write-phone-uk-field.component.stories.ts",
80276
+ "deprecated": false,
80277
+ "deprecationMessage": "",
80278
+ "type": "Story<WritePhoneUKFieldComponent>",
80279
+ "defaultValue": "(args: WritePhoneUKFieldComponent) => ({\n props: args,\n})"
80280
+ },
80281
+ {
80282
+ "name": "template",
80283
+ "ctype": "miscellaneous",
80284
+ "subtype": "variable",
80285
+ "file": "src/shared/components/palette/text/read-text-field.component.stories.ts",
80286
+ "deprecated": false,
80287
+ "deprecationMessage": "",
80288
+ "type": "Story<ReadTextFieldComponent>",
80289
+ "defaultValue": "(args: ReadTextFieldComponent) => ({\n props: args,\n})"
80290
+ },
80231
80291
  {
80232
80292
  "name": "template",
80233
80293
  "ctype": "miscellaneous",
@@ -80268,6 +80328,16 @@
80268
80328
  "type": "Story<ReadTextAreaFieldComponent>",
80269
80329
  "defaultValue": "(args: ReadTextAreaFieldComponent) => ({\r\n props: args,\r\n})"
80270
80330
  },
80331
+ {
80332
+ "name": "template",
80333
+ "ctype": "miscellaneous",
80334
+ "subtype": "variable",
80335
+ "file": "src/shared/components/palette/text-area/read-text-area-field.component.stories.ts",
80336
+ "deprecated": false,
80337
+ "deprecationMessage": "",
80338
+ "type": "Story<ReadTextAreaFieldComponent>",
80339
+ "defaultValue": "(args: ReadTextAreaFieldComponent) => ({\n props: args,\n})"
80340
+ },
80271
80341
  {
80272
80342
  "name": "template",
80273
80343
  "ctype": "miscellaneous",
@@ -82080,32 +82150,32 @@
82080
82150
  "defaultValue": "(args: ReadTextFieldComponent) => ({\r\n props: args,\r\n})"
82081
82151
  }
82082
82152
  ],
82083
- "src/shared/components/palette/text/write-text-field.component.stories.ts": [
82153
+ "src/shared/components/palette/organisation/read-organisation-field.component.stories.ts": [
82084
82154
  {
82085
82155
  "name": "caseField",
82086
82156
  "ctype": "miscellaneous",
82087
82157
  "subtype": "variable",
82088
- "file": "src/shared/components/palette/text/write-text-field.component.stories.ts",
82158
+ "file": "src/shared/components/palette/organisation/read-organisation-field.component.stories.ts",
82089
82159
  "deprecated": false,
82090
82160
  "deprecationMessage": "",
82091
82161
  "type": "",
82092
- "defaultValue": "createCaseField('text', 'Hello World', '', caseFieldType, 'MANDATORY')"
82162
+ "defaultValue": "createCaseField('organisationName', 'New Organisation', 'Add new organisation name', caseFieldType, 'MANDATORY')"
82093
82163
  },
82094
82164
  {
82095
82165
  "name": "caseFieldType",
82096
82166
  "ctype": "miscellaneous",
82097
82167
  "subtype": "variable",
82098
- "file": "src/shared/components/palette/text/write-text-field.component.stories.ts",
82168
+ "file": "src/shared/components/palette/organisation/read-organisation-field.component.stories.ts",
82099
82169
  "deprecated": false,
82100
82170
  "deprecationMessage": "",
82101
82171
  "type": "",
82102
- "defaultValue": "createFieldType('text', 'Text')"
82172
+ "defaultValue": "createFieldType('organisationName', 'Text')"
82103
82173
  },
82104
82174
  {
82105
82175
  "name": "standard",
82106
82176
  "ctype": "miscellaneous",
82107
82177
  "subtype": "variable",
82108
- "file": "src/shared/components/palette/text/write-text-field.component.stories.ts",
82178
+ "file": "src/shared/components/palette/organisation/read-organisation-field.component.stories.ts",
82109
82179
  "deprecated": false,
82110
82180
  "deprecationMessage": "",
82111
82181
  "type": "Story",
@@ -82115,13 +82185,55 @@
82115
82185
  "name": "template",
82116
82186
  "ctype": "miscellaneous",
82117
82187
  "subtype": "variable",
82118
- "file": "src/shared/components/palette/text/write-text-field.component.stories.ts",
82188
+ "file": "src/shared/components/palette/organisation/read-organisation-field.component.stories.ts",
82119
82189
  "deprecated": false,
82120
82190
  "deprecationMessage": "",
82121
82191
  "type": "Story<WriteTextFieldComponent>",
82122
82192
  "defaultValue": "(args: WriteTextFieldComponent) => ({\r\n props: args,\r\n})"
82123
82193
  }
82124
82194
  ],
82195
+ "src/shared/components/palette/organisation/write-organisation-field.component.stories.ts": [
82196
+ {
82197
+ "name": "caseField",
82198
+ "ctype": "miscellaneous",
82199
+ "subtype": "variable",
82200
+ "file": "src/shared/components/palette/organisation/write-organisation-field.component.stories.ts",
82201
+ "deprecated": false,
82202
+ "deprecationMessage": "",
82203
+ "type": "",
82204
+ "defaultValue": "createCaseField('textArea', 'Write message', 'Write your message', caseFieldType, 'MANDATORY')"
82205
+ },
82206
+ {
82207
+ "name": "caseFieldType",
82208
+ "ctype": "miscellaneous",
82209
+ "subtype": "variable",
82210
+ "file": "src/shared/components/palette/organisation/write-organisation-field.component.stories.ts",
82211
+ "deprecated": false,
82212
+ "deprecationMessage": "",
82213
+ "type": "",
82214
+ "defaultValue": "createFieldType('organisationName', 'Text')"
82215
+ },
82216
+ {
82217
+ "name": "standard",
82218
+ "ctype": "miscellaneous",
82219
+ "subtype": "variable",
82220
+ "file": "src/shared/components/palette/organisation/write-organisation-field.component.stories.ts",
82221
+ "deprecated": false,
82222
+ "deprecationMessage": "",
82223
+ "type": "Story",
82224
+ "defaultValue": "template.bind({})"
82225
+ },
82226
+ {
82227
+ "name": "template",
82228
+ "ctype": "miscellaneous",
82229
+ "subtype": "variable",
82230
+ "file": "src/shared/components/palette/organisation/write-organisation-field.component.stories.ts",
82231
+ "deprecated": false,
82232
+ "deprecationMessage": "",
82233
+ "type": "Story<WriteTextAreaFieldComponent>",
82234
+ "defaultValue": "(args: WriteTextAreaFieldComponent) => ({\r\n props: args,\r\n})"
82235
+ }
82236
+ ],
82125
82237
  "src/shared/components/palette/phone-uk/read-phone-uk-field.component.stories.ts": [
82126
82238
  {
82127
82239
  "name": "caseField",
@@ -82161,7 +82273,7 @@
82161
82273
  "deprecated": false,
82162
82274
  "deprecationMessage": "",
82163
82275
  "type": "Story<ReadPhoneUKFieldComponent>",
82164
- "defaultValue": "(args: ReadPhoneUKFieldComponent) => ({\r\n props: args,\r\n})"
82276
+ "defaultValue": "(args: ReadPhoneUKFieldComponent) => ({\n props: args,\n})"
82165
82277
  }
82166
82278
  ],
82167
82279
  "src/shared/components/palette/phone-uk/write-phone-uk-field.component.stories.ts": [
@@ -82203,7 +82315,91 @@
82203
82315
  "deprecated": false,
82204
82316
  "deprecationMessage": "",
82205
82317
  "type": "Story<WritePhoneUKFieldComponent>",
82206
- "defaultValue": "(args: WritePhoneUKFieldComponent) => ({\r\n props: args,\r\n})"
82318
+ "defaultValue": "(args: WritePhoneUKFieldComponent) => ({\n props: args,\n})"
82319
+ }
82320
+ ],
82321
+ "src/shared/components/palette/text/read-text-field.component.stories.ts": [
82322
+ {
82323
+ "name": "caseField",
82324
+ "ctype": "miscellaneous",
82325
+ "subtype": "variable",
82326
+ "file": "src/shared/components/palette/text/read-text-field.component.stories.ts",
82327
+ "deprecated": false,
82328
+ "deprecationMessage": "",
82329
+ "type": "",
82330
+ "defaultValue": "createCaseField('text', 'Hello World', '', caseFieldType, 'MANDATORY')"
82331
+ },
82332
+ {
82333
+ "name": "caseFieldType",
82334
+ "ctype": "miscellaneous",
82335
+ "subtype": "variable",
82336
+ "file": "src/shared/components/palette/text/read-text-field.component.stories.ts",
82337
+ "deprecated": false,
82338
+ "deprecationMessage": "",
82339
+ "type": "",
82340
+ "defaultValue": "createFieldType('text', 'Text')"
82341
+ },
82342
+ {
82343
+ "name": "standard",
82344
+ "ctype": "miscellaneous",
82345
+ "subtype": "variable",
82346
+ "file": "src/shared/components/palette/text/read-text-field.component.stories.ts",
82347
+ "deprecated": false,
82348
+ "deprecationMessage": "",
82349
+ "type": "Story",
82350
+ "defaultValue": "template.bind({})"
82351
+ },
82352
+ {
82353
+ "name": "template",
82354
+ "ctype": "miscellaneous",
82355
+ "subtype": "variable",
82356
+ "file": "src/shared/components/palette/text/read-text-field.component.stories.ts",
82357
+ "deprecated": false,
82358
+ "deprecationMessage": "",
82359
+ "type": "Story<ReadTextFieldComponent>",
82360
+ "defaultValue": "(args: ReadTextFieldComponent) => ({\n props: args,\n})"
82361
+ }
82362
+ ],
82363
+ "src/shared/components/palette/text/write-text-field.component.stories.ts": [
82364
+ {
82365
+ "name": "caseField",
82366
+ "ctype": "miscellaneous",
82367
+ "subtype": "variable",
82368
+ "file": "src/shared/components/palette/text/write-text-field.component.stories.ts",
82369
+ "deprecated": false,
82370
+ "deprecationMessage": "",
82371
+ "type": "",
82372
+ "defaultValue": "createCaseField('text', 'Hello World', '', caseFieldType, 'MANDATORY')"
82373
+ },
82374
+ {
82375
+ "name": "caseFieldType",
82376
+ "ctype": "miscellaneous",
82377
+ "subtype": "variable",
82378
+ "file": "src/shared/components/palette/text/write-text-field.component.stories.ts",
82379
+ "deprecated": false,
82380
+ "deprecationMessage": "",
82381
+ "type": "",
82382
+ "defaultValue": "createFieldType('text', 'Text')"
82383
+ },
82384
+ {
82385
+ "name": "standard",
82386
+ "ctype": "miscellaneous",
82387
+ "subtype": "variable",
82388
+ "file": "src/shared/components/palette/text/write-text-field.component.stories.ts",
82389
+ "deprecated": false,
82390
+ "deprecationMessage": "",
82391
+ "type": "Story",
82392
+ "defaultValue": "template.bind({})"
82393
+ },
82394
+ {
82395
+ "name": "template",
82396
+ "ctype": "miscellaneous",
82397
+ "subtype": "variable",
82398
+ "file": "src/shared/components/palette/text/write-text-field.component.stories.ts",
82399
+ "deprecated": false,
82400
+ "deprecationMessage": "",
82401
+ "type": "Story<WriteTextFieldComponent>",
82402
+ "defaultValue": "(args: WriteTextFieldComponent) => ({\n props: args,\n})"
82207
82403
  }
82208
82404
  ],
82209
82405
  "src/shared/components/palette/text-area/read-text-area-field.component.stories.ts": [
@@ -82245,7 +82441,7 @@
82245
82441
  "deprecated": false,
82246
82442
  "deprecationMessage": "",
82247
82443
  "type": "Story<ReadTextAreaFieldComponent>",
82248
- "defaultValue": "(args: ReadTextAreaFieldComponent) => ({\r\n props: args,\r\n})"
82444
+ "defaultValue": "(args: ReadTextAreaFieldComponent) => ({\n props: args,\n})"
82249
82445
  }
82250
82446
  ],
82251
82447
  "src/shared/components/palette/text-area/write-text-area-field.component.stories.ts": [
@@ -82287,7 +82483,7 @@
82287
82483
  "deprecated": false,
82288
82484
  "deprecationMessage": "",
82289
82485
  "type": "Story<WriteTextAreaFieldComponent>",
82290
- "defaultValue": "(args: WriteTextAreaFieldComponent) => ({\r\n props: args,\r\n})"
82486
+ "defaultValue": "(args: WriteTextAreaFieldComponent) => ({\n props: args,\n})"
82291
82487
  }
82292
82488
  ],
82293
82489
  "src/shared/components/palette/yes-no/read-yes-no-field.component.stories.ts": [
@@ -86338,6 +86534,46 @@
86338
86534
  "coverageCount": "2/13",
86339
86535
  "status": "low"
86340
86536
  },
86537
+ {
86538
+ "filePath": "src/shared/components/palette/organisation/read-organisation-field.component.stories.ts",
86539
+ "type": "variable",
86540
+ "linktype": "miscellaneous",
86541
+ "linksubtype": "variable",
86542
+ "name": "caseField",
86543
+ "coveragePercent": 0,
86544
+ "coverageCount": "0/1",
86545
+ "status": "low"
86546
+ },
86547
+ {
86548
+ "filePath": "src/shared/components/palette/organisation/read-organisation-field.component.stories.ts",
86549
+ "type": "variable",
86550
+ "linktype": "miscellaneous",
86551
+ "linksubtype": "variable",
86552
+ "name": "caseFieldType",
86553
+ "coveragePercent": 0,
86554
+ "coverageCount": "0/1",
86555
+ "status": "low"
86556
+ },
86557
+ {
86558
+ "filePath": "src/shared/components/palette/organisation/read-organisation-field.component.stories.ts",
86559
+ "type": "variable",
86560
+ "linktype": "miscellaneous",
86561
+ "linksubtype": "variable",
86562
+ "name": "standard",
86563
+ "coveragePercent": 0,
86564
+ "coverageCount": "0/1",
86565
+ "status": "low"
86566
+ },
86567
+ {
86568
+ "filePath": "src/shared/components/palette/organisation/read-organisation-field.component.stories.ts",
86569
+ "type": "variable",
86570
+ "linktype": "miscellaneous",
86571
+ "linksubtype": "variable",
86572
+ "name": "template",
86573
+ "coveragePercent": 0,
86574
+ "coverageCount": "0/1",
86575
+ "status": "low"
86576
+ },
86341
86577
  {
86342
86578
  "filePath": "src/shared/components/palette/organisation/read-organisation-field.component.ts",
86343
86579
  "type": "component",
@@ -86356,6 +86592,46 @@
86356
86592
  "coverageCount": "0/18",
86357
86593
  "status": "low"
86358
86594
  },
86595
+ {
86596
+ "filePath": "src/shared/components/palette/organisation/write-organisation-field.component.stories.ts",
86597
+ "type": "variable",
86598
+ "linktype": "miscellaneous",
86599
+ "linksubtype": "variable",
86600
+ "name": "caseField",
86601
+ "coveragePercent": 0,
86602
+ "coverageCount": "0/1",
86603
+ "status": "low"
86604
+ },
86605
+ {
86606
+ "filePath": "src/shared/components/palette/organisation/write-organisation-field.component.stories.ts",
86607
+ "type": "variable",
86608
+ "linktype": "miscellaneous",
86609
+ "linksubtype": "variable",
86610
+ "name": "caseFieldType",
86611
+ "coveragePercent": 0,
86612
+ "coverageCount": "0/1",
86613
+ "status": "low"
86614
+ },
86615
+ {
86616
+ "filePath": "src/shared/components/palette/organisation/write-organisation-field.component.stories.ts",
86617
+ "type": "variable",
86618
+ "linktype": "miscellaneous",
86619
+ "linksubtype": "variable",
86620
+ "name": "standard",
86621
+ "coveragePercent": 0,
86622
+ "coverageCount": "0/1",
86623
+ "status": "low"
86624
+ },
86625
+ {
86626
+ "filePath": "src/shared/components/palette/organisation/write-organisation-field.component.stories.ts",
86627
+ "type": "variable",
86628
+ "linktype": "miscellaneous",
86629
+ "linksubtype": "variable",
86630
+ "name": "template",
86631
+ "coveragePercent": 0,
86632
+ "coverageCount": "0/1",
86633
+ "status": "low"
86634
+ },
86359
86635
  {
86360
86636
  "filePath": "src/shared/components/palette/organisation/write-organisation-field.component.ts",
86361
86637
  "type": "component",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccd-case-ui-toolkit",
3
- "version": "5.0.0-angular11-upgrade",
3
+ "version": "5.0.1-angular11-upgrade",
4
4
  "engines": {
5
5
  "yarn": "^1.22.15",
6
6
  "npm": "^8.10.0"
package/gulpfile.js DELETED
@@ -1,71 +0,0 @@
1
- const gulp = require('gulp');
2
- const sass = require('gulp-sass')(require('sass'));
3
- const inlineTemplates = require('gulp-inline-ng2-template');
4
- const exec = require('child_process').exec;
5
- const merge = require('merge-stream');
6
-
7
- /**
8
- * Inline templates configuration.
9
- * @see https://github.com/ludohenin/gulp-inline-ng2-template
10
- */
11
- const INLINE_TEMPLATES = {
12
- SRC: './src/**/*.ts',
13
- DIST: './tmp/src-inlined',
14
- CONFIG: {
15
- base: '/src',
16
- target: 'es6',
17
- useRelativePaths: true,
18
- styleProcessor: compileSass
19
- }
20
- };
21
-
22
- /**
23
- * Inline external HTML and SCSS templates into Angular component files.
24
- * @see: https://github.com/ludohenin/gulp-inline-ng2-template
25
- */
26
- gulp.task('inline-templates', gulp.series(async () => {
27
- return gulp.src(INLINE_TEMPLATES.SRC)
28
- .pipe(inlineTemplates(INLINE_TEMPLATES.CONFIG))
29
- .pipe(gulp.dest(INLINE_TEMPLATES.DIST));
30
- }));
31
-
32
- /**
33
- * Copy Case UI Toolkit styles.
34
- */
35
- gulp.task('copy-cut-styles', gulp.series(() => {
36
- return merge(
37
- gulp.src('**/*.scss', {base: 'src', cwd: 'src'})
38
- ).pipe(gulp.dest('dist/cut-styles'));
39
- }));
40
-
41
- /**
42
- * Build ESM by running npm task.
43
- * This is a temporary solution until ngc is supported --watch mode.
44
- * @see: https://github.com/angular/angular/issues/12867
45
- */
46
- gulp.task('build:esm', gulp.series('inline-templates', 'copy-cut-styles', (callback) => {
47
- exec('npm run ngcompile', function (error, stdout, stderr) {
48
- console.log(stdout, stderr);
49
- callback(error)
50
- });
51
- }));
52
-
53
- /**
54
- * Implements ESM build watch mode.
55
- * This is a temporary solution until ngc is supported --watch mode.
56
- * @see: https://github.com/angular/angular/issues/12867
57
- */
58
- gulp.task('build:esm:watch', gulp.series('build:esm', () => {
59
- gulp.watch('src/**/*', ['build:esm']);
60
- }));
61
-
62
- /**
63
- * Compile SASS to CSS.
64
- * @see https://github.com/ludohenin/gulp-inline-ng2-template
65
- * @see https://github.com/sass/node-sass
66
- */
67
- function compileSass() {
68
- return gulp.src('./**/*.scss')
69
- .pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
70
- .pipe(gulp.dest('./css'));
71
- }
@@ -1,73 +0,0 @@
1
- const path = require('path');
2
- const webpack = require('webpack');
3
-
4
- module.exports = {
5
- target: "node",
6
- resolve: {
7
- extensions: [ '.ts', '.js', '.json' ]
8
- },
9
- module: {
10
- mode: 'development',
11
- optimization: {
12
- noEmitOnErrors: true,
13
- },
14
- rules: [
15
- {
16
- test: /\.ts$/,
17
- use: [
18
- {
19
- loader: 'ts-loader',
20
- options: {
21
- configFileName: 'tsconfig.json'
22
- }
23
- },
24
- {
25
- loader: 'angular2-template-loader'
26
- }
27
- ],
28
- exclude: [
29
- /\.e2e\.ts$/,
30
- /node_modules/
31
- ]
32
- },
33
-
34
- {
35
- test: /.ts$/,
36
- exclude: /(node_modules|\.spec\.ts|\.e2e\.ts$)/,
37
- loader: 'istanbul-instrumenter-loader',
38
- enforce: 'post'
39
- },
40
-
41
- {
42
- test: /\.json$/,
43
- use: 'json-loader'
44
- },
45
-
46
- {
47
- test: /\.css$/,
48
- use: ['to-string-loader', 'css-loader']
49
- },
50
-
51
- {
52
- test: /\.scss$/,
53
- use: ['to-string-loader', 'css-loader', 'sass-loader']
54
- },
55
-
56
- {
57
- test: /\.html$/,
58
- use: 'raw-loader'
59
- }
60
- ]
61
- },
62
- plugins: [
63
- new webpack.SourceMapDevToolPlugin({
64
- filename: null,
65
- test: /\.(ts|js)($|\?)/i
66
- }),
67
-
68
- new webpack.ContextReplacementPlugin(
69
- /angular(\\|\/)core(\\|\/)@angular/,
70
- path.join(__dirname, 'src')
71
- ),
72
- ]
73
- };