Skip to content

Commit d8c0eab

Browse files
Angular - Add DevExtreme licensing
1 parent 03e230b commit d8c0eab

4 files changed

Lines changed: 7 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
@@ -5,6 +5,7 @@
55
"scripts": {
66
"ng": "ng",
77
"start": "ng serve",
8+
"prebuild": "devextreme-license --out src/devextreme-license.ts --force",
89
"build": "ng build",
910
"watch": "ng build --watch --configuration development",
1011
"test": "ng test",

Angular/src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { bootstrapApplication } from '@angular/platform-browser';
22
import { provideZoneChangeDetection } from '@angular/core';
3+
import config from 'devextreme/core/config';
34
import { AppComponent } from './app/app.component';
5+
import { licenseKey } from './devextreme-license';
6+
7+
config({ licenseKey });
48

59
bootstrapApplication(AppComponent, {
610
providers: [provideZoneChangeDetection()],

0 commit comments

Comments
 (0)