Skip to content

Commit

Permalink
add build script, coffee tooling, .editorconfig, and .nvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
erdii committed Jun 16, 2018
1 parent 955d2d6 commit 716434e
Show file tree
Hide file tree
Showing 4 changed files with 197 additions and 40 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false

[*.md]
trim_trailing_whitespace = false

[*.json]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6
135 changes: 135 additions & 0 deletions coffeelint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"arrow_spacing": {
"level": "ignore"
},
"braces_spacing": {
"level": "ignore",
"spaces": 0,
"empty_object_spaces": 0
},
"camel_case_classes": {
"level": "error"
},
"coffeescript_error": {
"level": "error"
},
"colon_assignment_spacing": {
"level": "ignore",
"spacing": {
"left": 0,
"right": 0
}
},
"cyclomatic_complexity": {
"level": "ignore",
"value": 10
},
"duplicate_key": {
"level": "error"
},
"empty_constructor_needs_parens": {
"level": "ignore"
},
"ensure_comprehensions": {
"level": "warn"
},
"eol_last": {
"level": "ignore"
},
"indentation": {
"value": 2,
"level": "ignore"
},
"line_endings": {
"level": "ignore",
"value": "unix"
},
"max_line_length": {
"value": 250,
"level": "error",
"limitComments": false
},
"missing_fat_arrows": {
"level": "ignore",
"is_strict": false
},
"newlines_after_classes": {
"value": 3,
"level": "ignore"
},
"no_backticks": {
"level": "error"
},
"no_debugger": {
"level": "warn",
"console": false
},
"no_empty_functions": {
"level": "ignore"
},
"no_empty_param_list": {
"level": "ignore"
},
"no_implicit_braces": {
"level": "ignore",
"strict": true
},
"no_implicit_parens": {
"level": "ignore",
"strict": true
},
"no_interpolation_in_single_quotes": {
"level": "ignore"
},
"no_nested_string_interpolation": {
"level": "warn"
},
"no_plusplus": {
"level": "ignore"
},
"no_private_function_fat_arrows": {
"level": "warn"
},
"no_stand_alone_at": {
"level": "ignore"
},
"no_tabs": {
"level": "ignore"
},
"no_this": {
"level": "ignore"
},
"no_throwing_strings": {
"level": "error"
},
"no_trailing_semicolons": {
"level": "error"
},
"no_trailing_whitespace": {
"level": "error",
"allowed_in_comments": false,
"allowed_in_empty_lines": true
},
"no_unnecessary_double_quotes": {
"level": "ignore"
},
"no_unnecessary_fat_arrows": {
"level": "warn"
},
"non_empty_constructor_needs_parens": {
"level": "ignore"
},
"prefer_english_operator": {
"level": "ignore",
"doubleNotLevel": "ignore"
},
"space_operators": {
"level": "ignore"
},
"spacing_after_comma": {
"level": "ignore"
},
"transform_messes_up_line_numbers": {
"level": "warn"
}
}
85 changes: 45 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,47 @@
{
"name": "rsmq",
"description": "A really simple message queue based on Redis",
"version": "0.8.4",
"license": "MIT",
"author": "P. Liess <[email protected]>",
"engines": {
"node": "> 0.10.20"
},
"scripts": {
"test": "mocha ./test/test.js"
},
"dependencies": {
"@types/redis": "^2.8.0",
"lodash": "^4.17.4",
"redis": "^2.8.0"
},
"optionalDependencies": {
"hiredis": "^0.5.0"
},
"devDependencies": {
"mocha": "^4.0.1",
"should": "^13.1.3",
"async": "^2.5.0"
},
"keywords": [
"queue",
"messagequeue",
"jobs",
"message-queue",
"redis"
],
"repository": {
"type": "git",
"url": "http://github.com/smrchy/rsmq.git"
},
"bugs": {
"url": "https://github.com/smrchy/rsmq/issues"
},
"main": "./index.js",
"types": "./index.d.ts"
"name": "rsmq",
"description": "A really simple message queue based on Redis",
"version": "0.8.4",
"license": "MIT",
"author": "P. Liess <[email protected]>",
"engines": {
"node": "> 0.10.20"
},
"scripts": {
"build": "coffee -cb index.coffee test/test.coffee",
"test": "mocha ./test/test.js"
},
"dependencies": {
"@types/redis": "^2.8.0",
"lodash": "^4.17.4",
"redis": "^2.8.0"
},
"optionalDependencies": {
"hiredis": "^0.5.0"
},
"devDependencies": {
"async": "^2.5.0",
"coffee-script": "^1.12.7",
"mocha": "^4.0.1",
"should": "^13.1.3"
},
"keywords": [
"queue",
"messagequeue",
"jobs",
"message-queue",
"redis"
],
"repository": {
"type": "git",
"url": "http://github.com/smrchy/rsmq.git"
},
"bugs": {
"url": "https://github.com/smrchy/rsmq/issues"
},
"main": "./index.js",
"types": "./index.d.ts",
"files": [
"./index.js"
]
}

0 comments on commit 716434e

Please sign in to comment.