ionic-native-dev-util
v0.7.0
Published
Automate in creation of symbolic ionic-native plugin folder for development purposes
Downloads
15
Maintainers
Readme
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
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.