-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support serverless-appsync-plugin
v2
#183
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
81c3662
feat: update dependencies
horiuchi 742829f
fix: the bug on [email protected]
horiuchi df5882c
fix: test error
horiuchi dc6d318
Merge pull request #1 from horiuchi/update-dependencies
horiuchi 2f72361
fix: revert to update `globby`
horiuchi ed2784a
Merge pull request #2 from horiuchi/update-dependencies
horiuchi 6d21db8
feat: rewrite by TypeScript
horiuchi c516f9b
feat: update eslint and jest configuration
horiuchi 61e012b
feat: update unit test
horiuchi a7987a8
fix: remove unused constatns
horiuchi cedf906
Merge pull request #3 from horiuchi/support-typescript
horiuchi 7bdb4b0
fix: error handling on Lambda
horiuchi 03cb567
feat: Build mapping templates for pipeline functions
plezan 2609767
fix: typings
plezan 89838f3
Merge pull request #4 from plezan/master
horiuchi dbc1872
refactor: on parsing Lambda result
horiuchi ae2bd1e
ci: prepare pre-release
plezan e44193a
fix: typo breaking the tests
plezan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"jest": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig_test.json" | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"prettier" | ||
], | ||
"plugins": ["@typescript-eslint", "import", "unused-imports"], | ||
"rules": { | ||
"prefer-const": "error", | ||
"no-var": "error", | ||
"no-console": "off", | ||
"sort-imports": "off", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
} | ||
} | ||
], | ||
"class-methods-use-this": "error", | ||
"unused-imports/no-unused-imports": "error", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-unused-vars": "off" | ||
}, | ||
"ignorePatterns": [ | ||
"lib/**/*", | ||
"node_modules" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- master | ||
- beta | ||
|
||
jobs: | ||
publish: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { JestConfigWithTsJest } from 'ts-jest'; | ||
|
||
const config: JestConfigWithTsJest = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
silent: true, | ||
moduleDirectories: ['node_modules', 'src'], | ||
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$'], | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`resolveConfiguration should generate a valid config 1`] = ` | ||
{ | ||
"additionalAuthentications": [ | ||
{ | ||
"config": { | ||
"userPoolId": "us-west-2_123456789", | ||
}, | ||
"type": "AMAZON_COGNITO_USER_POOLS", | ||
}, | ||
], | ||
"apiKeys": { | ||
"foo-bar": { | ||
"name": "foo-bar", | ||
}, | ||
}, | ||
"authentication": { | ||
"type": "API_KEY", | ||
}, | ||
"dataSources": { | ||
"dynamodb": { | ||
"config": { | ||
"tableName": "myTable", | ||
}, | ||
"name": "dynamodb", | ||
"type": "AMAZON_DYNAMODB", | ||
}, | ||
"http": { | ||
"config": { | ||
"endpoint": "http://127.0.0.1", | ||
}, | ||
"name": "http", | ||
"type": "HTTP", | ||
}, | ||
"lambda": { | ||
"config": { | ||
"functionName": "resolver", | ||
}, | ||
"name": "lambda", | ||
"type": "AWS_LAMBDA", | ||
}, | ||
"none": { | ||
"name": "none", | ||
"type": "NONE", | ||
}, | ||
}, | ||
"name": "myAPI", | ||
"pipelineFunctions": { | ||
"func": { | ||
"dataSource": "lambda", | ||
"name": "func", | ||
"request": "src/__tests__/files/mapping-templates/templates.request.vtl", | ||
"response": "src/__tests__/files/mapping-templates/templates.response.vtl", | ||
"substitutions": { | ||
"mySubVar": "template-function", | ||
}, | ||
}, | ||
"funcDirect": { | ||
"dataSource": "lambda", | ||
"name": "funcDirect", | ||
}, | ||
}, | ||
"resolvers": { | ||
"Mutation.updateNode": { | ||
"dataSource": "lambda", | ||
"field": "updateNode", | ||
"kind": "UNIT", | ||
"type": "Mutation", | ||
}, | ||
"Query.node": { | ||
"dataSource": "lambda", | ||
"field": "node", | ||
"kind": "UNIT", | ||
"type": "Query", | ||
}, | ||
"Query.pipeline": { | ||
"field": "pipeline", | ||
"functions": [ | ||
"func", | ||
"funcDirect", | ||
], | ||
"kind": "PIPELINE", | ||
"type": "Query", | ||
}, | ||
"Query.templates": { | ||
"dataSource": "lambda", | ||
"field": "templates", | ||
"kind": "UNIT", | ||
"request": "src/__tests__/files/mapping-templates/templates.request.vtl", | ||
"response": "src/__tests__/files/mapping-templates/templates.response.vtl", | ||
"substitutions": { | ||
"mySubVar": "lambda", | ||
}, | ||
"type": "Query", | ||
}, | ||
}, | ||
"schema": [ | ||
"src/__tests__/files/*.graphql", | ||
], | ||
} | ||
`; | ||
|
||
exports[`resolveConfiguration should generate a valid config 2`] = ` | ||
{ | ||
"apiKey": "0123456789", | ||
"dynamoDb": { | ||
"accessKeyId": "DEFAULT_ACCESS_KEY", | ||
"endpoint": "http://localhost:8000", | ||
"region": "localhost", | ||
"secretAccessKey": "DEFAULT_SECRET", | ||
}, | ||
"getAttMap": {}, | ||
"importValueMap": {}, | ||
"lambdaPort": 3002, | ||
"location": ".", | ||
"openSearch": {}, | ||
"port": 20002, | ||
"rds": {}, | ||
"refMap": {}, | ||
"watch": [ | ||
"*.graphql", | ||
"*.vtl", | ||
], | ||
"wsPort": 20003, | ||
} | ||
`; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no multiple key ?