I was wondering if I could use npm to manage a private/standalone
@ionic-native wrapper for a private cordova plugin (not published in npm repositories).
I generated the wrapper using npm build, but I couldn’t figure out how I could
install --save it standalone.
Is there such a possibility ?
What do you mean by “standalone”?
You are looking for
Thanks, I will look at this.
To publish an
@ionic-native wrapper, it must be part of the global, public ionic-native GitHub repo:
This file has been truncated.
# Ionic Native Developer Guide
This is a short guide on creating new plugin wrappers for Ionic Native.
## Creating Plugin Wrappers
First, let's start by creating a new plugin wrapper from template.
// Call this command, and replace PluginName with the name of the plugin you wish to add
// Make sure to capitalize the first letter, or use CamelCase if necessary.
gulp plugin:create -n PluginName
// add -m flag to get a minimal template to start with
gulp plugin:create -m -n PluginName
Running the command above will create a new directory `src/@ionic-native/plugins/plugin-name/` with a single file in there: `index.ts`. This file is where all the plugin definitions should be.
However, the plugin I’m wrapping is not public, and will probably never be. So, I can’t see a reason to publish this wrapper to the world for my only use.