Skip to content

Commit

Permalink
feat: extensibility for Amplify API (aws-amplify#8954)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshbhu committed Nov 21, 2021
1 parent 8a18fcb commit c565593
Show file tree
Hide file tree
Showing 90 changed files with 10,550 additions and 2,121 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
**/.DS_Store
.circleci/generated_config.yml
build
!packages/amplify-graphql-model-transformer/src/__tests__/overrides/build/
!packages/amplify-graphql-function-transformer/src/__tests__/overrides/build/
!packages/amplify-graphql-predictions-transformer/src/__tests__/overrides/build/
!packages/amplify-graphql-http-transformer/src/__tests__/overrides/build/
!packages/amplify-graphql-searchable-transformer/src/__tests__/overrides/build/
node_modules
out
pkg/node_modules
Expand Down Expand Up @@ -70,4 +75,7 @@ test.out.log
*.tsbuildinfo
packages/amplify-graphiql-explorer/.eslintcache
packages/amplify-cli-extensibility-helper/lib
packages/amplify-cli-overrides-helper/lib
!packages/amplify-graphql-model-transformer/src/__tests__/overrides/build/override.js


1 change: 1 addition & 0 deletions packages/amplify-category-api/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
**/__tests__/**
./src
tsconfig.json
!resources/awscloudformation/overrides-resource/AppSync/tsconfig.json
tsconfig.tsbuildinfo
14 changes: 13 additions & 1 deletion packages/amplify-category-api/amplify-plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
"name": "api",
"type": "category",
"commands": ["add-graphql-datasource", "add", "console", "gql-compile", "migrate", "push", "rebuild", "remove", "update", "help"],
"commands": [
"add-graphql-datasource",
"add",
"console",
"gql-compile",
"migrate",
"push",
"rebuild",
"remove",
"update",
"help",
"override"
],
"commandAliases": {
"configure": "update"
},
Expand Down
10 changes: 7 additions & 3 deletions packages/amplify-category-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "amplify-category-api",
"version": "3.3.5",
"name": "@aws-amplify/amplify-category-api",
"version": "1.0.0",
"description": "amplify-cli api plugin",
"repository": {
"type": "git",
Expand All @@ -14,7 +14,11 @@
"build": "tsc",
"watch": "tsc -w",
"clean": "rimraf lib tsconfig.tsbuildinfo",
"test": "jest"
"test": "jest",
"generateSchemas": "ts-node ./scripts/generateApiSchemas.ts"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@aws-amplify/graphql-transformer-migrator": "1.2.6",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { AppSyncServiceResourceStack } from '@aws-amplify/cli-extensibility-helper';

export function override(resource: AppSyncServiceResourceStack) {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "overrides",
"version": "1.0.0",
"description": "",
"scripts": {
"build": "tsc",
"watch": "tsc -w"
},
"dependencies": {
"@aws-amplify/cli-extensibility-helper": "2.2.3-gql-ext1.0"
},
"devDependencies": {
"typescript": "^4.2.4"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"outDir": "build"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"strict": false,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"outDir": "./",
"rootDir": "../"
},
"include": ["../**/*"]
}
Loading

0 comments on commit c565593

Please sign in to comment.