@capacitor/create-plugin
Generate a new Capacitor plugin
Last updated 6 days ago by dwieeb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @capacitor/create-plugin 
SYNC missed versions from official npm registry.

Create Capacitor Plugin

Generate a new Capacitor plugin.

:rotating_light: This is for Capacitor 3, which is in active development :rotating_light:

To create Capacitor 2 plugins, use npx @capacitor/cli plugin:generate. Follow Capacitor 3 development in this issue.

Usage

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

:memo: npm init <pkg> requires npm 6+

You can also try the following methods to use this package:

  • npx @capacitor/create-plugin
  • yarn create @capacitor/plugin
  • npm install -g @capacitor/create-plugin && create-capacitor-plugin

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

Current Tags

  • 0.0.10                                ...           latest (6 days ago)

10 Versions

  • 0.0.10                                ...           6 days ago
  • 0.0.9                                ...           13 days ago
  • 0.0.8                                ...           a month ago
  • 0.0.7                                ...           a month ago
  • 0.0.6                                ...           a month ago
  • 0.0.5                                ...           a month ago
  • 0.0.4                                ...           a month ago
  • 0.0.3                                ...           a month ago
  • 0.0.2                                ...           a month ago
  • 0.0.1                                ...           2 months ago
Downloads
Today 0
This Week 0
This Month 20
Last Day 0
Last Week 10
Last Month 63
Dependencies (7)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |