diff --git a/lib/assets-compiler.js b/lib/assets-compiler.js index dc3c711..bcf7164 100644 --- a/lib/assets-compiler.js +++ b/lib/assets-compiler.js @@ -312,9 +312,9 @@ AssetsCompiler.prototype.addCompilers = function() { this.add('scss', { render: function(str, options, fn){ - this.nodeSass = this.nodSass || require('node-sass'); + this.nodeSass = this.nodeSass || require('node-sass'); try{ - fn(null, this.nodeSass.renderSync({data: str})); + fn(null, this.nodeSass.renderSync({data: str}).css); }catch (err) { fn(err); } diff --git a/package.json b/package.json index 48a5f90..b141373 100644 --- a/package.json +++ b/package.json @@ -7,25 +7,20 @@ "test": "make test" }, "dependencies": { - "uglify-js":">= 2.2.5" + "uglify-js": ">= 2.2.5" }, "devDependencies": { - "mocha": "1.8.1", - "should": "1.2.2", - "semicov": "0.1.1", - "supertest": "0.5.1", + "coffee-script": "~1.9.2", "compound": "1.x", "express": "3.x", - - "stylus": "0.32.1", - "sass": "0.5.0", - "node-sass": "0.6.6", - "less": "1.3.3", - "coffee-script": "1.6.1" - }, - "repository": { - "type": "git", - "url": "https://github.com/compoundjs/assets-compiler.git" + "less": "~1.7.5", + "mocha": "~2.2.4", + "node-sass": "~2.1.1", + "sass": "~0.5.0", + "semicov": "~0.1.1-2", + "should": "~6.0.1", + "stylus": "~0.51.1", + "supertest": "~0.15.0" }, "repository": "", "keywords": [ @@ -41,15 +36,16 @@ "middleware" ], "author": "Sascha Gehlich ", - "contributors": [{ - "name": "Dmitry Erman", - "email": "dmitry.erman@gmail.com", - "web": "https://github.com/dmitrye" + "contributors": [ + { + "name": "Dmitry Erman", + "email": "dmitry.erman@gmail.com", + "web": "https://github.com/dmitrye" }, { - "name": "Henrik Myntti", - "email": "henrik.myntti@gmail.com", - "web": "https://github.com/hankeypancake" + "name": "Henrik Myntti", + "email": "henrik.myntti@gmail.com", + "web": "https://github.com/hankeypancake" } ], "license": "MIT" diff --git a/test/compilers.coffeescript.test.js b/test/compilers.coffeescript.test.js index fbcd2dd..99d8ee8 100644 --- a/test/compilers.coffeescript.test.js +++ b/test/compilers.coffeescript.test.js @@ -34,7 +34,7 @@ describe('assets-compiler', function() { should.not.exist(err); res.headers['content-type'].should.match(/^application\/javascript/); - res.headers['content-length'].should.equal('61'); + res.headers['content-length'].should.equal('60'); res.text.should.equal(fs.readFileSync(app.root + '/public/javascripts/application.js').toString()); @@ -46,4 +46,4 @@ describe('assets-compiler', function() { }); -}); \ No newline at end of file +});