You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/devextreme-schematics/README.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,24 @@
1
1
# DevExtreme Schematics
2
-
DevExtreme schematics are workflow tools you can use in an Angular application created with [DevExtreme CLI](https://github.com/devexpress/DevExtreme-CLI) to add DevExtreme libraries or views and perform other DevExtreme-related tasks. Read [this article](https://blog.angular.io/schematics-an-introduction-dc1dfbc2a2b2) for more information on Angular Schematics.
2
+
DevExtreme Schematics contains Angular workflow tools for applications created with [DevExtreme CLI](https://github.com/devexpress/DevExtreme-CLI). You can use these tools to add application views and layouts to your app, as well as to perform other tasks related to DevExtreme and the DevExtreme [Angular Application Template](https://devexpress.github.io/devextreme-angular-template). For more information on Angular Schematics, refer to the following topic: [Introduction to Angular Schematics](https://blog.angular.io/schematics-an-introduction-dc1dfbc2a2b2).
3
3
4
4
## Included Schematics
5
5
6
6
This package includes the following schematics:
7
7
8
8
-[install](src/install)
9
-
Adds DevExtreme to an Angular application
9
+
Adds DevExtreme to an Angular application.
10
10
11
11
-[add-layout](src/add-layout)
12
-
Adds a DevExtreme layout to a DevExtreme Angular application
12
+
Adds a DevExtreme layout to an Angular application.
13
13
14
14
-[add-app-template](src/add-app-template)
15
-
Adds a DevExtreme layout template to an Angular application
15
+
Adds a DevExtreme app template to an Angular application.
16
16
17
17
-[add-sample-views](src/add-sample-views)
18
-
Adds sample views to a DevExtreme Angular application
18
+
Adds sample views to an Angular application
19
19
20
20
-[add-view](src/add-view)
21
-
Adds a view to a DevExtreme Angular application
21
+
Adds a view to an Angular application
22
22
23
23
## TypeScript Dependency & Global CLI Usage
24
24
@@ -28,20 +28,21 @@ Some DevExtreme migration schematics require TypeScript to process inline Angula
28
28
- Your project's node_modules
29
29
- The global node_modules
30
30
31
-
If TypeScript is not found, inline template migration will be skipped and a warning will be shown with resolution attempts and errors.
31
+
If the CLI fails to find TypeScript, inline template migration is skipped and a warning is displayed with resolution attempts and errors.
32
32
33
-
### How to Fix TypeScript Not Available
33
+
### How to Install TypeScript
34
34
35
-
1.**Local Project:**Install TypeScript in your project root:
35
+
1.**Local Project:**To install TypeScript in a project, run the following command:
36
36
```sh
37
37
npm install typescript --save-dev
38
38
```
39
-
2.**Global CLI:**If you use the CLI globally, also install TypeScript globally:
39
+
2.**Global CLI:**To install TypeScript globally on your machine, run the following command:
40
40
```sh
41
41
npm install -g typescript
42
42
```
43
-
3.**npx Usage:** If you use npx, ensure TypeScript is available in your workspace or globally.
44
-
4.**Troubleshooting:**
43
+
44
+
**Troubleshooting**
45
+
45
46
- Some npm global installs may not link dependencies as expected. If you see repeated TypeScript resolution errors, try running the CLI from a project where TypeScript is installed locally.
46
47
- You can also manually link TypeScript to your global node_modules if needed.
0 commit comments