Skip to content

Automates in creation of symbolic ionic-native plugin folder for development purposes

License

Notifications You must be signed in to change notification settings

marckassay/ionic-native-dev-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ionic-native-dev-util

To assist in development with ionic-native plugins. When being developed concurrently with an app that consumes an ionic-native plugin, 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

The command below should of been added to host's package.json on 'postinstall' event. If not, add it.

{
  "scripts": {
    "linkplugin": "node ./node_modules/ionic-native-dev-util"
  }
}

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 linkplugin /home/marc/repos/ionic-native/dist/@ionic-native/plugins/audio-management/

Where 'audio-management' is the name of the plugin folder. The 'linkplugin' 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, 'linkplugin' command should of enabled the preserveSymlinks property.

About

Automates in creation of symbolic ionic-native plugin folder for development purposes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published