New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-sassdoc

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-sassdoc - npm Package Compare versions

Comparing version 0.3.3 to 0.4.0

2

package.json
{
"name": "grunt-sassdoc",
"title": "grunt-sassdoc",
"version": "0.3.3",
"version": "0.4.0",
"description": "SassDoc grunt task",

@@ -6,0 +6,0 @@ "keywords": [

@@ -153,3 +153,3 @@ # grunt-sassdoc [![npm version](http://img.shields.io/npm/v/grunt-sassdoc.svg?style=flat)](https://www.npmjs.org/package/grunt-sassdoc) [![Build Status: Linux](http://img.shields.io/travis/SassDoc/grunt-sassdoc.svg?style=flat)](https://travis-ci.org/SassDoc/grunt-sassdoc?branch=master)

**The start and done events are not intended for replacing the standard Grunt API for configuring and running tasks.**
Here is a simple example using the watch event:
Here is a simple example using them:

@@ -156,0 +156,0 @@ ```js

@@ -5,3 +5,3 @@ /*

* unlicenced
* https://github.com/SassDoc/grunt-SassDoc/blob/master/UNLICENCE
* https://github.com/SassDoc/grunt-sassdoc/blob/master/UNLICENCE
*/

@@ -17,3 +17,3 @@

var validateSrc = function (filePair) {
function validateSrc(filePair) {
return filePair.src.filter(function (filepath) {

@@ -28,5 +28,5 @@ if (!grunt.file.exists(filepath)) {

});
};
}
var loadJSON = function (path) {
function loadJSON(path) {
if (!grunt.file.exists(path)) {

@@ -39,8 +39,6 @@ grunt.log.warn('JSON file "' + chalk.cyan(path) + '" not found.');

}
};
}
grunt.registerMultiTask('sassdoc', 'Generates documentation', function () {
var done = this.async();
var target = this.target;
function handleOptions() {
// Defaults
var options = this.options({

@@ -64,3 +62,2 @@ verbose: false,

options = _.assign(options, config);
options = _.omit(options, 'config');
}

@@ -83,2 +80,14 @@ }

// Clean options not expected by SassDoc.
options = _.omit(options, ['verbose', 'config']);
return options;
}
grunt.registerMultiTask('sassdoc', 'Generates documentation', function () {
var done = this.async();
var target = this.target;
var options = handleOptions.call(this);
function compile(filePair) {

@@ -85,0 +94,0 @@ var src = validateSrc(filePair);

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