-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
52 lines (29 loc) · 1.05 KB
/
config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# middleman config file
# see http://middlemanapp.com/
require 'yaml'
parent_dir = '../../'
config_path = parent_dir + 'whatsmyip-core-build-option.yml'
# load platform specific middleman settings
platform_settings = File.exist?(config_path) ? YAML.load_file(config_path) : {}
set :source, 'm'
set :build_dir, platform_settings.has_key?('build_dir') ? parent_dir + platform_settings['build_dir'] : 'middleman-build'
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
ready do
sprockets.append_path File.join root, "bower_components"
sprockets.append_path File.join root, "../../bower_components" # bower components of the parent project
sprockets.append_path '../src' # main implementations
sprockets.append_path '../../../infrastructure' # infrastructure implementations in the parent project
end
config = {}
# develop mode configuration
configure :development do
config['language'] = 'en'
end
# build time settings
configure :build do
activate :minify_css
activate :minify_javascript
end
set :config, config