有没有办法为Cordova插件创建Ionic包装,而不是发布到 awesome-cordova-plugins 如中所述的存储库 https://github.com/danielsogl/awesome-cordova-plugins/blob/master/DEVELOPER.md
awesome-cordova-plugins
我想将所有需要的文件存储在与Cordova插件相同的存储库中。
我的问题是如何创建这些文件。对于 棒极了的cordova插件 我跑 npm run build 要在dist文件夹中获取以下文件:
棒极了的cordova插件
npm run build
./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