Skip to content

Commit

Permalink
Merge remote-tracking branch 'node-aws-lambda-sapling/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnorman committed Oct 9, 2021
2 parents fb964c1 + 1738fd9 commit 126922b
Show file tree
Hide file tree
Showing 9 changed files with 22,433 additions and 7,389 deletions.
12 changes: 12 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
env:
browser: true
es2021: true
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 12
sourceType: module
plugins:
- '@typescript-eslint'
- prettier
rules:
'prettier/prettier': error
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
node_modules
spec
src
.editorconfig
.eslintrc.yml
.gitignore
.prettierrc
npm-debug.log
tsconfig.json
tslint.json

*.map
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12.16.1
16.5.0
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ AWS_SDK_LOAD_CONFIG=true npx serverless offline
Use serverless to run the server against the test environment:
```
npx serverless invoke -f graphql -p examples/invoke-data/query.json
npx serverless invoke --stage test -f graphql -p examples/invoke-data/query.json
```
### Prettier
Expand Down Expand Up @@ -89,18 +89,10 @@ Many IDEs and editors support TSLint.
This project uses [Jest](https://jestjs.io/) for testing. Run tests before checking in.
### Unit Tests
```
npm test
```
### Integration Tests
```
npm run test:integration
```
## Building
```
Expand All @@ -118,19 +110,19 @@ npm run build
### Test
```
npm run deploy:test
npm run deploy
```
#### Checking logs
```
npx serverless logs -t -f graphql
npx serverless logs --stage test -t -f graphql
```
### Production
```
npm run deploy
npm run deploy:prod
```
#### Checking logs
Expand Down
Loading

0 comments on commit 126922b

Please sign in to comment.