Skip to content

Commit a2ddf69

Browse files
authored
Merge branch '17.0.x' into ddincheva/summarySize-17.0
2 parents 7bbb087 + 242a56b commit a2ddf69

File tree

47 files changed

+101
-83
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+101
-83
lines changed

angular.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,11 @@
1515
},
1616
"architect": {
1717
"build": {
18-
"builder": "@angular-devkit/build-angular:application",
18+
"builder": "@angular-devkit/build-angular:browser",
1919
"options": {
2020
"outputPath": "dist/igniteui-dev-demos",
21+
"main": "./src/main.ts",
2122
"index": "src/index.html",
22-
"browser": "src/main.ts",
23-
"server": "src/main.server.ts",
24-
"ssr": {
25-
"entry": "src/server.ts"
26-
},
2723
"polyfills": [
2824
"zone.js",
2925
"hammerjs"
@@ -39,6 +35,7 @@
3935
],
4036
"scripts": [],
4137
"extractLicenses": false,
38+
"buildOptimizer": false,
4239
"sourceMap": true,
4340
"optimization": false,
4441
"namedChunks": true,

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"scripts": {
55
"ng": "ng",
6-
"start": "ng serve --open --configuration hmr",
6+
"start": "ng serve --open --hmr",
77
"build": "ng build --configuration production",
88
"test": "ng test igniteui-angular",
99
"lint": "ng lint",
@@ -39,6 +39,8 @@
3939
"build:typedoc:ja:staging": "set NODE_ENV=staging && node ./scripts/build-typedoc.mjs --localize=jp",
4040
"build:typedoc:en:production": "set NODE_ENV=production && node ./scripts/build-typedoc.mjs --localize=en",
4141
"build:typedoc:en:staging": "set NODE_ENV=staging && node ./scripts/build-typedoc.mjs --localize=en",
42+
"build:sassdoc:export": "gulp sassdocBuildJson --convert true --exportDir ./extras/sassdoc && gulp sassdocCleanOutputDir",
43+
"build:sassdoc:import": "gulp sassdocImportJson --render true --importDir ./extras/sassdoc",
4244
"build:sassdoc:en:production": "set NODE_ENV=production && set SASSDOC_LANG=en && gulp sassdocBuildEN",
4345
"build:sassdoc:en:staging": "set NODE_ENV=staging && set SASSDOC_LANG=en && gulp sassdocBuildEN",
4446
"build:sassdoc:ja:production": "set NODE_ENV=production && set SASSDOC_LANG=jp && gulp sassdocBuildJA --render true",
@@ -138,4 +140,4 @@
138140
"typedoc-plugin-localization": "^3.0.3",
139141
"typescript": "5.2.2"
140142
}
141-
}
143+
}

projects/igniteui-angular/migrations/common/ServerHost.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Tree } from '@angular-devkit/schematics';
1+
import type { Tree } from '@angular-devkit/schematics';
22
import * as pathFs from 'path';
33
import * as ts from 'typescript/lib/tsserverlibrary';
44
import { CUSTOM_TS_PLUGIN_NAME, CUSTOM_TS_PLUGIN_PATH } from './tsUtils';

projects/igniteui-angular/migrations/common/UpdateChanges.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import * as fs from 'fs';
22
import * as path from 'path';
33
import * as ts from 'typescript';
44
import * as tss from 'typescript/lib/tsserverlibrary';
5-
import { SchematicContext, Tree, FileVisitor } from '@angular-devkit/schematics';
5+
import type { SchematicContext, Tree, FileVisitor } from '@angular-devkit/schematics';
66
import type { WorkspaceSchema } from '@schematics/angular/utility/workspace-models';
77
import {
88
ClassChanges, BindingChanges, SelectorChange,
99
SelectorChanges, ThemeChanges, ImportsChanges, MemberChanges, ThemeChange, ThemeType
1010
} from './schema';
1111
import {
12-
getLanguageService, getRenamePositions, getIdentifierPositions, replaceMatch,
12+
getLanguageService, getRenamePositions, getIdentifierPositions,
1313
createProjectService, isMemberIgniteUI, NG_LANG_SERVICE_PACKAGE_NAME, NG_CORE_PACKAGE_NAME, findMatches
1414
} from './tsUtils';
1515
import {
16-
getProjectPaths, getWorkspace, getProjects, escapeRegExp,
16+
getProjectPaths, getWorkspace, getProjects, escapeRegExp, replaceMatch,
1717
getPackageManager, canResolvePackage, tryInstallPackage, tryUninstallPackage, getPackageVersion
1818
} from './util';
1919
import { ServerHost } from './ServerHost';

projects/igniteui-angular/migrations/common/filterSourceDirs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { filter, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
1+
import { filter } from '@angular-devkit/schematics';
2+
import type { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
23
import { getWorkspace, getWorkspacePath, getProjectPaths } from './util';
34

45
/**

projects/igniteui-angular/migrations/common/tsUtils.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as ts from 'typescript';
22
import * as tss from 'typescript/lib/tsserverlibrary';
3-
import { Tree } from '@angular-devkit/schematics';
4-
import { MemberChange } from './schema';
3+
import type { Tree } from '@angular-devkit/schematics';
4+
import type { MemberChange } from './schema';
55
import { escapeRegExp } from './util';
66
import { Logger } from './tsLogger';
77
import { TSLanguageService } from './tsPlugin/TSLanguageService';
@@ -144,11 +144,6 @@ export const findMatches = (content: string, toFind: string): number[] => {
144144
return matchesPositions;
145145
};
146146

147-
export const replaceMatch = (content: string, toReplace: string, replaceWith: string, index: number): string =>
148-
content.substring(0, index) +
149-
replaceWith +
150-
content.substring(index + toReplace.length, content.length);
151-
152147
//#region Language Service
153148

154149
/**

projects/igniteui-angular/migrations/common/util.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { normalize } from '@angular-devkit/core';
22
import * as path from 'path';
3-
import { SchematicContext, Tree } from '@angular-devkit/schematics';
4-
import { WorkspaceSchema, WorkspaceProject } from '@schematics/angular/utility/workspace-models';
3+
import type { SchematicContext, Tree } from '@angular-devkit/schematics';
4+
import type { WorkspaceSchema, WorkspaceProject } from '@schematics/angular/utility/workspace-models';
55
import { execSync } from 'child_process';
6-
import {
6+
import type {
77
Attribute,
88
Block,
99
BlockParameter,
@@ -17,7 +17,6 @@ import {
1717
Text,
1818
Visitor
1919
} from '@angular/compiler';
20-
import { replaceMatch } from './tsUtils';
2120

2221
const configPaths = ['/.angular.json', '/angular.json'];
2322

@@ -58,6 +57,11 @@ export const getProjects = (config: WorkspaceSchema): WorkspaceProject[] => {
5857

5958
export const escapeRegExp = (string) => string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
6059

60+
export const replaceMatch = (content: string, toReplace: string, replaceWith: string, index: number): string =>
61+
content.substring(0, index) +
62+
replaceWith +
63+
content.substring(index + toReplace.length, content.length);
64+
6165
export const supports = (name: string): boolean => {
6266
try {
6367
execSync(`${name} --version`, { stdio: 'ignore' });

projects/igniteui-angular/migrations/migration-collection.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
3+
"encapsulation": true,
34
"schematics": {
45
"migration-01": {
56
"version": "6.0.0",

projects/igniteui-angular/migrations/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
"typeRoots": [
99
"../../../node_modules/@types"
1010
],
11+
"paths": {
12+
"igniteui-angular/*": [
13+
"../*"
14+
],
15+
"@infragistics/igniteui-angular/*": [
16+
"../*"
17+
],
18+
}
1119
},
1220
"exclude": [
1321
"../../../node_modules",

projects/igniteui-angular/migrations/update-10_1_0/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {
1+
import type {
22
Rule,
33
SchematicContext,
44
Tree

0 commit comments

Comments
 (0)