lib/bpm/project.rb in bpm-1.0.0.beta.10 vs lib/bpm/project.rb in bpm-1.0.0.beta.11
- old
+ new
@@ -481,11 +481,13 @@
# Name of minifier
def minifier_name(asset_name)
- build_settings[asset_name] && build_settings[asset_name]['bpm:minifier']
+ build_settings[asset_name] &&
+ build_settings[asset_name]['bpm:provides'] &&
+ build_settings[asset_name]['bpm:provides']['minifier']
end
def load_json
return super if has_json?
(FIELDS.keys + %w(description summary homepage)).each do |f|
@@ -752,14 +754,15 @@
if opts['directories'] && opts['directories'].size>0
ret[target_name][dep_name] = opts['directories']
end
if opts['minifier']
+ ret[target_name]['bpm:provides'] ||= {}
if opts['minifier'].is_a? String
- ret[target_name]['bpm:minifier'] = {}
- ret[target_name]['bpm:minifier'][opts['minifier']] = '>= 0'
+ ret[target_name]['bpm:provides']['minifier'] = {}
+ ret[target_name]['bpm:provides']['minifier'][opts['minifier']] = '>= 0'
else
- ret[target_name]['bpm:minifier'] = opts['minifier']
+ ret[target_name]['bpm:provides']['minifier'] = opts['minifier']
end
end
Array(opts['include']).each do |package_name|
dep = local_deps.find { |cur_dep| cur_dep.name == package_name }