Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MODIFIED - Ditched Package.json in favour of connect.compress & stati…

…cCache + bumped version to v0.5.2
  • Loading branch information...
commit 536342910c6a47f7ea6fa23553a6ae2b30432ae6 1 parent bca7c57
Gabriel Lesperance authored
Showing with 11 additions and 10 deletions.
  1. +7 −5 lib/client/client.js
  2. +4 −5 package.json
12 lib/client/client.js
View
@@ -10,7 +10,6 @@ var async = require('async')
, EventEmitter = events.EventEmitter
- , gzip = require('gzippo')
, requirejs = require('../vendors/r')
, rimraf = require('rimraf')
, util = require('util')
@@ -534,17 +533,20 @@ exports.setup = function setup_client() {
, buildClient
;
+ app.use(express.compress());
+
+ app.use(express.staticCache());
/***
* sets up a static middleware to serve the webapp `client/static` folder
* as `/static`
*/
- app.use('/static', gzip.staticGzip(static_dir_path));
+ app.use('/static', express.static(static_dir_path));
/***
* sets up a static middleware to serve the rocket `rocket-js` folder
* as `/rocket-js`
*/
- app.use('/js/rocket', gzip.staticGzip(path.join(__dirname, 'rocket-js')));
+ app.use('/js/rocket', express.static(path.join(__dirname, 'rocket-js')));
function doneCallback() {
if (middlewares) {
@@ -660,7 +662,7 @@ exports.setup = function setup_client() {
//sets up a static middleware to serve the webapp optimized tmp js folder
//as `/js`
- app.use('/js', gzip.staticGzip(client_build_js_dir_path));
+ app.use('/js', express.static(client_build_js_dir_path));
callback(null);
}
@@ -684,7 +686,7 @@ exports.setup = function setup_client() {
, function(callback) {
//sets up a static middleware to serve the webapp optimized tmp css folder
//as `/css`
- app.use('/css', gzip.staticGzip(client_build_css_dir_path));
+ app.use('/css', express.static(client_build_css_dir_path));
callback(null);
}
9 package.json
View
@@ -2,7 +2,7 @@
"name": "rocket"
, "description": "The rapid development framework for node.js"
, "keywords": ["mvc", "model view controller", "comet","rapid development", "Rocket", "framework"]
-, "version": "0.5.1"
+, "version": "0.5.2"
, "homepage": "http://wavo.me"
, "repository":
{ "type" : "git"
@@ -17,8 +17,8 @@
, "dependencies": {
"express" : "2.5.x"
, "express-resource" : "0.2.x"
- , "nopt" : "1.0.x"
- , "jade" : "0.24.x"
+ , "nopt" : "2.0.x"
+ , "jade" : "0.26.x"
, "lingo" : "0.0.x"
, "async" : "0.1.x"
, "async-fs" : "0.0.x"
@@ -28,8 +28,7 @@
, "jade-i18n" : "= 0.0.2"
, "now" : "0.8.x"
, "colors" : "0.6.x"
- , "gzippo" : "0.1.x"
- , "requirejs" : "1.0.x"
+ , "requirejs" : "2.0.x"
}
, "devDependencies": {
}
Please sign in to comment.
Something went wrong with that request. Please try again.