brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rich...@apache.org
Subject [2/6] reorganize how optimization is done: - use US english for consistency - move the optimize config files so they aren't included in generated WAR - reorder so that the same order can be followed in projects which want to use this as a template for cu
Date Thu, 12 Jun 2014 20:55:14 GMT
http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/5979ead9/usage/jsgui/src/main/resources/optimise-css.build.js
----------------------------------------------------------------------
diff --git a/usage/jsgui/src/main/resources/optimise-css.build.js b/usage/jsgui/src/main/resources/optimise-css.build.js
deleted file mode 100644
index 6d19c55..0000000
--- a/usage/jsgui/src/main/resources/optimise-css.build.js
+++ /dev/null
@@ -1,12 +0,0 @@
-({
-    cssIn: "${project.basedir}/src/main/webapp/assets/css/styles.css",
-    out: "${project.build.webapp}/assets/css/styles.min.css",
-
-    // CSS optimization options are:
-    //  - "standard": @import inlining, comment removal and line returns.
-    //  - "standard.keepLines": like "standard" but keeps line returns.
-    //  - "standard.keepComments": keeps the file comments, but removes line returns.
-    //  - "standard.keepComments.keepLines": keeps the file comments and line returns.
-    //  - "none": skip CSS optimizations.
-    optimizeCss: "standard"
-})

http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/5979ead9/usage/jsgui/src/main/resources/optimise-javascript.build.js
----------------------------------------------------------------------
diff --git a/usage/jsgui/src/main/resources/optimise-javascript.build.js b/usage/jsgui/src/main/resources/optimise-javascript.build.js
deleted file mode 100644
index 8e2e373..0000000
--- a/usage/jsgui/src/main/resources/optimise-javascript.build.js
+++ /dev/null
@@ -1,18 +0,0 @@
-({
-    // The entry point to the application. Brooklyn's is in config.js.
-    name: "config",
-    baseUrl: "${project.basedir}/src/main/webapp/assets/js",
-    mainConfigFile: "${project.basedir}/src/main/webapp/assets/js/config.js",
-    paths: {
-        // Include paths to external resources (e.g. on a CDN) here.
-
-        // Optimiser looks for js/requireLib.js by default.
-        "requireLib": "libs/require"
-    },
-
-    // Place the optimised file in target/<war>/assets.
-    out: "${project.build.webapp}/assets/js/gui.min.js",
-
-    // Set to "none" to skip minification
-    optimize: "uglify"
-})


Mime
View raw message