Skip to content

Commit

Permalink
Merge pull request #5 from 2betop/master
Browse files Browse the repository at this point in the history
让fis-parser-sass支持node 0.8.0+
  • Loading branch information
fouber committed Feb 26, 2014
2 parents 7bc3bc2 + c53a161 commit 156c01a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# fis-parser-sass

> **WARNING** : Node.js ``v0.10.0`` required!!!
A parser plugin for fis to compile sass file.

## usage
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

'use strict';

var sass = require('node-sass');
var sass = require('fis-sass');

module.exports = function(content, file, conf){
var opts = fis.util.clone(conf);
opts.data = content;
opts.include_paths = conf.include_paths || [ file.dirname ];

return sass.renderSync(opts);
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "fis-parser-sass",
"description" : "A parser plugin for fis to compile sass file.",
"version" : "0.0.2",
"version" : "0.0.4",
"author" : "FIS Team <[email protected]>",
"homepage" : "http://fis.baidu.com/",
"keywords": [ "fis", "sass" ],
Expand All @@ -11,12 +11,12 @@
"url": "https://github.com/fouber/fis-parser-sass.git"
},
"engines" : {
"node" : ">=0.10.0"
"node" : ">=0.8.0"
},
"scripts" : {
"test" : "mocha test/ut --recursive"
},
"dependencies" : {
"node-sass" : "0.7.0"
"fis-sass" : "~0.1.7"
}
}

0 comments on commit 156c01a

Please sign in to comment.