Skip to content

Commit b15a446

Browse files
authored
Merge pull request #6 from vkkis93/feat/context_object
Feat/context object
2 parents ecce41f + 2081b81 commit b15a446

File tree

9 files changed

+439
-182
lines changed

9 files changed

+439
-182
lines changed

.codeclimate.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: "2"
2+
checks:
3+
method-complexity:
4+
config:
5+
threshold: 50
6+
method-lines:
7+
config:
8+
threshold: 100
9+
plugins:
10+
eslint:
11+
enabled: true
12+
channel: "eslint-4"
13+
config:
14+
config: .eslintrc

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
*.log
3+
*.json
4+
*.lock
5+
*.md

.eslintrc

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"env": {
3+
"browser": false,
4+
"node": true,
5+
"es6": true,
6+
"mocha": true
7+
},
8+
"rules": {
9+
//# Possible Errors
10+
//# http://eslint.org/docs/rules/#possible-errors
11+
"comma-dangle": [2, "only-multiline"],
12+
"no-control-regex": 0,
13+
"no-debugger": 2,
14+
"no-dupe-args": 2,
15+
"no-dupe-keys": 2,
16+
"no-duplicate-case": 2,
17+
"no-empty-character-class": 2,
18+
"no-ex-assign": 2,
19+
"no-extra-boolean-cast": 2,
20+
"no-extra-parens": [2, "functions"],
21+
"no-extra-semi": 2,
22+
"no-func-assign": 2,
23+
"no-invalid-regexp": 2,
24+
"no-irregular-whitespace": 2,
25+
"no-obj-calls": 2,
26+
"no-proto": 2,
27+
//"no-template-curly-in-string": 2,
28+
"no-unexpected-multiline": 2,
29+
"no-unreachable": 2,
30+
//"no-unsafe-negation": 2,
31+
"use-isnan": 2,
32+
"valid-typeof": 2,
33+
34+
//# Best Practices
35+
//# http://eslint.org/docs/rules/#best-practices
36+
"no-fallthrough": 2,
37+
//"no-global-assign": 2,
38+
"no-multi-spaces": 2,
39+
"no-octal": 2,
40+
"no-redeclare": 2,
41+
"no-self-assign": 2,
42+
"no-unused-labels": 2,
43+
"max-lines": ["error", 1000],
44+
45+
//# Strict Mode
46+
//# http://eslint.org/docs/rules/#strict-mode
47+
"strict": [2, "global"],
48+
49+
//# Variables
50+
//# http://eslint.org/docs/rules/#variables
51+
"no-delete-var": 2,
52+
"no-undef": 2,
53+
"no-unused-vars": [2, {"args": "none"}],
54+
55+
//# Node.js and CommonJS
56+
//# http://eslint.org/docs/rules/#nodejs-and-commonjs
57+
"no-mixed-requires": 2,
58+
"no-new-require": 2,
59+
"no-path-concat": 2,
60+
"no-restricted-modules": [2, "sys", "_linklist"],
61+
62+
//# Stylistic Issues
63+
//# http://eslint.org/docs/rules/#stylistic-issues
64+
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
65+
"comma-spacing": 2,
66+
"eol-last": 2,
67+
//"func-call-spacing": 2,
68+
"key-spacing": [2, {"mode": "minimum"}],
69+
"keyword-spacing": 2,
70+
"max-len": [2, 150, 2],
71+
"indent": ["error", 4],
72+
"new-parens": 2,
73+
"no-mixed-spaces-and-tabs": 2,
74+
"no-multiple-empty-lines": [2, {"max": 2}],
75+
"no-trailing-spaces": 2,
76+
"quotes": [2, "single", "avoid-escape"],
77+
"semi": 2,
78+
"space-before-blocks": [2, "always"],
79+
"space-before-function-paren": [2, "never"],
80+
"space-in-parens": [2, "never"],
81+
"space-infix-ops": 2,
82+
"space-unary-ops": 2,
83+
84+
//# ECMAScript 6
85+
//# http://eslint.org/docs/rules/#ecmascript-6
86+
"arrow-spacing": [2, {"before": true, "after": true}],
87+
"constructor-super": 2,
88+
"no-class-assign": 2,
89+
"no-confusing-arrow": ["error", {"allowParens": true}],
90+
"no-const-assign": 2,
91+
"no-dupe-class-members": 2,
92+
"no-new-symbol": 2,
93+
"no-this-before-super": 2,
94+
"prefer-const": 2,
95+
"template-curly-spacing": 2
96+
},
97+
"globals": {
98+
"util": true,
99+
"i18n": true,
100+
"container": true
101+
}
102+
}

README.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)
2+
[![npm version](https://badge.fury.io/js/serverless-step-functions-offline.svg)](https://badge.fury.io/js/serverless-step-functions-offline)
3+
[![Known Vulnerabilities](https://snyk.io/test/github/vkkis93/serverless-step-functions-offline/badge.svg?targetFile=package.json)](https://snyk.io/test/github/vkkis93/serverless-step-functions-offline?targetFile=package.json)
4+
[![Dependency Status](https://david-dm.org/vkkis93/serverless-step-functions-offline.svg)](https://david-dm.org/vkkis93/serverless-step-functions-offline)
25

3-
# serverless-step-offline
6+
# serverless-step-functions-offline
47

5-
:warning: **Currently in beta** :warning:
8+
## Documentation
69

7-
# IMPORTANT: This plugin only works with *node.js* runtime and only with callback. It does not work with context object.
10+
- [Install](#install)
11+
- [Setup](#setup)
12+
- [Requirements](#requirements)
13+
- [Usage](#usage)
14+
- [Run plugin](#run-plugin)
15+
- [What does plugin support](#what-does-plugin-support)
816

917
# Install
1018
Using NPM:
@@ -103,12 +111,14 @@ By default `process.env.STEP_IS_OFFLINE = true`.
103111
| ***Pass*** | * |
104112
| ***Parallel*** | Only *Branches*
105113

106-
### Future plans
107-
- Support context object
108-
- Support fields *Retry*, *Catch*
109-
- Support other languages except node.js
110-
- Improve performance
111-
- Fixing bugs
114+
### TODOs
115+
- [x] Support context object
116+
- [x] Improve performance
117+
- [x] Fixing bugs
118+
- [ ] Add unit tests - to make plugin stable (next step)
119+
- [ ] Support fields *Retry*, *Catch*
120+
- [ ] Support other languages except node.js
121+
112122

113123
If you have any questions, feel free to contact me: [email protected]
114124

0 commit comments

Comments
 (0)