Skip to content

Commit

Permalink
Format and alphabetize text
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Cheung committed Jun 3, 2015
1 parent 6c0236a commit ca5e5b2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

node_modules/
.DS_Store
/nbproject/private/
nbproject/private/
node_modules/
5 changes: 2 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

example/
.DS_Store
.git*
example/
project.sublime-project
project.sublime-workspace
project.sublime-workspace
1 change: 0 additions & 1 deletion jshint.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@
"white" : true, // Check against strict whitespace and indentation rules.
"indent" : 2 // Specify indentation spacing
}

12 changes: 6 additions & 6 deletions lib/swagger-express/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
var _ = require('underscore');
var async = require('async');
var coffee = require('coffee-script');
var doctrine = require('doctrine');
var express = require('express');
var fs = require('fs');
var path = require('path');
var yaml = require('js-yaml');
var coffee = require('coffee-script');
var url = require('url');
var yaml = require('js-yaml');

var doctrine = require('doctrine');
var express = require('express');
var descriptor = {};
var resources = {};

Expand Down Expand Up @@ -50,7 +50,7 @@ function parseJsDocs(file, fn) {
fn(null, docs);
return;
}

for (var i = 0; i < fragments.length; i++) {
var fragment = fragments[i];
var doc = doctrine.parse(fragment, { unwrap: true });
Expand Down Expand Up @@ -318,7 +318,7 @@ exports.init = function (app, opt) {
};
});
}

if(typeof(opt.middleware) == 'function'){
opt.middleware(req, res);
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"author": "fliptoo <[email protected]>, sposmen <[email protected]>",
"main": "./index",
"dependencies": {
"express": "3.5.1",
"underscore": "*",
"async": "~0.2.7",
"coffee-script": "*",
"doctrine": "*",
"express": "3.5.1",
"js-yaml": "~2.1.0",
"coffee-script": "*",
"async": "~0.2.7"
"underscore": "*"
},
"devDependencies": {
"jade": "*",
Expand Down

0 comments on commit ca5e5b2

Please sign in to comment.