npm.io
2.2.0-rc.0ed38da • Published 1 week ago

@intuiface/binding-converter

Licence
MIT
Version
2.2.0-rc.0ed38da
Deps
2
Size
12 kB
Vulns
0
Weekly
0
Stars
2

Intuiface logo

Binding Converter Schematics

This article describes how to design a binding converter, build it, and generate an IFD for use in Intuiface Composer.

Table of contents

Prerequisites

Usage

First, inside a new folder, install the binding-converter schematics:

npm install @intuiface/binding-converter

Then initialize your binding converter workspace by using the schematics:

schematics @intuiface/binding-converter:create

It will prompt you for the binding converter name and category, then create all files.

Please use only alphanumeric characters in the name of your binding converter (no "-", no special characters, etc). The schematics will accept it but may fail when you try to build your project.

After installation is complete, restart VSCode if you want the code analyzer running. You can use the command npm run lint if you want to run the code analyzer manually.

You can modify the default name of the converter function computeOutput.

Develop your binding converter using the generated skeleton or read the documentation for Intuiface Core, especially the @Converter and @Parameter decorators.

Then run npm run build to build for production or npm run build:debug to debug your binding converter. You can use the Command Line.

Migrate project (<2.x) to use intuiface-cli

Intuiface CDK v2.0.0 introduce a new command line tool intuiface-cli to better handle building interface assets and binding converters and generating descriptor files. You can migrate your old project to use the new CLI by following the migration guide

Help

Found a problem, a bug? Or need some help? Please do not create an issue in Github! Ask us via our Support page : https://support.intuiface.com/