Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

mendix/pluggable-widgets-typing-generator

Repository files navigation

Pluggable Widgets Typing Generator

npm version Mendix 8 Build Status npm GitHub release GitHub issues

About

Typescript typing generator for Pluggable Widgets

How to install

Install from npm using npm install @mendix/pluggable-widgets-typing-generator

How to use

Make sure you are using gulp as your taskrunner.

  • Include the imported library in your gulpfile.js
const typingGenerator = require("@mendix/pluggable-widgets-typing-generator").typingGenerator;

or for gulp using Babel and ES2015 (gulpfile.babel.js) or Typescript (gulpfile.ts)

import typingGenerator from "@mendix/pluggable-widgets-typing-generator";
  • Create a Gulp Task to read the xml file and generate your typings
function generateTypings() {
    return gulp
        .src("./src/package.xml")
        .pipe(typingGenerator());
}