JSPM

ionic-native-dev-util

0.5.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q40950F
  • License MIT

Utility to create ionic-native symlink plugins for development purposes

Package Exports

  • ionic-native-dev-util

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ionic-native-dev-util) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ionic-native-dev-util

To assist in development with ionic-native plugins. When being developed concurrently with an app that consumes it, ionic-native-dev-util creates a symbolic directory in the node_modules/@ionic-native folder. And to fully complete this automation, it will modify the app's tsconfig.json and angular.json files so that preserveSymlinks are set to true.

Install

GitHub license npm version

npm

npm install ionic-native-dev-util --save-dev

yarn

yarn add ionic-native-dev-util --dev

link: yarnpkg.com/en/package/ionic-native-dev-util

Usage

Add the following to package.json file:

{
  "scripts": {
    "link-plugin": "node ./node_modules/ionic-native-dev-util/dist/index.js"
  }
}

You need to have access to the ionic-native 'dist' folder. This is the build folder that contains all of its plugins which needs to be built post git clone. And then, for an example, execute the following:

yarn run link-plugin /home/marc/repos/ionic-native/dist/@ionic-native/plugins/audio-management/

Where 'audio-management' is the name of the plugin folder. The 'link-plugin' command should of created a symbolic directory in the node_modules/@ionic-native folder of the app, if there isn't a folder created already with that name. Also if tsconfig.json and/or angular.json are at the root of the app, 'link-plugin' command should of enabled the preserveSymlinks property.