Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Commit

Permalink
Release 1.5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Mar 19, 2013
1 parent f0e592c commit f172fe5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
13 changes: 8 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# css-brunch 1.5.0 (January 13, 2012)
# css-brunch 1.5.1 (19 March 2013)
* Added node 0.10 support, removed coffee-script dependency.

# css-brunch 1.5.0 (13 January 2013)
* Improved installation process.

# css-brunch 1.3.0 (June 29, 2012)
# css-brunch 1.3.0 (29 June 2012)
* Added node.js 0.8 and 0.9 support.
* Package is now precompiled before every publishing to npm.

# css-brunch 1.1.1 (April 15, 2012)
# css-brunch 1.1.1 (15 April 2012)
* Fixed error reporting when installing the package.

# css-brunch 1.1.0 (April 09, 2012)
# css-brunch 1.1.0 (9 April 2012)
* Added windows support.

# css-brunch 1.0.0 (March 14, 2012)
# css-brunch 1.0.0 (14 March 2012)
* Initial release
12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "css-brunch",
"version": "1.5.0",
"version": "1.5.1",
"description": "Adds CSS support to brunch.",
"author": "Paul Miller (http://paulmillr.com/)",
"homepage": "https://github.com/brunch/css-brunch",
Expand All @@ -12,15 +12,9 @@
"scripts": {
"prepublish": "node setup.js prepublish",
"postpublish": "node setup.js postpublish",
"test": "node setup.js test",
"postinstall": "node setup.js postinstall"
},
"engines": {
"node": "~0.6.10 || 0.8 || 0.9"
},
"dependencies": {
"coffee-script": "1.4.0"
"test": "node setup.js test"
},
"dependencies": {},
"devDependencies": {
"mocha": "1.8.1",
"chai": "1.4.2"
Expand Down
13 changes: 8 additions & 5 deletions setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ var getBinaryPath = function(binary) {

var execute = function(path, params, callback) {
if (callback == null) callback = function() {};
var command = 'node ' + path + ' ' + params;
var command = path + ' ' + params;
console.log('Executing', command);
exec(command, function(error, stdout, stderr) {
if (error != null) return process.stderr.write(stderr.toString());
console.log(stdout.toString());
});
};

var execNode = function(path, params, callback) {
execute('node ' + getBinaryPath(path), params, callback);
};

var togglePostinstall = function(add) {
var pkg = require('./package.json');

Expand All @@ -39,7 +43,7 @@ switch (mode) {
// Remove `.postinstall` script to prevent stupid npm bugs.
case 'prepublish':
togglePostinstall(false);
execute(getBinaryPath('coffee'), '-o lib/ src/');
execute('coffee', '-o lib/ src/');
break;

// Bring back `.postinstall` script.
Expand All @@ -51,14 +55,13 @@ switch (mode) {
case 'postinstall':
fsExists(sysPath.join(__dirname, 'lib'), function(exists) {
if (exists) return;
execute(getBinaryPath('coffee'), '-o lib/ src/');
execute('coffee', '-o lib/ src/');
});
break;

// Run tests.
case 'test':
execute(
getBinaryPath('mocha'),
execNode('mocha',
'--compilers coffee:coffee-script --require test/common.js --colors'
);
break;
Expand Down

0 comments on commit f172fe5

Please sign in to comment.