简体   繁体   English

如何在流星部署/捆绑期间以编程方式删除软件包并排除目录

[英]How to programmatically remove packages and exclude directory during meteor deploy/bundle

There are certain packages and directories I use only for development purposes within a project. 在项目中,某些软件包和目录仅用于开发目的。 Does meteor provide a way to remove them during meteor deploy or bundle? 流星是否提供一种在流星部署或捆绑期间删除它们的方法?

You can make meteor ignore directories by placing a . 您可以通过放置来使流星忽略目录. in front of them. 在他们面前。 Meteor will completely ignore them, including packages. 流星将完全忽略它们,包括包裹。

I'm not too sure you can do this of packages because you would have used it in your app somehow and it would be linked up. 我不太确定您可以使用软件包来执行此操作,因为您可能会以某种方式在应用程序中使用过它并将其链接起来。 You can either have the package or you can't. 您可以拥有包装,也可以没有。

Alternatively you could make a bashscript that copies the required directories to a new directory for bundling/publishing 或者,您可以制作bashscript,将所需目录复制到新目录以进行捆绑/发布

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM