Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Meteor ignore files?

Tags:

meteor

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

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

like image 822
J. Bruni Avatar asked May 22 '14 09:05

J. Bruni


People also ask

What are meteorignore files in Android?

However, you may override the default behavior using .meteorignore files, which cause the build system to ignore certain files and directories using the same pattern syntax as .gitignore files. These files may appear in any directory of your app or package, specifying rules for the directory tree below them.

How are my CSS styles processed in Meteor?

All your CSS style files will be processed using Meteor’s default file load order rules along with any import statements and concatenated into a single stylesheet, merged-stylesheets.css. In a production build this file is also minified.

How do I use the meteor build system?

The Meteor build system is the actual command line tool that you get when you install Meteor. You run it by typing the meteor command in your terminal, possibly followed by a set of arguments. Read the docs about the command line tool or type meteor help in your terminal to learn about all of the commands.

What types of files can be imported into a meteor app?

In Meteor apps, javascript, typescript, css files that are dynamically imported, and many other types of files are converted into javascript modules during the build process. Instead of reloading the client after a rebuild, Meteor is able to update the javascript modules within the running application that were modified.


2 Answers

There's no such file as .meteorignore yet.

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.

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

Update:
As of Meteor v1.5.2.1, there is support for a .meteorignore file. It works exactly the same as a .gitignore.

like image 81
Hubert OG Avatar answered Oct 14 '22 01:10

Hubert OG


As of Meteor v1.5.2.1, there is support for a .meteorignore file. It works exactly the same as a .gitignore.

You can use them in any directory of your project and are fully integrated with the file watching system.

like image 25
Lucbug Avatar answered Oct 13 '22 23:10

Lucbug