Socket
Socket
Sign inDemoInstall

styledocco

Package Overview
Dependencies
81
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.3 to 0.2.4

6

lib/languages.js

@@ -45,5 +45,7 @@ (function() {

Language.prototype.compile = function(filename, cb) {
Language.prototype.compile = function(filename, passthroughArgs, cb) {
var args;
if (this.preprocessor != null) {
return exec("" + this.preprocessor.cmd + " " + (this.preprocessor.args.join(' ')) + " " + filename, function(err, stdout, stderr) {
args = (passthroughArgs != null) && typeof passthroughArgs === 'string' ? this.preprocessor.args.concat([passthroughArgs]) : this.preprocessor.args;
return exec("" + this.preprocessor.cmd + " " + (args.join(' ')) + " " + filename, function(err, stdout, stderr) {
return cb(err, stdout);

@@ -50,0 +52,0 @@ });

@@ -22,3 +22,3 @@ (function() {

options = optimist.usage('Usage: $0 [options] [INPUT]').describe('name', 'Name of the project').alias('n', 'name').demand('name').describe('out', 'Output directory').alias('o', 'out')["default"]('out', 'docs').describe('tmpl', 'Template directory')["default"]('tmpl', path.resolve(__dirname, '../resources/')).describe('nocss', 'Hide CSS code pane').boolean('nocss')["default"]('nocss', false).describe('overwrite', 'Overwrite existing files in target dir').boolean('overwrite')["default"]('overwrite', false).argv;
options = optimist.usage('Usage: $0 [options] [INPUT]').describe('name', 'Name of the project').alias('n', 'name').demand('name').describe('out', 'Output directory').alias('o', 'out')["default"]('out', 'docs').describe('nocss', 'Hide CSS code pane').boolean('nocss')["default"]('nocss', false).describe('tmpl', 'Template directory')["default"]('tmpl', "" + __dirname + "/../resources/").describe('overwrite', 'Overwrite existing files in target dir').boolean('overwrite').describe('pass', 'Pass argument through to CSS preprocessor').argv;

@@ -80,3 +80,3 @@ options["in"] = options._[0] || './';

lang = langs.getLanguage(source);
return lang.compile(source, function(err, css) {
return lang.compile(source, options['pass'], function(err, css) {
if (err != null) throw err;

@@ -83,0 +83,0 @@ data.css = css;

@@ -9,3 +9,3 @@ {

"author": "Jacob Rask <jacob@jacobrask.net>",
"version": "0.2.3",
"version": "0.2.4",
"homepage": "http://jacobrask.github.com/styledocco/",

@@ -12,0 +12,0 @@ "licenses": [

@@ -40,4 +40,5 @@ ```

* `--tmpl` Directory for custom `docs.jade` and `docs.css` *(optional)*
* `--overwrite` Overwrite existing files (`docs.css`) in target directory. *(default: false)*
* `--pass` Pass arguments through to CSS preprocessor *(optional)* (ex: `--pass="--include-path=../less/include"`)
* `--nocss` Hide CSS code pane. *(default: false)*
* `--overwrite` Overwrite existing files (`docs.css`) in target directory. *(default: false)*

@@ -44,0 +45,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc