amazon-archives / aws-amplify-serverless-plugin

Plugin for the Serverless Framework to output AWS Amplify configuration files.
Apache License 2.0
124 stars 30 forks source link

Update config to use base path and type #31

Open adrianhall opened 5 years ago

adrianhall commented 5 years ago

Currently, we specify every single file and what type it is. However, mostly, we just want to configure a client. I'd suggest the following configuration types:

amplify:
  - base: ../android/app
    type: android
    appClient: AndroidUserPoolClient
    s3Bucket: UserFiles
  - base: ../ios/aws
    type: swift
    appClient: iOSUserPoolClient
    s3Bucket: UserFiles
  - base: ../web/src/aws
    type: react
    appClient: WebUserPoolClient
    s3Bucket: UserFiles

All of the code-gen and files should be placed "in the right place" for the designated app, with directories being created as needed.