Skip to content

Commit

Permalink
v0.2.3. Now we only load in the dependencies that we are using.
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Apr 2, 2011
1 parent cc3924b commit a3d0a3d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
21 changes: 16 additions & 5 deletions lib/buildr.js
Expand Up @@ -5,11 +5,11 @@
sys = require("sys"),
fs = require("fs"),
path = require("path"),
less = require("less"),
pulverizr = require("pulverizr"),
uglify = require("uglify-js"),
jsp = uglify.parser,
pro = uglify.uglify,
less = false,
pulverizr = false,
uglify = false,
jsp = false,
pro = false,
util = require('util'),
exec = require('child_process').exec,
deps = require(__dirname+'/dep.js'),
Expand Down Expand Up @@ -529,6 +529,11 @@
// Prepare
var config = this.config, me = this;

// Load
uglify = require("uglify-js");
jsp = uglify.parser;
pro = uglify.uglify;

// Compress
config.files.js.each(function(key,filePath){
if ( !filePath ) return; // continue
Expand All @@ -551,6 +556,9 @@
// Prepare
var config = this.config, me = this;

// Load
less = require("less");

// Compress
config.files.css.each(function(key,filePath){
if ( !filePath ) return; // continue
Expand Down Expand Up @@ -597,6 +605,9 @@
// Prepare
var config = this.config, me = this;

// Load
pulverizr = require("pulverizr");

// Compress
config.files.img.each(function(key,filePath){
if ( !filePath ) return; // continue
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "buildr",
"version": "0.2.3",
"version": "0.2.4",
"description": "The JavaScript Project Buildr. Built with Node.js and used by Aloha Editor and History.js",
"homepage": "https://github.com/balupton/buildr.npm",
"keywords": [
Expand Down

0 comments on commit a3d0a3d

Please sign in to comment.