Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-renderer-bourbon

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-renderer-bourbon - npm Package Compare versions

Comparing version 0.0.2 to 1.0.0

14

index.js
'use strict';
var renderer = require('./lib/renderer');
var assign = require('object-assign');
hexo.config.bourbon = assign({
imagePath: 'images' ,
omitSourceMapUrl: false,
indentedSyntax: false,
precision: 8,
outputStyle: 'nested',
sourceComments: 'none' ,
sourceMapEmbed: false,
sourceMapContents: false
}, hexo.config.bourbon);
hexo.extend.renderer.register('scss', 'css', renderer);
hexo.extend.renderer.register('sass', 'css', renderer);

19

lib/renderer.js

@@ -5,20 +5,15 @@ 'use strict';

var bourbon = require('node-bourbon');
var assign = require('object-assign');
var assign = require('lodash.assign');
module.exports = function (data, options, cb) {
var error, result;
module.exports = function (data, options) {
var config = this.config.bourbon;
var opts = assign({
var result = sass.renderSync(assign({
file: data.path,
data: data.text,
includePaths: bourbon.includePaths
}, config);
}, config));
try {
result = sass.renderSync(opts);
} catch (_error) {
error = _error;
return cb(error);
}
return cb(null, result.css);
return result.css.toString();
};
{
"name": "hexo-renderer-bourbon",
"version": "0.0.2",
"version": "1.0.0",
"description": "An up-to-date node-sass wrapper for Hexo that includes Bourbon mixins.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "gulp test"
},

@@ -27,6 +27,18 @@ "repository": {

"dependencies": {
"lodash.assign": "^3.1.0",
"node-bourbon": "^4.2.1-beta1",
"node-sass": "^2.0.1",
"object-assign": "^2.0.0"
"node-sass": "^3.0.0-beta.7"
},
"devDependencies": {
"chai": "^2.2.0",
"coveralls": "^2.11.2",
"gulp": "^3.8.11",
"gulp-istanbul": "^0.8.1",
"gulp-jshint": "^1.10.0",
"gulp-load-plugins": "^0.10.0",
"gulp-mocha": "^2.0.1",
"jshint-stylish": "^1.0.1",
"mocha": "^2.2.4",
"rimraf": "^2.3.2"
}
}
# [Sass] renderer for [Hexo] with [Bourbon] support
[![Build Status](https://travis-ci.org/celsomiranda/hexo-renderer-bourbon.svg)](https://travis-ci.org/celsomiranda/hexo-renderer-bourbon)
[![NPM Version](https://badge.fury.io/js/hexo-renderer-bourbon.svg)](http://badge.fury.io/js/hexo-renderer-bourbon)
[![NPM Dependencies](https://david-dm.org/celsomiranda/hexo-renderer-bourbon.svg)](https://www.npmjs.com/package/hexo-renderer-bourbon)
[![Coverage Status](https://coveralls.io/repos/celsomiranda/hexo-renderer-bourbon/badge.svg)](https://coveralls.io/r/celsomiranda/hexo-renderer-bourbon)
An up-to-date [node-sass] wrapper that includes [Bourbon] mixins.

@@ -42,2 +47,8 @@

#### sourceMap
This must be `true` even for embeded sourcemaps.
#### outFile
Must put the name of the output css file for sourcemaps to work.
#### sourceMapEmbed

@@ -60,2 +71,4 @@ `sourceMapEmbed` is a `Boolean` flag to determine whether to embed `sourceMappingUrl` as data URI.

omitSourceMapUrl: false
sourceMap: false
outFile: '',
sourceMapEmbed: false

@@ -62,0 +75,0 @@ sourceMapContents: false

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc