0.0.0-dev.1835232.1738403607 • Published 1 year ago

@capawesome/create-capacitor-plugin v0.0.0-dev.1835232.1738403607

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Create Capacitor Plugin

Generate a new Capacitor plugin for Capawesome.

Usage

npm init @capawesome/capacitor-plugin [<path>] [options]

Example Apps

Example apps for testing are included when initializing a new plugin. To use these templates, you can open the npx cap open android or npx cap open ios command for Android and iOS respectively. Anything in the example folder will be excluded when publishing to npm.

Options

--name <name> ............. npm package name (e.g. "capacitor-plugin-example")
--package-id <id> ......... Unique plugin ID in reverse-DNS notation (e.g. "com.mycompany.plugins.example")
--class-name <name> ....... Plugin class name (e.g. "Example")
--repo <url> .............. URL to git repository (e.g. "https://github.com/example/repo")
--author <author> ......... Author name and email (e.g. "Name <name@example.com>")
--license <id> ............ SPDX License ID (e.g. "MIT")
--description <text> ...... Short description of plugin features