diff --git a/Rakefile b/Rakefile index ea5d1ff65dac1bf32dd6c7a4189ef16d5c5ec626..15dae91407d277c4bf2531f0cbc2fa205e3ec952 100644 --- a/Rakefile +++ b/Rakefile @@ -151,6 +151,24 @@ task :docs do ]) end +desc "Run JSDuck on ExtJS charts" +task :charts do + load_sdk_vars + system(*[ + "ruby", "bin/jsduck", + "--external", "Error", + "--ignore-global", + "--guides", "#{SDK_DIR}/guides", + "--guides-order", "drawing,theming", + "--output", "#{OUT_DIR}", + "--no-warnings", + "#{SDK_DIR}/charts/src", + ]) + + system "cp -r #{SDK_DIR}/platform/doc-resources #{OUT_DIR}/doc-resources" +end + + # Compress JS/CSS file in-place # Using a hackish way to access yui-compressor def yui_compress(fname)