[英]Publishing Ionic wrapper for Cordova plugin
有沒有辦法為 Cordova 插件創建離子包裝器,而不是將其發布到awesome-cordova-plugins
存儲庫,如https://github.com/danielsogl/awesome-cordova-plugins/blob/master/DEVELOPER.md中所述
我想將所有需要的文件存儲在與我的 Cordova 插件相同的存儲庫中。
我的問題是如何創建這些文件。 對於awesome-cordova-plugins
我運行npm run build
以在 dist 文件夾中獲取以下文件:
./ngx/index.js
./ngx/index.d.ts
./ngx/index.metadata.json
./index.js
./index.d.ts
嘗試使用 Cordova 插件構建主項目時,出現錯誤:
[error] Error: The target entry-point "@ionic-native/zebra-printer" has missing dependencies:
@angular/core
@ionic-native/core
Cordova 插件庫可以在這里找到: https://github.com/a-services/cordova-zebra-printer
你必須先安裝
npm install @awesome-cordova-plugins/core --save
//每個項目一次 - 詳情請點擊這里。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.