Skip to content

Commit a8ba5c2

Browse files
Angular - Add DevExtreme licensing
1 parent 561ea5c commit a8ba5c2

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

Angular/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ testem.log
4040
# System files
4141
.DS_Store
4242
Thumbs.db
43+
src/devextreme-license.ts

Angular/eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default [
1313
},
1414
...spellCheck,
1515
...angularConfig,
16+
1617
{
1718
files: ['**/*.ts'],
1819
languageOptions: {

Angular/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7+
"prebuild": "devextreme-license --out src/devextreme-license.ts --force",
78
"build": "ng build",
89
"watch": "ng build --watch --configuration development",
910
"test": "ng test",

Angular/src/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import config from 'devextreme/core/config';
2+
import { licenseKey } from './devextreme-license';
3+
4+
config({ licenseKey });
5+
16
import { bootstrapApplication } from '@angular/platform-browser';
27
import { provideZoneChangeDetection } from '@angular/core';
38
import { AppComponent } from './app/app.component';

0 commit comments

Comments
 (0)