Module: Middleman::CoreExtensions::FileWatcher
- Defined in:
- lib/middleman-core/core_extensions/file_watcher.rb
Defined Under Namespace
Modules: InstanceMethods Classes: API
Constant Summary collapse
- IGNORE_LIST =
[ /^\.bundle\//, /^\.sass-cache\//, /^\.git\//, /^\.gitignore$/, /\.DS_Store/, /^build\//, /^\.rbenv-.*$/, /^Gemfile$/, /^Gemfile\.lock$/, /~$/, /(^|\/)\.?#/ ]
Class Method Summary collapse
-
.registered(app) ⇒ Object
(also: included)
Once registered.
Class Method Details
.registered(app) ⇒ Object Also known as: included
Once registered
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/middleman-core/core_extensions/file_watcher.rb', line 27 def registered(app) app.send :include, InstanceMethods # Before parsing config, load the data/ directory app.before_configuration do files.reload_path(data_dir) end # After config, load everything else app.ready do files.reload_path('.') end end |