Browse files

Remove dependency on YUI Compressor and ability to minify strophe.js …

…during release build
  • Loading branch information...
1 parent 5acfb5f commit 521168d9bb1d268594f7a1dfbdedcb9acd9a95ce @benlangfeld benlangfeld committed Nov 10, 2010
Showing with 4 additions and 13 deletions.
  1. +3 −11 Jakefile
  2. +1 −2 README.markdown
View
14 Jakefile
@@ -56,13 +56,13 @@ framework ("StropheCappuccino", function(task)
task("build", ["StropheCappuccino"]);
-task("debug", ["strophe-debug"], function()
+task("debug", ["build-strophe"], function()
{
ENV["CONFIG"] = "Debug"
JAKE.subjake(["."], "build", ENV);
});
-task("release", ["strophe-release"], function()
+task("release", ["build-strophe"], function()
{
ENV["CONFIG"] = "Release"
JAKE.subjake(["."], "build", ENV);
@@ -118,22 +118,14 @@ task("test", function()
OS.exit(code);
});
-task("strophe-debug", function()
+task("build-strophe", function()
{
var cmdString = "cd strophejs && make normal && mv strophe.js ../Resources/Strophe/strophe.js && cd ../";
var code = OS.system(cmdString);
if (code !== 0)
OS.exit(code);
});
-task("strophe-release", function()
-{
- var cmdString = "cd strophejs && make min && mv strophe.min.js ../Resources/Strophe/strophe.js && cd ../";
- var code = OS.system(cmdString);
- if (code !== 0)
- OS.exit(code);
-});
-
task ("default", ["release"]);
task ("docs", ["release", "documentation"]);
task ("all", ["release", "debug", "documentation"]);
View
3 README.markdown
@@ -19,8 +19,7 @@ This will build Strophe from source also. You must first initialise the Strophe.
# git submodule init
-If you wish to build the release version of StropheCappuccino, you will need to have YUI Compressor, and export
-the path to yui-compressor-xxx.jar in your shell config as YUI_COMPRESSOR.
+The release build will not minify strophe.js. To do this, you must run Resources/Strophe/strophe.js through YUI Compressor after building StropheCappuccino.
## Quick Start

0 comments on commit 521168d

Please sign in to comment.