@bentley/ecschema2ts
Command line tools that takes an ECSchema xml file and outputs a typescript module
Last updated 21 days ago by imodeljs .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @bentley/ecschema2ts 
SYNC missed versions from official npm registry.

# ecschema2ts

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 iModelJs.

Quick Overview

$ npm install -g @bentley/ecschema2ts

$ ecschema2ts -i C:\Path\To\Schema\Domain.ecschema.xml -o C:\Desired\Output\Path\

Getting Started

Installation

Install globally:

$ npm install -g @bentley/ecschema2ts

Creating a Typescript module

To create a Typescript file from the an ECSchema, run:

$ ecschema2ts -i C:\Path\To\Schema\Domain.ecschema.xml -o C:\Desired\Output\Path\

Updating to new version

Since the package is installed globally, updating has a different syntax than normal. To update the package globally, run:

$ npm update -g @bentley/ecschema2ts

Known Issues

  • 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.

Troubleshooting

  • Are you have issues converting your ECSchema?
    • Check to make sure your ECSchema version is EC3.1
    • Check if the BIS ECSchema passes validation, check ECSchema status.

Current Tags

  • 2.0.0                                ...           latest (21 days ago)

7 Versions

  • 2.0.0                                ...           21 days ago
  • 1.14.1                                ...           a month ago
  • 1.14.0                                ...           2 months ago
  • 1.13.0                                ...           3 months ago
  • 1.12.0                                ...           3 months ago
  • 1.11.0                                ...           4 months ago
  • 1.10.0                                ...           5 months ago
Downloads
Today 0
This Week 0
This Month 18
Last Day 0
Last Week 7
Last Month 21
Dev Dependencies (17)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |