Skip to content

Commit 3534a6b

Browse files
Merge pull request #4 from YaswinVikhaashSF4272/dependabot-D
Need to resolve the dependabot issue
2 parents b36d739 + a2e2beb commit 3534a6b

10 files changed

Lines changed: 130 additions & 148 deletions

File tree

.angular-cli.json

Lines changed: 0 additions & 60 deletions
This file was deleted.

.angular.json

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ej2-angular5-richtexteditor": {
7+
"projectType": "application",
8+
"root": "",
9+
"sourceRoot": "src",
10+
"prefix": "app",
11+
"architect": {
12+
"build": {
13+
"builder": "@angular-devkit/build-angular:application",
14+
"options": {
15+
"outputPath": "dist/ej2-angular5-richtexteditor",
16+
"index": "src/index.html",
17+
"tsConfig": "src/tsconfig.app.json",
18+
"assets": [
19+
"src/assets",
20+
"src/favicon.ico"
21+
],
22+
"styles": [
23+
"src/styles.css"
24+
],
25+
"scripts": []
26+
},
27+
"configurations": {
28+
"production": {
29+
"fileReplacements": [
30+
{
31+
"replace": "src/environments/environment.ts",
32+
"with": "src/environments/environment.prod.ts"
33+
}
34+
],
35+
"optimization": true,
36+
"outputHashing": "all",
37+
"sourceMap": false,
38+
"namedChunks": false,
39+
"aot": true,
40+
"extractLicenses": true,
41+
"budgets": [
42+
{
43+
"type": "initial",
44+
"maximumWarning": "2mb",
45+
"maximumError": "5mb"
46+
}
47+
]
48+
},
49+
"development": {
50+
"optimization": false,
51+
"sourceMap": true,
52+
"namedChunks": true
53+
}
54+
},
55+
"defaultConfiguration": "development"
56+
},
57+
"serve": {
58+
"builder": "@angular-devkit/build-angular:dev-server",
59+
"options": {
60+
"buildTarget": "ej2-angular5-richtexteditor:build"
61+
},
62+
"configurations": {
63+
"production": {
64+
"buildTarget": "ej2-angular5-richtexteditor:build:production"
65+
},
66+
"development": {
67+
"buildTarget": "ej2-angular5-richtexteditor:build:development"
68+
}
69+
},
70+
"defaultConfiguration": "development"
71+
},
72+
"test": {
73+
"builder": "@angular-devkit/build-angular:karma",
74+
"options": {
75+
"main": "src/test.ts",
76+
"tsConfig": "src/tsconfig.spec.json",
77+
"karmaConfig": "karma.conf.js",
78+
"assets": [
79+
"src/assets",
80+
"src/favicon.ico"
81+
],
82+
"styles": [
83+
"src/styles.css"
84+
],
85+
"scripts": []
86+
}
87+
},
88+
"extract-i18n": {
89+
"builder": "@angular-devkit/build-angular:extract-i18n",
90+
"options": {
91+
"browserTarget": "ej2-angular5-richtexteditor:build"
92+
}
93+
}
94+
}
95+
}
96+
},
97+
"defaultProject": "ej2-angular5-richtexteditor"
98+
}

e2e/app.e2e-spec.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

e2e/app.po.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

e2e/tsconfig.e2e.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

package.json

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,29 @@
77
"start": "ng serve",
88
"build": "ng build --prod",
99
"test": "ng test",
10-
"lint": "ng lint",
11-
"e2e": "ng e2e"
10+
"lint": "ng lint"
1211
},
1312
"private": true,
1413
"dependencies": {
15-
"@angular/animations": "^5.1.0",
16-
"@angular/common": "^5.1.0",
17-
"@angular/compiler": "^5.1.0",
18-
"@angular/core": "^18.2.8",
19-
"@angular/forms": "^5.1.0",
20-
"@angular/http": "^5.1.0",
21-
"@angular/platform-browser": "^5.1.0",
22-
"@angular/platform-browser-dynamic": "^5.1.0",
23-
"@angular/router": "^5.1.0",
24-
"@syncfusion/ej2-angular-richtexteditor": "^16.3.34",
25-
"core-js": "^2.4.1",
26-
"rxjs": "^5.5.6",
27-
"zone.js": "^0.8.19"
14+
"@angular/animations": "21.2.9",
15+
"@angular/common": "21.2.9",
16+
"@angular/compiler": "21.2.9",
17+
"@angular/core": "21.2.9",
18+
"@angular/forms": "21.2.9",
19+
"@angular/platform-browser": "21.2.9",
20+
"@angular/router": "21.2.9",
21+
"@syncfusion/ej2-angular-dropdowns": "*",
22+
"@syncfusion/ej2-angular-richtexteditor": "*",
23+
"rxjs": "~7.8.0",
24+
"tslib": "^2.3.0"
2825
},
2926
"devDependencies": {
30-
"@angular/cli": "1.5.6",
31-
"@angular/compiler-cli": "^5.1.0",
32-
"@angular/language-service": "^5.1.0",
33-
"@types/jasmine": "~2.8.3",
34-
"@types/jasminewd2": "~2.0.2",
35-
"@types/node": "~6.0.60",
36-
"codelyzer": "^4.0.1",
37-
"jasmine-core": "~2.8.0",
38-
"jasmine-spec-reporter": "~4.2.1",
39-
"karma": "~6.4.4",
40-
"karma-chrome-launcher": "~2.2.0",
41-
"karma-cli": "~1.0.1",
42-
"karma-coverage-istanbul-reporter": "^1.2.1",
43-
"karma-jasmine": "~1.1.0",
44-
"karma-jasmine-html-reporter": "^0.2.2",
45-
"protractor": "~5.1.2",
46-
"ts-node": "~3.2.0",
47-
"tslint": "~5.9.1",
48-
"typescript": "~2.5.3"
27+
"@angular/build": "^21.1.0",
28+
"@angular/cli": "^21.1.0",
29+
"@angular/compiler-cli": "^21.1.0",
30+
"@angular-devkit/build-angular": "^21.1.0",
31+
"jsdom": "^27.1.0",
32+
"typescript": "~5.9.2",
33+
"vitest": "^4.0.8"
4934
}
5035
}

src/app/app.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
import { Component } from '@angular/core';
2-
import { ToolbarService, LinkService, ImageService, HtmlEditorService, TableService, QuickToolbarService } from '@syncfusion/ej2-angular-richtexteditor';
1+
import { Component, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { RichTextEditorAllModule,ToolbarService, LinkService, ImageService, HtmlEditorService, TableService, QuickToolbarService } from '@syncfusion/ej2-angular-richtexteditor';
33

44

55
@Component({
66
selector: 'app-root',
77
templateUrl: './app.component.html',
88
styleUrls: ['./app.component.css'],
9+
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
910
providers: [ToolbarService, LinkService, ImageService, HtmlEditorService,TableService, QuickToolbarService],
11+
imports: [RichTextEditorAllModule]
1012
})
1113
export class AppComponent {
1214
public value: string = `

src/app/app.module.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ import { NgModule } from '@angular/core';
66
import { AppComponent } from './app.component';
77

88
@NgModule({
9-
declarations: [
10-
AppComponent
11-
],
129
imports: [
13-
BrowserModule, RichTextEditorAllModule,
10+
BrowserModule, RichTextEditorAllModule, AppComponent
1411
],
1512

16-
bootstrap: [AppComponent]
1713
})
1814
export class AppModule { }

src/main.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { enableProdMode } from '@angular/core';
2-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3-
4-
import { AppModule } from './app/app.module';
2+
import { bootstrapApplication } from '@angular/platform-browser';
3+
import { AppComponent } from './app/app.component';
54
import { environment } from './environments/environment';
65

76
if (environment.production) {
87
enableProdMode();
98
}
109

11-
platformBrowserDynamic().bootstrapModule(AppModule)
12-
.catch(err => console.log(err));
10+
bootstrapApplication(AppComponent)
11+
.catch(err => console.error(err));

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
"compileOnSave": false,
33
"compilerOptions": {
44
"outDir": "./dist/out-tsc",
5+
"esModuleInterop": true,
56
"sourceMap": true,
67
"declaration": false,
7-
"moduleResolution": "node",
8+
"moduleResolution": "bundler",
89
"emitDecoratorMetadata": true,
910
"experimentalDecorators": true,
10-
"target": "es5",
11+
"target": "es2022",
1112
"typeRoots": [
1213
"node_modules/@types"
1314
],
1415
"lib": [
15-
"es2017",
16+
"es2022",
1617
"dom"
1718
]
1819
}

0 commit comments

Comments
 (0)