UNPKG

serverless-aliyun-function-compute

Version:

Provider plugin for the Serverless Framework v1.x which adds support for Aliyun Function Compute

26 lines (19 loc) 782 B
'use strict'; /* eslint no-use-before-define: 0 */ const path = require('path'); module.exports = { saveCreateTemplateFile() { const packagePath = path.join(this.serverless.config.servicePath || '.', '.serverless'); const filePath = path.join(packagePath,'configuration-template-create.json'); this.serverless.utils.writeFileSync(filePath, this.serverless.service.provider.compiledConfigurationTemplate); }, saveUpdateTemplateFile() { const packagePath = path.join(this.serverless.config.servicePath || '.', '.serverless'); const filePath = path.join(packagePath, 'configuration-template-update.json'); this.serverless.utils.writeFileSync(filePath, this.serverless.service.provider.compiledConfigurationTemplate); }, };