gpt4 book ai didi

android - 当我们进行 ionic 状态恢复、保存、清除和重置时,实际发生了什么?

转载 作者:行者123 更新时间:2023-11-29 14:19:39 25 4
gpt4 key购买 nike

当我们执行以下操作时,项目中实际发生了什么 ionic 态命令?

  • 恢复
  • 保存
  • 清晰
  • 重置

我们需要在什么样的情况下使用它们?

我用谷歌搜索了这个,但找不到任何合适的详细答案。

感谢您的任何帮助。

最佳答案

您始终可以查看他们的 Ionic CLI v1/v2 源代码

save: 'Save the platforms and plugins into package.json',

restore: 'Restore the platforms and plugins from package.json',

clear: 'Clear the package.json of cordovaPlugins and cordovaPlatforms, '
'as well as clear out the platforms and plugins folders',

reset: 'Clear out the platforms and plugins directories, and reinstall plugins and platforms',

https://github.com/driftyco/ionic-cli/blob/fac1c4d7b49e7c102269f3d5e0acef660d762bf5/lib/ionic/state.js#L20-L33

state 已从 CLI v3 中删除:插件和平台可以完全由 Cordova 管理。请从您的 package.json 文件中删除 cordovaPlatforms 和 cordovaPlugins 键。如果您使用的是 Cordova 7,请查看有关 Cordova 如何使用 config.xml 和 package.json 管理插件和平台的公告。

关于android - 当我们进行 ionic 状态恢复、保存、清除和重置时,实际发生了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42407206/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com