Permalink
Browse files

Please work.

  • Loading branch information...
1 parent 3a0e254 commit 509dd0c4984f3750d4a54f074358672a000173e9 @jbt committed Jun 5, 2012
Showing with 1,078 additions and 1,056 deletions.
  1. +22 −0 .gitattributes
  2. +25 −25 docker
  3. +27 −27 package.json
  4. +1,004 −1,004 src/docker.js
View
@@ -0,0 +1,22 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+# Custom for Visual Studio
+*.cs diff=csharp
+*.sln merge=union
+*.csproj merge=union
+*.vbproj merge=union
+*.fsproj merge=union
+*.dbproj merge=union
+
+# Standard to msysgit
+*.doc diff=astextplain
+*.DOC diff=astextplain
+*.docx diff=astextplain
+*.DOCX diff=astextplain
+*.dot diff=astextplain
+*.DOT diff=astextplain
+*.pdf diff=astextplain
+*.PDF diff=astextplain
+*.rtf diff=astextplain
+*.RTF diff=astextplain
View
50 docker
@@ -1,26 +1,26 @@
-#!/usr/bin/env node
-
-var path = require('path');
-var Docker = require('./src/docker.js');
-var pwd = path.resolve('.');
-var program = require('commander');
-var watchr = require('watchr');
-
-program
- .version('0.1.1')
- .option('-i, --input_dir [dir]', 'Input directory (defaults to current dir)', pwd)
- .option('-o, --output_dir [dir]', 'Output directory (defaults to ./doc)', path.join(pwd, 'doc') )
- .option('-u, --updated_files', 'Only process files that have been changed')
- .option('-c, --colour_scheme [style]', 'Colour scheme to use (as in pygmentize -L styles)')
- .option('-I, --ignore_hidden', 'Ignore hidden files and directories (those starting with . or _)')
- .option('-w, --watch', 'Watch on the input directory for file changes (experimental)')
- .parse(process.argv);
-
-var d = new Docker(program.input_dir, program.output_dir, program.updated_files, program.colour_scheme, program.ignore_hidden);
-if(program.args.length === 0) program.args = ['./'];
-
-if(program.watch){
- d.watch(program.args);
-}else{
- d.doc(program.args);
+#!/usr/bin/env node
+
+var path = require('path');
+var Docker = require('./src/docker.js');
+var pwd = path.resolve('.');
+var program = require('commander');
+var watchr = require('watchr');
+
+program
+ .version('0.1.1')
+ .option('-i, --input_dir [dir]', 'Input directory (defaults to current dir)', pwd)
+ .option('-o, --output_dir [dir]', 'Output directory (defaults to ./doc)', path.join(pwd, 'doc') )
+ .option('-u, --updated_files', 'Only process files that have been changed')
+ .option('-c, --colour_scheme [style]', 'Colour scheme to use (as in pygmentize -L styles)')
+ .option('-I, --ignore_hidden', 'Ignore hidden files and directories (those starting with . or _)')
+ .option('-w, --watch', 'Watch on the input directory for file changes (experimental)')
+ .parse(process.argv);
+
+var d = new Docker(program.input_dir, program.output_dir, program.updated_files, program.colour_scheme, program.ignore_hidden);
+if(program.args.length === 0) program.args = ['./'];
+
+if(program.watch){
+ d.watch(program.args);
+}else{
+ d.doc(program.args);
}
View
@@ -1,27 +1,27 @@
-{
- "author": "JT <jt@gosquared.com>",
- "name": "docker",
- "version": "0.1.1",
- "dependencies": {
- "mkdirp": "0.3.2",
- "dox": "0.3.1",
- "commander": "0.5.2",
- "watchr": "2.0.3"
- },
- "bin": {
- "docker": "./docker"
- },
- "engines": {
- "node": ">=0.4.0"
- },
- "description": "Static documentation generator based on docco",
- "homepage": "http://jbt.github.com/docker",
- "repository": {
- "type": "git",
- "url": "git://github.com/jbt/docker.git"
- },
- "scripts": {
- "install": "node scripts/install.js"
- },
- "main": "./src/docker.js"
-}
+{
+ "author": "JT <jt@gosquared.com>",
+ "name": "docker",
+ "version": "0.1.1",
+ "dependencies": {
+ "mkdirp": "0.3.2",
+ "dox": "0.3.1",
+ "commander": "0.5.2",
+ "watchr": "2.0.3"
+ },
+ "bin": {
+ "docker": "./docker"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ },
+ "description": "Static documentation generator based on docco",
+ "homepage": "http://jbt.github.com/docker",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/jbt/docker.git"
+ },
+ "scripts": {
+ "install": "node scripts/install.js"
+ },
+ "main": "./src/docker.js"
+}
Oops, something went wrong.

0 comments on commit 509dd0c

Please sign in to comment.