Skip to content

Commit 2db24df

Browse files
committed
first commit
0 parents  commit 2db24df

File tree

8 files changed

+8999
-0
lines changed

8 files changed

+8999
-0
lines changed

.eslintrc.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
module.exports = {
2+
root: true,
3+
extends: 'prettier',
4+
plugins: ['import', 'prettier'],
5+
env: {
6+
es6: true,
7+
node: true,
8+
jest: true
9+
},
10+
parserOptions: {
11+
ecmaVersion: 2017,
12+
sourceType: 'module'
13+
},
14+
rules: {
15+
'array-bracket-spacing': [
16+
'error',
17+
'never',
18+
{
19+
objectsInArrays: false,
20+
arraysInArrays: false
21+
}
22+
],
23+
'arrow-parens': ['error', 'always'],
24+
'comma-dangle': ['error', 'never'],
25+
'func-names': 'off',
26+
'no-use-before-define': 'off',
27+
'prefer-destructuring': 'off',
28+
'no-console': 'error',
29+
'no-shadow': 'error',
30+
'no-undef': 'error',
31+
'object-curly-newline': 'off',
32+
'no-unused-vars': 'error',
33+
'semi': 'off',
34+
'object-shorthand': 'off',
35+
'prettier/prettier': 'error',
36+
'prefer-const': 'error'
37+
}
38+
}

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Logs
2+
*.log
3+
npm-debug.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
dist
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
# Coverage directory used by tools like istanbul
15+
coverage
16+
17+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
18+
.grunt
19+
20+
# node-waf configuration
21+
.lock-wscript
22+
23+
# Compiled binary addons (http://nodejs.org/api/addons.html)
24+
build/Release
25+
26+
# Dependency directory
27+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
28+
node_modules
29+
30+
# IDE stuff
31+
**/.idea
32+
33+
# OS stuff
34+
.DS_Store
35+
.tmp
36+
37+
# Serverless stuff
38+
admin.env
39+
.env
40+
tmp
41+
.coveralls.yml
42+
tmpdirs-serverless

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage
2+
dist
3+
node_modules

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Serverless Apigateway Service proxy
2+
The Serverless Framewrok plugin to support AWS service proxy integration of API Gateway

lib/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict'
2+
3+
class ServerlessApigatewayServiceProxy {
4+
constructor(serverless, options) {
5+
this.serverless = serverless
6+
this.options = options || {}
7+
this.provider = this.serverless.getProvider('aws')
8+
this.service = this.serverless.service.service
9+
this.region = this.provider.getRegion()
10+
this.stage = this.provider.getStage()
11+
}
12+
}
13+
14+
module.exports = ServerlessApigatewayServiceProxy

0 commit comments

Comments
 (0)