@felloh-org/lambda-wrapper 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.yml +21 -0
- package/.github/dependabot.yml +11 -0
- package/.github/workflows/release.yml +34 -0
- package/README.md +3 -0
- package/babel.config.js +13 -0
- package/package.json +57 -0
package/.eslintrc.yml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
root: true
|
|
2
|
+
|
|
3
|
+
plugins:
|
|
4
|
+
- 'flowtype'
|
|
5
|
+
- 'sonarjs'
|
|
6
|
+
- 'unicorn'
|
|
7
|
+
|
|
8
|
+
extends:
|
|
9
|
+
- "@felloh-org/eslint-config/mixins/base"
|
|
10
|
+
|
|
11
|
+
ignorePatterns:
|
|
12
|
+
- dist
|
|
13
|
+
- tests
|
|
14
|
+
- node_modules
|
|
15
|
+
- vocerage
|
|
16
|
+
|
|
17
|
+
rules:
|
|
18
|
+
no-shadow: "off"
|
|
19
|
+
camelcase: "off"
|
|
20
|
+
import/no-dynamic-require: "off"
|
|
21
|
+
global-require: "off"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
publish:
|
|
7
|
+
name: Publish
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
if: github.ref == 'refs/heads/main'
|
|
10
|
+
steps:
|
|
11
|
+
- name: Checkout
|
|
12
|
+
uses: actions/checkout@v2
|
|
13
|
+
|
|
14
|
+
- name: Restore cache
|
|
15
|
+
uses: actions/cache@v2
|
|
16
|
+
with:
|
|
17
|
+
path: '**/node_modules'
|
|
18
|
+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
|
19
|
+
|
|
20
|
+
- name: Build and publish release.
|
|
21
|
+
run: yarn install
|
|
22
|
+
env:
|
|
23
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
24
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
25
|
+
|
|
26
|
+
- run: yarn lint
|
|
27
|
+
env:
|
|
28
|
+
CI: true
|
|
29
|
+
|
|
30
|
+
- name: Publish via Semantic Release
|
|
31
|
+
run: yarn semantic-release
|
|
32
|
+
env:
|
|
33
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
34
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/README.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Lambda Wrapper [](https://github.com/felloh-org/lambda-wrapper/actions/workflows/release.yml)
|
|
2
|
+
|
|
3
|
+
Wrapper to wrap all of our lambdas and provide useful functionality and time saving tooling to all of our serverless services.
|
package/babel.config.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@felloh-org/lambda-wrapper",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Lambda wrapper for all Felloh Serverless Projects",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"lint": "./node_modules/.bin/eslint ./src",
|
|
8
|
+
"test": "jest --coverage",
|
|
9
|
+
"build": "./node_modules/.bin/babel src --out-dir dist --copy-files"
|
|
10
|
+
},
|
|
11
|
+
"author": "Felloh",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@babel/cli": "^7.12.10",
|
|
15
|
+
"@babel/core": "^7.12.10",
|
|
16
|
+
"@babel/eslint-parser": "^7.16.5",
|
|
17
|
+
"@babel/node": "^7.12.10",
|
|
18
|
+
"@babel/plugin-syntax-flow": "^7.12.1",
|
|
19
|
+
"@babel/plugin-transform-flow-strip-types": "^7.12.10",
|
|
20
|
+
"@babel/preset-env": "^7.12.11",
|
|
21
|
+
"@felloh-org/eslint-config": "^1.0.2",
|
|
22
|
+
"@types/jest": "^26.0.20",
|
|
23
|
+
"aws-sdk": ">=2.831.0",
|
|
24
|
+
"babel-eslint": "^10.1.0",
|
|
25
|
+
"babel-jest": "^26.3.3",
|
|
26
|
+
"eslint": "^7.18.0",
|
|
27
|
+
"eslint-plugin-flowtype": "^8.0.3",
|
|
28
|
+
"eslint-plugin-import": "^2.25.3",
|
|
29
|
+
"eslint-plugin-sonarjs": "^0.11.0",
|
|
30
|
+
"eslint-plugin-unicorn": "^39.0.0",
|
|
31
|
+
"jest": "^26.6.3",
|
|
32
|
+
"nyc": "^15.1.0",
|
|
33
|
+
"semantic-release": "^17.3.7"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"aws-sdk": ">=2.831.0"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"alai": "1.0.3",
|
|
40
|
+
"async": "^3.2.0",
|
|
41
|
+
"axios": "^0.21.1",
|
|
42
|
+
"epsagon": "^1.104.2",
|
|
43
|
+
"useragent": "2.3.0",
|
|
44
|
+
"uuid": "^8.2.0",
|
|
45
|
+
"validate.js": "0.13.1",
|
|
46
|
+
"winston": "^3.3.3",
|
|
47
|
+
"xml2js": "^0.4.23"
|
|
48
|
+
},
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public"
|
|
51
|
+
},
|
|
52
|
+
"release": {
|
|
53
|
+
"branches": [
|
|
54
|
+
"main"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
}
|