1.5.0 • Published 2 years ago

@map-colonies/code-generator v1.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

code-generator

package includes:

code-generator is using 'ts-morph' (https://www.npmjs.com/package/ts-morph) os package to generate ts classes, interfaces, enum, etc. dynamically based on map-colonies/mc-models (https://github.com/MapColonies/mc-models) profiles.

package usage:

the package can be installed with npm install @map-colonies/mc-code-generator.

building the package:

run npm install to install project dependencies.

to create local package tgz file run npm pack after the build

run package

in your project package.json add script for generate: generate: 'node **/index.js -tf='path/to/file -p=your-project-name (raster, 3d, etc..) -gt=type-of-source (orm, graphQl, etc..)

parameters

  • -p --project - name of the project, available values: raster, 3d. (no default)

  • -tf --targetFile - path to the generated file, override file if exists. (no default)

  • -gt --generateType - type of the wished generated code, avaiable values: orm, graphQl. (no default)

1.5.0

2 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

4 years ago