Skip to content

Commit

Permalink
Updated tooling files
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Jun 4, 2015
1 parent 5917d65 commit 8c05781
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 118 deletions.
3 changes: 2 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# EditorConfig is awesome: http://EditorConfig.org
# Editor config
# http://EditorConfig.org

# This EditorConfig overrides any parent EditorConfigs
root = true
Expand Down
15 changes: 12 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Specifies how Git should treat certain file types
# https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes

# Convert all line endings to CRLF, so they work with Windows programs
* text=auto

Expand All @@ -9,6 +12,7 @@
*.css text
*.scss text
*.min text
*.map text
*.js text
*.json text
*.config text
Expand All @@ -21,11 +25,16 @@

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
*.csproj text eol=crlf
*.jsproj text eol=crlf
*.njsproj text eol=crlf
*.vbproj text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.gif binary
*.png binary
*.jpg binary
*.jpeg binary

# Omit specific test files from being modified
/tests/files/good/text.txt binary
*.bmp binary
*.dll binary
*.exe binary
162 changes: 80 additions & 82 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,90 +1,88 @@
{
// JSHint Configuration File
// See http://jshint.com/docs/ for more details
// JSHint config
// http://jshint.com/docs/options/

"maxerr" : 500, // {int} Maximum error before stopping
"maxerr" : 500, // {int} Maximum error before stopping

// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : true, // true: Identifiers must be in camelCase
"curly" : false, // true: Require {} for every new block or scope
"eqeqeq" : true, // true: Require triple equals (===) for comparison
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
"immed" : true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
"indent" : 2, // {int} Number of spaces to use for indentation
"latedef" : "nofunc", // true: Require variables/functions to be defined before being used
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
"noempty" : true, // true: Prohibit use of empty blocks
"nonew" : true, // true: Prohibit use of constructors for side-effects (without assignment)
"plusplus" : false, // true: Prohibit use of `++` & `--`
"quotmark" : "single", // Quotation mark consistency:
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused" : "vars", // true: Require all defined variables be used
"strict" : true, // true: Requires all functions run in ES5 Strict Mode
"trailing" : false, // true: Prohibit trailing whitespaces
"maxparams" : false, // {int} Max number of formal params allowed per function
"maxdepth" : false, // {int} Max depth of nested blocks (within functions)
"maxstatements" : false, // {int} Max number statements per function
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function
"maxlen" : false, // {int} Max number of characters per line
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : true, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope
"eqeqeq" : true, // true: Require triple equals (===) for comparison
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
"immed" : true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
"indent" : 2, // {int} Number of spaces to use for indentation
"latedef" : "nofunc", // true: Require variables/functions to be defined before being used
"newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()`
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
"noempty" : true, // true: Prohibit use of empty blocks
"nonew" : true, // true: Prohibit use of constructors for side-effects (without assignment)
"plusplus" : false, // true: Prohibit use of `++` & `--`
"quotmark" : "single", // Quotation mark consistency:
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused" : "vars", // true: Require all defined variables be used
"strict" : true, // true: Requires all functions run in ES5 Strict Mode
"trailing" : true, // true: Prohibit trailing whitespaces
"maxparams" : false, // {int} Max number of formal params allowed per function
"maxdepth" : false, // {int} Max depth of nested blocks (within functions)
"maxstatements" : false, // {int} Max number statements per function
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function
"maxlen" : false, // {int} Max number of characters per line

// Relaxing
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
"boss" : true, // true: Tolerate assignments where comparisons would be expected
"debug" : true, // true: Allow debugger statements e.g. browser breakpoints.
"eqnull" : false, // true: Tolerate use of `== null`
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
"esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
"evil" : false, // true: Tolerate use of `eval` and `new Function()`
"expr" : true, // true: Tolerate `ExpressionStatement` as Programs
"funcscope" : false, // true: Tolerate defining variables inside control statements"
"globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
"iterator" : false, // true: Tolerate using the `__iterator__` property
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings
"laxcomma" : true, // true: Tolerate comma-first style coding
"loopfunc" : false, // true: Tolerate functions being defined in loops
"multistr" : false, // true: Tolerate multi-line strings
"proto" : false, // true: Tolerate using the `__proto__` property
"scripturl" : false, // true: Tolerate script-targeted URLs
"smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
"validthis" : false, // true: Tolerate using this in a non-constructor function
// Relaxing
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
"boss" : true, // true: Tolerate assignments where comparisons would be expected
"debug" : true, // true: Allow debugger statements e.g. browser breakpoints.
"eqnull" : false, // true: Tolerate use of `== null`
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
"esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
"evil" : false, // true: Tolerate use of `eval` and `new Function()`
"expr" : true, // true: Tolerate `ExpressionStatement` as Programs
"funcscope" : false, // true: Tolerate defining variables inside control statements"
"globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
"iterator" : false, // true: Tolerate using the `__iterator__` property
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings
"laxcomma" : false, // true: Tolerate comma-first style coding
"loopfunc" : false, // true: Tolerate functions being defined in loops
"multistr" : false, // true: Tolerate multi-line strings
"proto" : false, // true: Tolerate using the `__proto__` property
"scripturl" : false, // true: Tolerate script-targeted URLs
"smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
"validthis" : false, // true: Tolerate using this in a non-constructor function

// Environments
"browser" : true, // Web Browser (window, document, etc)
"couch" : false, // CouchDB
"devel" : false, // Development/debugging (alert, confirm, etc)
"dojo" : false, // Dojo Toolkit
"jquery" : false, // jQuery
"mootools" : false, // MooTools
"node" : true, // Node.js
"nonstandard" : true, // Widely adopted globals (escape, unescape, etc)
"prototypejs" : false, // Prototype and Scriptaculous
"rhino" : false, // Rhino
"worker" : false, // Web Workers
"wsh" : false, // Windows Scripting Host
"yui" : false, // Yahoo User Interface
// Environments
"browser" : true, // Web Browser (window, document, etc)
"couch" : false, // CouchDB
"devel" : true, // Development/debugging (alert, confirm, etc)
"dojo" : false, // Dojo Toolkit
"jquery" : false, // jQuery
"mocha" : true, // Mocha
"mootools" : false, // MooTools
"node" : true, // Node.js
"nonstandard" : true, // Widely adopted globals (escape, unescape, etc)
"prototypejs" : false, // Prototype and Scriptaculous
"rhino" : false, // Rhino
"worker" : false, // Web Workers
"wsh" : false, // Windows Scripting Host
"yui" : false, // Yahoo User Interface

// Legacy
"nomen" : false, // true: Prohibit dangling `_` in variables
"onevar" : false, // true: Allow only one `var` statement per function
"passfail" : false, // true: Stop on first error
"white" : false, // true: Check against strict whitespace and indentation rules
// Legacy
"nomen" : false, // true: Prohibit dangling `_` in variables
"onevar" : false, // true: Allow only one `var` statement per function
"passfail" : false, // true: Stop on first error
"white" : false, // true: Check against strict whitespace and indentation rules

// Custom Globals
"globals": {
"_" : true,
"env" : true,
"describe" : true,
"it" : true,
"beforeEach" : true,
"afterEach" : true,
"expect" : true,
"sinon" : true
}
// Custom Globals
"globals": {
"_" : true,
"env" : true,
"expect" : true,
"sinon" : true
}
}

10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Travis CI config
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/

sudo: false
language: node_js
node_js:
- "0.12"
- "0.11"
- "0.10"
- '0.10'
- '0.11'
- '0.12'
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
Expand Down
12 changes: 12 additions & 0 deletions .yo-rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@bigstickcarpet/generator-npm": {
"env": {
"node": true,
"browser": true,
"yeoman": false,
"cordova": false
},
"githubUsername": "BigstickCarpet",
"tests": true
}
}
9 changes: 5 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"license": "MIT",
"homepage": "https://github.com/BigstickCarpet/swagger-parser",
"main": "dist/swagger-parser.js",
"repository": {
"type": "git",
"url": "https://github.com/BigstickCarpet/swagger-parser.git"
},
"ignore": [
"**/*~",
"**/._*",
Expand All @@ -35,8 +39,5 @@
"/*.js",
"/.*"
],
"repository": {
"type": "git",
"url": "https://github.com/BigstickCarpet/swagger-parser.git"
}
"dependencies": {}
}
52 changes: 27 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"main": "lib/index.js",
"scripts": {
"build": "jshint . --verbose && jscs . --verbose && gulp build",
"browserify": "browserify . --standalone swagger.parser -o dist/swagger-parser.js && browserify -g uglifyify . --standalone swagger.parser -o dist/swagger-parser.min.js",
"test": "istanbul cover _mocha -- --recursive tests && karma start --single-run",
"mocha": "mocha --recursive tests",
"karma": "karma start --single-run",
Expand All @@ -36,46 +37,47 @@
"type": "git",
"url": "https://github.com/BigstickCarpet/swagger-parser.git"
},
"engines": {
"node": ">=0.10.36",
"npm": ">=2.0"
},
"dependencies": {
"debug": "^2.1.3",
"js-yaml": "^3.3.0",
"lodash": "^3.8.0",
"swagger-schema-official": "2.0.0-96305d9",
"tv4": "^1.1.9"
},
"devDependencies": {
"browserify": "^10.1.3",
"chai": "^2.3.0",
"browserify": "^10.2.3",
"chai": "^3.0.0",
"coveralls": "^2.11.2",
"gulp": "^3.8.11",
"gulp": "^3.9.0",
"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^1.5.2",
"gulp-uglify": "^1.2.0",
"istanbul": "^0.3.13",
"jscs": "^1.13.1",
"jshint": "^2.7.0",
"istanbul": "^0.3.14",
"jquery": "^2.1.4",
"karma": "^0.12.31",
"jscs": "^1.13.1",
"jshint": "^2.8.0",
"karma": "^0.12.36",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^0.1.8",
"karma-chrome-launcher": "^0.1.12",
"karma-cli": "0.0.4",
"karma-firefox-launcher": "^0.1.4",
"karma-firefox-launcher": "^0.1.6",
"karma-ie-launcher": "^0.1.5",
"karma-mocha": "^0.1.10",
"karma-mocha-reporter": "^1.0.2",
"karma-phantomjs-launcher": "^0.1.4",
"karma-phantomjs-launcher": "^0.2.0",
"karma-safari-launcher": "^0.1.1",
"karma-sinon": "^1.0.4",
"mocha": "^2.2.4",
"nock": "^1.9",
"mocha": "^2.2.5",
"nock": "^2.3",
"npm-check-updates": "^1.5.1",
"sinon": "^1.14.1",
"version-bump-prompt": "^1.1.0",
"uglifyify": "^3.0.1",
"version-bump-prompt": "^1.3.1",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
},
"dependencies": {
"debug": "^2.2.0",
"js-yaml": "^3.3.1",
"lodash": "^3.9.3",
"swagger-schema-official": "2.0.0-96305d9",
"tv4": "^1.1.9"
},
"engines": {
"node": ">=0.10.36",
"npm": ">=2.0"
}
}
}

0 comments on commit 8c05781

Please sign in to comment.