Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 582107d

Browse files
committed
Merge remote-tracking branch 'node-aws-lambda-graphql-sapling/master'
2 parents cc7c8df + 126922b commit 582107d

10 files changed

+24841
-7412
lines changed

.eslintrc.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
env:
2+
browser: true
3+
es2021: true
4+
parser: '@typescript-eslint/parser'
5+
parserOptions:
6+
ecmaVersion: 12
7+
sourceType: module
8+
plugins:
9+
- '@typescript-eslint'
10+
- prettier
11+
rules:
12+
'prettier/prettier': error

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
node_modules
33
spec
44
src
5+
.editorconfig
6+
.eslintrc.yml
57
.gitignore
68
.prettierrc
79
npm-debug.log
810
tsconfig.json
9-
tslint.json
1011

1112
*.map

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v12.16.1
1+
16.5.0

README.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Many popular IDEs and editors support this out of the box or with a plugin.
3434
2. Change the base `custom.baseDomainName` property in `serverless.yml` to the zone name, eg `whatever.com`
3535
3. Then run:
3636
```
37-
npx serverless create_domain
37+
npx serverless create_domain --stage test
3838
```
3939
4040
## Development
@@ -58,7 +58,7 @@ AWS_SDK_LOAD_CONFIG=true npx serverless offline
5858
Use serverless to run the server against the test environment:
5959
6060
```
61-
npx serverless invoke -f graphql -p examples/invoke-data/addTodoMutation.json
61+
npx serverless invoke --stage test -f graphql -p examples/invoke-data/addTodoMutation.json
6262
```
6363
6464
### Prettier
@@ -89,18 +89,10 @@ Many IDEs and editors support TSLint.
8989
9090
This project uses [Jest](https://jestjs.io/) for testing. Run tests before checking in.
9191
92-
### Unit Tests
93-
9492
```
9593
npm test
9694
```
9795
98-
### Integration Tests
99-
100-
```
101-
npm run test:integration
102-
```
103-
10496
## Building
10597
10698
```
@@ -118,19 +110,19 @@ npm run build
118110
### Test
119111
120112
```
121-
npm run deploy:test
113+
npm run deploy
122114
```
123115
124116
#### Checking logs
125117
126118
```
127-
npx serverless logs -t -f graphql
119+
npx serverless logs --stage test -t -f graphql
128120
```
129121
130122
### Production
131123
132124
```
133-
npm run deploy
125+
npm run deploy:prod
134126
```
135127
136128
#### Checking logs

licenses/sapling-license

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
Copyright (c) 2018 Michael D. Norman, deNormans
1+
Copyright (c) 2020 Michael D. Norman
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
4-
of this software and associated documentation files (the "Software"), to deal
5-
in the Software without restriction, including without limitation the rights
4+
of the Base Sapling (original at https://github.com/mdnorman/base-sapling),
5+
and associated documentation files (the "Base Sapling"), to deal
6+
in the Base Sapling without restriction, including without limitation the rights
67
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7-
copies of the Software, and to permit persons to whom the Software is
8+
copies of the Base Sapling, and to permit persons to whom the Base Sapling is
89
furnished to do so, subject to the following conditions:
910

1011
The above copyright notice and this permission notice shall be included in all
11-
copies or substantial portions of the Software.
12+
copies or substantial portions of the Base Sapling.
1213

13-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
THE BASE SAPLING IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1415
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1516
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1617
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1718
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19-
SOFTWARE.
19+
OUT OF OR IN CONNECTION WITH THE BASE SAPLING OR THE USE OR OTHER DEALINGS IN THE
20+
BASE SAPLING.
2021

21-
Except as contained in this notice, the name(s) of the above copyright holders
22-
shall not be used in advertising or otherwise to promote the sale, use or other
23-
dealings in this Software without prior written authorization.
22+
Except as contained in this notice, the name(s) of the above copyright holders
23+
shall not be used in advertising or otherwise to promote the sale, use or other
24+
dealings in this Base Sapling without prior written authorization.

0 commit comments

Comments
 (0)