1.1.0 • Published 3 years ago

@jcassidyav/generate-metadata-filter v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Examines the typescript code of Nativescript Project/Plugin, outputting the types determined to be Native types.

POC

Currently only works with android

Installation

npm i -g @jcassidyav/generate-metadata-filter

Usage

  1. Create a config file named .generate-metadata-filter.json in the root of your app, or the root of the plugin source code, e.g packages/mypackage.
  2. Add paths to any type definitions you have added for custom native types.

    {
    
        "typeSources":{
            "ios": [],
            "android": ["ns-typings/android/*"]
        },
        "mode":"plugin"
    }
  3. Execute command generate-metadata-filter in the same directory.