我曾经在我的ionic 1项目中使用bower安装插件。新趋势,特别是在ionic 2中,是使用npm安装包。一些核心包,例如ionic.cloud,甚至对于ionic 1.x也不再提供bower支持。
因此,我需要将一些包迁移到npm上。有什么推荐的方法吗?
我的问题:
在每次npm更新后运行cp命令似乎不是一种优雅的解决方案。有没有推荐的处理方法?
因此,我需要将一些包迁移到npm上。有什么推荐的方法吗?
我的问题:
- "npm install" seems to install packages in the "my_project/node_modules" folder, unlike bower which installs packages directly in my_project/www/lib/
As explained for instance in the installation guide of ionic.cloud this requires an additional step to copy the newly installed npm package in the lib folder with the command:
cp node_modules/@ionic/cloud/dist/bundle/ionic.cloud.min.js www/lib
在每次npm更新后运行cp命令似乎不是一种优雅的解决方案。有没有推荐的处理方法?