如何使流星忽略文件?

问题描述:

Meteor文件结构中是否存在一些特定的文件夹,而Meteor只是忽略了该文件夹? (meteor bundlemeteor deploy等)

Is there some specific folder in Meteor file structure which is simply ignored by Meteor? (meteor bundle and meteor deploy etc)

或更妙的是:是否存在一种.meteorignore文件,我们可以在其中列出流星忽略的文件?

Or better yet: is there a kind of .meteorignore file where we can list files for Meteor to ignore?

还没有.meteorignore这样的文件.

目前,从Meteor隐藏文件的唯一可靠方法是使其隐藏(在名称开头添加一个点).您可以隐藏整个目录,如果您需要诸如Grunt任务之类的特定文件名,这将很有用.

Currently the only reliable way to hide a file from Meteor is to make it hidden (add a dot to the beginning of name). You can hide the whole directory, which is useful if you need specific filenames for things like Grunt tasks.

例如,如果您创建一个名为.hammerTime的目录,那么Meteor不能触摸它.

For example if you create a directory called .hammerTime, then Meteor can't touch this.