Skip to content

Commit

Permalink
feat(V1): middy v1 (#5)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
- middy v1
- changed the way to treat unhandled Errors
  • Loading branch information
bboure authored Feb 27, 2021
1 parent 0552c3a commit bc69603
Show file tree
Hide file tree
Showing 20 changed files with 8,499 additions and 5,465 deletions.
8 changes: 3 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{
"plugins": [
"@babel/plugin-transform-modules-commonjs"
],
"presets": [
["@babel/preset-env",
{
"shippedProposals": true,
"targets": { "node": "8.12" }
"targets": { "node": "12" }
}
]
],
"@babel/preset-typescript"
]
}
17 changes: 15 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
env:
es6: true
jest: true
extends: standard
parser: babel-eslint

extends:
- prettier
- plugin:prettier/recommended
- plugin:@typescript-eslint/recommended

parser: '@typescript-eslint/parser'

plugins:
- '@typescript-eslint'

settings:
import/resolver:
node:
extensions: [.ts', '.d.ts']
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Tests

on:
pull_request:
branches:
- master

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm i
- name: Run lint
run: npm run lint
- name: Run tests
run: npm test
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
branches:
- master

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Install dependencies
run: npm i
- name: Run lint
run: npm run lint
- name: Run tests
run: npm run test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"trailingComma": "all"
}
3 changes: 3 additions & 0 deletions FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [bboure]
Loading

0 comments on commit bc69603

Please sign in to comment.