open-index/open-npm huggingface dataset:
npm package: @owsp/dxf-plugin
Description: Nx plugin with generators for DXF conversion and helper utilities.
Latest version: 0.14.5

# dxf-plugin

Nx plugin with generators for DXF conversion and helper utilities.

## Generators

- dxf-to-json - parse DXF and create OWSP base profile params object (`{ class, params }`)
- readme-by-file - create `readme.txt` with input file name

`dxf-to-json` validates generated `params` against OWSP JSON Schema for the selected profile class.

## Usage

Build plugin after changes:

```pwsh
npx nx run dxf-plugin:build
```

Generate OWSP profile params from DXF:

```pwsh
npx nx g @owsp/dxf-plugin:dxf-to-json \
	--inputFile=tools/dxf-plugin/examples/profile.dxf \
	--outputDir=tmp/dxf \
	--profileClass=glazing_bead \
	--profileType=glazing_bead
```

Result file will be written to `outputDir/<input-file-name>.json`.
npm package: @owsp/gen-plugin
Description: Custom Nx executors to support OpenWinSpec codegen and validation.
Latest version: 0.14.5

# gen-plugin

Custom Nx executors to support OpenWinSpec codegen and validation.

## Executors

- json-creator — convert YAML schemas to JSON
- types-creator — generate TypeScript types from meta schemas
- entity-types-creator — discover entity types and primary keys
- const-creator — generate const arrays from TS unions and schema annotations (x-consts)
- schema-bundles-creator — produce schema bundle file for runtime usage
- schema-linter — lint JSON Schemas (allOf enum/const intersections, duplicate x-order)

## Usage

Build plugin (required after changes):

```pwsh
npx nx run gen-plugin:build
```

Run individual executors (examples):

```pwsh
# Convert YAML -> JSON
npx nx run gen-plugin:json-creator

# Lint schemas (fails on issues)
npx nx run gen-plugin:schema-linter
```

The js package integrates these executors in its build pipeline; see `packages/js/package.json` targets for the exact order.