Socket
Socket
Sign inDemoInstall

styledocco

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styledocco - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

.sass-cache/49b300c714cc67c0843aba1b7d9c2acb4c12882d/collect.sassc

7

lib/main.js

@@ -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', "" + __dirname + "/../resources/").describe('overwrite', 'Overwrite existing files in target dir').boolean('overwrite').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('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;

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

menu: menu,
root: _.buildRootPath(source)
root: _.buildRootPath(source),
nocss: options.nocss
};

@@ -150,3 +151,3 @@ render = function(data) {

if (options.overwrite || !path.existsSync(cssPath)) {
fs.writeFileSync(cssPath, fs.readFileSync(__dirname + '/../resources/docs.css', 'utf-8'));
fs.writeFileSync(cssPath, fs.readFileSync(path.join(options.tmpl, 'docs.css'), 'utf-8'));
console.log("styledocco: writing " + (path.join(options.out, 'docs.css')));

@@ -153,0 +154,0 @@ }

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

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

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

@@ -39,4 +39,5 @@ ```

* `--out`, `-o` Output directory *(default: "docs")*
* `--tmpl` Directory for custom `docs.jade` template *(optional)*
* `--overwrite` Overwrite existing files (`docs.css`) in target directory.
* `--tmpl` Directory for custom `docs.jade` and `docs.css` *(optional)*
* `--nocss` Hide CSS code pane. *(default: false)*
* `--overwrite` Overwrite existing files (`docs.css`) in target directory. *(default: false)*

@@ -62,2 +63,2 @@

A lot of the heavy lifting in StyleDocco is done by the excellent [Marked](https://github.com/chjj/marked) module by Christopher Jeffrey. The original [Docco](https://github.com/jashkenas/docco) by Jeremy Ashkenas and [Docco Husky](https://github.com/mbrevoort/docco-husky) by Mike Brevoort were also of great help to this project.
A lot of the heavy lifting in StyleDocco is done by the excellent [Marked](https://github.com/chjj/marked) module by Christopher Jeffrey. The original [Docco](https://github.com/jashkenas/docco) by Jeremy Ashkenas and [Docco Husky](https://github.com/mbrevoort/docco-husky) by Mike Brevoort were also of great help to this project. StyleDocco was also inspired by [Knyle Style Sheets](https://github.com/kneath/kss), a similar project written in Ruby.

Sorry, the diff of this file is not supported yet

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc