From 80e47b2c11b1f7a637825f45499d9bf77f9ef118 Mon Sep 17 00:00:00 2001 From: "Eduardo L. Buratti" <elburatti@inf.ufpr.br> Date: Thu, 4 Aug 2016 16:54:43 -0300 Subject: [PATCH] Add initial project config --- .editorconfig | 17 +++++++++++++++++ .jscsrc | 22 ++++++++++++++++++++++ .jshintrc | 25 +++++++++++++++++++++++++ .nvmrc | 1 + package.json | 35 +++++++++++++++++++++++++++++++++++ 5 files changed, 100 insertions(+) create mode 100644 .editorconfig create mode 100644 .jscsrc create mode 100644 .jshintrc create mode 100644 .nvmrc create mode 100644 package.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..b02617bc --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 4 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.json] +indent_size = 2 diff --git a/.jscsrc b/.jscsrc new file mode 100644 index 00000000..f862cd6d --- /dev/null +++ b/.jscsrc @@ -0,0 +1,22 @@ +{ + "preset": "airbnb", + "validateIndentation": 4, + "requireTrailingComma": false, + "disallowTrailingComma": true, + "requireSpacesInAnonymousFunctionExpression": false, + "requireCurlyBraces": [ + "if", + "else", + "for", + "while", + "do", + "try", + "catch" + ], + "requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties", + "disallowKeywordsOnNewLine": [], + "maximumLineLength": 80, + "requirePaddingNewLinesAfterBlocks": { + "allExcept": ["inCallExpressions", "inNewExpressions", "inArrayExpressions", "inProperties"] + } +} diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 00000000..97da9af5 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,25 @@ +{ + "browser": false, + "node": true, + "esnext": true, + "eqeqeq": true, + "indent": 4, + "latedef": false, + "newcap": true, + "quotmark": "single", + "undef": true, + "unused": "vars", + "eqnull": true, + "globals": { + "describe": false, + "xdescribe": false, + "ddescribe": false, + "it": false, + "xit": false, + "iit": false, + "beforeEach": false, + "afterEach": false, + "before": false, + "after": false + } +} diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..21df8b31 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +5.11 diff --git a/package.json b/package.json new file mode 100644 index 00000000..2b6176dc --- /dev/null +++ b/package.json @@ -0,0 +1,35 @@ +{ + "name": "blendb", + "version": "0.0.1", + "description": "BlenDB", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git@gitlab.c3sl.ufpr.br:c3sl/blendb.git" + }, + "author": "Centro de Computação Científica e Software Livre (C3SL)", + "license": "GPL-3.0", + "dependencies": { + "app-module-path": "^1.1.0", + "eslint": "^3.2.2", + "express": "^4.14.0", + "gulp": "^3.9.1", + "gulp-istanbul": "^1.0.0", + "gulp-jscs": "^4.0.0", + "gulp-jscs-stylish": "^1.4.0", + "gulp-jshint": "^2.0.1", + "gulp-mocha": "^3.0.0", + "gulp-nodemon": "^2.1.0", + "gulp-raml": "^0.1.3", + "gulp-rename": "^1.2.2", + "gulp-size": "^2.1.0", + "gulp-util": "^3.0.7", + "jshint": "^2.9.2", + "mongodb": "^2.2.5", + "osprey": "^0.3.2", + "raml2html": "^2.4.0" + } +} -- GitLab