Commit 665ac3cb authored by Nick Poulden's avatar Nick Poulden
Browse files

Update Rakefile to exclude ext.js from files to delete when building

parent 798a3164
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -78,8 +78,8 @@ def run_jsduck_export(extra_options)
  EOHTML

  run_jsduck([
    "--title", "Ext JS 4.0.2a API Documentation",
    "--footer", "ExtJS 4.0.2a Documentation from Sencha. Generated with <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> revison #{rev}",
    "--title", "Ext JS 4.0 API Documentation",
    "--footer", "ExtJS 4.0 Documentation from Sencha. Generated with <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> revison #{rev}",
    "--head-html", head_html,
    "#{SDK_DIR}/extjs/src",
    "#{SDK_DIR}/platform/src",
@@ -204,7 +204,9 @@ def combine_js(html, base_dir)
    if line =~ /<script .* src="(.*)">/
      file = $1
      js << IO.read(base_dir + "/" + file)
      if file !~ /ext\.js/
        system("rm", base_dir + "/" + file)
      end
    elsif line =~ /<script .*>(.*)<\/script>/
      js << $1
    end