Skip to content

Commit

Permalink
Merge pull request andrewplummer#190 from demonkoryu/build-modular-de…
Browse files Browse the repository at this point in the history
…velopment-dist

Custom build: produce development version with only required modules. Fixes SugarJS andrewplummer#190
  • Loading branch information
andrewplummer committed Sep 6, 2012
2 parents 081f697 + 5791e9f commit 329cf11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/create_release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ def get_content(package)

def create_development
full_content = ''
@packages.each do |p|
packages = @custom_packages.length > 0 ? @custom_packages : @packages
packages.each do |p|
content = get_content(p)
File.open("release/#{@version}/precompiled/development/#{p}.js", 'w').write(content)
full_content << content
end
File.open("release/#{@version}/sugar-#{@version}-full.development.js", 'w').write(@copyright + wrap(full_content))
File.open("release/#{@version}/sugar-#{@version}-custom.development.js", 'w').write(@copyright + wrap(full_content))
end

def compile
Expand Down

0 comments on commit 329cf11

Please sign in to comment.