@itwin/ecschema2ts 3.0.0-extension.1 → 3.1.0-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +6 -6
- package/package.json +13 -12
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MIT License
|
|
2
2
|
|
|
3
|
-
Copyright © 2017-
|
|
3
|
+
Copyright © 2017-2022 Bentley Systems, Incorporated. All rights reserved.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# ecschema2ts
|
|
2
2
|
|
|
3
|
-
ecschema2ts is a command-line tool that takes an EC3.1/EC3.2 BIS ECSchema xml file and outputs a valid Typescript module that uses
|
|
3
|
+
ecschema2ts is a command-line tool that takes an EC3.1/EC3.2 BIS ECSchema xml file and outputs a valid Typescript module that uses iTwin.js.
|
|
4
4
|
|
|
5
5
|
## Quick Overview
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
|
|
8
|
+
npm install -g @itwin/ecschema2ts
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
ecschema2ts -i C:\Path\To\Schema\Domain.ecschema.xml -o C:\Desired\Output\Path\
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Getting Started
|
|
@@ -17,7 +17,7 @@ $ ecschema2ts -i C:\Path\To\Schema\Domain.ecschema.xml -o C:\Desired\Output\Path
|
|
|
17
17
|
Install globally:
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
|
|
20
|
+
npm install -g @itwin/ecschema2ts
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### Creating a Typescript module
|
|
@@ -25,7 +25,7 @@ $ npm install -g @itwin/ecschema2ts
|
|
|
25
25
|
To create a Typescript file from the an ECSchema, run:
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
|
-
|
|
28
|
+
ecschema2ts -i C:\Path\To\Schema\Domain.ecschema.xml -o C:\Desired\Output\Path\
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
## Updating to new version
|
|
@@ -33,7 +33,7 @@ $ ecschema2ts -i C:\Path\To\Schema\Domain.ecschema.xml -o C:\Desired\Output\Path
|
|
|
33
33
|
Since the package is installed globally, updating has a different syntax than normal. To update the package globally, run:
|
|
34
34
|
|
|
35
35
|
```sh
|
|
36
|
-
|
|
36
|
+
npm update -g @itwin/ecschema2ts
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## Known Issues
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@itwin/ecschema2ts",
|
|
3
3
|
"description": "Command line tools that takes an ECSchema xml file and outputs a typescript module",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.1.0-dev.6",
|
|
6
6
|
"bin": {
|
|
7
7
|
"ecschema2ts": "./bin/index.js"
|
|
8
8
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"keywords": [
|
|
15
15
|
"Bentley",
|
|
16
16
|
"iModel",
|
|
17
|
-
"
|
|
17
|
+
"iTwin.js",
|
|
18
18
|
"EC",
|
|
19
19
|
"BIS"
|
|
20
20
|
],
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"url": "http://www.bentley.com"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@itwin/build-tools": "3.
|
|
27
|
-
"@itwin/eslint-plugin": "3.
|
|
26
|
+
"@itwin/build-tools": "3.1.0-dev.6",
|
|
27
|
+
"@itwin/eslint-plugin": "3.1.0-dev.6",
|
|
28
28
|
"@types/chai": "^4.1.4",
|
|
29
29
|
"@types/chai-string": "^1.4.1",
|
|
30
30
|
"@types/fs-extra": "^4.0.7",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@types/node": "14.14.31",
|
|
33
33
|
"chai": "^4.1.2",
|
|
34
34
|
"chai-string": "^1.5.0",
|
|
35
|
-
"
|
|
35
|
+
"cpx2": "^3.0.0",
|
|
36
36
|
"eslint": "^7.11.0",
|
|
37
37
|
"mocha": "^8.3.2",
|
|
38
38
|
"nyc": "^15.1.0",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"typescript": "~4.4.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@itwin/core-bentley": "3.
|
|
45
|
-
"@itwin/ecschema-locaters": "3.
|
|
46
|
-
"@itwin/ecschema-metadata": "3.
|
|
47
|
-
"@itwin/core-geometry": "3.
|
|
48
|
-
"@itwin/core-backend": "3.
|
|
49
|
-
"@itwin/core-common": "3.
|
|
44
|
+
"@itwin/core-bentley": "3.1.0-dev.6",
|
|
45
|
+
"@itwin/ecschema-locaters": "3.1.0-dev.6",
|
|
46
|
+
"@itwin/ecschema-metadata": "3.1.0-dev.6",
|
|
47
|
+
"@itwin/core-geometry": "3.1.0-dev.6",
|
|
48
|
+
"@itwin/core-backend": "3.1.0-dev.6",
|
|
49
|
+
"@itwin/core-common": "3.1.0-dev.6",
|
|
50
50
|
"@xmldom/xmldom": "^0.7.0",
|
|
51
51
|
"chai-string": "^1.5.0",
|
|
52
52
|
"chalk": "^3.0.0",
|
|
@@ -74,5 +74,6 @@
|
|
|
74
74
|
"test": "mocha",
|
|
75
75
|
"cli:dev": "npm run -s clean & npm run -s build & npm link",
|
|
76
76
|
"cover": "nyc npm -s test"
|
|
77
|
-
}
|
|
77
|
+
},
|
|
78
|
+
"readme": "# ecschema2ts\r\n\r\necschema2ts is a command-line tool that takes an EC3.1/EC3.2 BIS ECSchema xml file and outputs a valid Typescript module that uses iTwin.js.\r\n\r\n## Quick Overview\r\n\r\n```sh\r\nnpm install -g @itwin/ecschema2ts\r\n\r\necschema2ts -i C:\\Path\\To\\Schema\\Domain.ecschema.xml -o C:\\Desired\\Output\\Path\\\r\n```\r\n\r\n## Getting Started\r\n\r\n### Installation\r\n\r\nInstall globally:\r\n\r\n```sh\r\nnpm install -g @itwin/ecschema2ts\r\n```\r\n\r\n### Creating a Typescript module\r\n\r\nTo create a Typescript file from the an ECSchema, run:\r\n\r\n```sh\r\necschema2ts -i C:\\Path\\To\\Schema\\Domain.ecschema.xml -o C:\\Desired\\Output\\Path\\\r\n```\r\n\r\n## Updating to new version\r\n\r\nSince the package is installed globally, updating has a different syntax than normal. To update the package globally, run:\r\n\r\n```sh\r\nnpm update -g @itwin/ecschema2ts\r\n```\r\n\r\n## Known Issues\r\n\r\n- The ordering of the Typescript classes may be out of order preventing compilation of the typescript file. A workaround is to reorder the classes by hand.\r\n\r\n## Troubleshooting\r\n\r\n- Are you have issues converting your ECSchema?\r\n - Check to make sure your ECSchema version is EC3.1\r\n - Check if the BIS ECSchema passes validation, [check ECSchema status](https://bentley.sharepoint.com/sites/BIS/Lists/Schema%20Development%20Status/AllItems.aspx?viewpath=%2Fsites%2FBIS%2FLists%2FSchema%20Development%20Status%2FAllItems.aspx).\r\n"
|
|
78
79
|
}
|