Licence
MIT
Version
1.0.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
serverless-config-json
Plugin to Serverless Framework that copy a config file to a folder after the resources are created.
Used in combination with serverless-cloudfront-invalidate and serverless-s3-deploy
Install
Run npm install in your Serverless project.
$ npm install --save-dev serverless-config-json
Setup
Add the plugin to your serverless.yml file
plugins:
- serverless-config-json
- serverless-cloudfront-invalidate
- serverless-s3-deploy
Add configuration to custom in your serverless.yml
custom:
configJson:
from: 'config'
to: 'dist'
This will copy the file ./config/[STAGE].json to ./dist/config.json