0

I know that Meteor doesn't include files in the tests/ directory or .* directories. I would like it to also not include files in the cron/ and node_modules/ directories.

Loren
  • 13,903
  • 8
  • 48
  • 79
  • 1
    possible duplicate of [Ignoring files in a Meteor JS project directory](http://stackoverflow.com/questions/10423430/ignoring-files-in-a-meteor-js-project-directory) – David Weldon Mar 08 '14 at 02:28
  • One of the directories that can't be included is node_modules (the cron tasks use node libs), and I can't add a `.` to that, so I'm looking for a more general-purpose configuration option. – Loren Mar 08 '14 at 04:14
  • Could you move your `cron/` and `node_modules/` directories into a parent directory? – sbking Mar 08 '14 at 05:16

1 Answers1

1

There is no such configuration option at this moment. Which folders are loaded is decided in these lines in Meteor source:

    // Read top-level subdirectories. Ignore subdirectories that have
    // special handling.
    var sourceDirectories = readAndWatchDirectory('', {
      include: [/\/$/],
      exclude: [/^packages\/$/, /^programs\/$/, /^tests\/$/,
                /^public\/$/, /^private\/$/,
                otherSliceRegExp].concat(sourceExclude)
    });

To skip other folder, you'd have to fork Meteor and tweak those lines.

Hubert OG
  • 19,314
  • 7
  • 45
  • 73