mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
Update the hook order because the functions need the .zip file in their resource definition. Furthermore the zipping process / writing it to disc was optimized. The ".serverless" directory is also added to the "default exclude array" so that it's not considered during packaging.
34 lines
668 B
JavaScript
34 lines
668 B
JavaScript
'use strict';
|
|
|
|
class Deploy {
|
|
constructor(serverless) {
|
|
this.serverless = serverless;
|
|
|
|
this.commands = {
|
|
deploy: {
|
|
usage: 'Deploy Service.',
|
|
lifecycleEvents: [
|
|
'initializeResources',
|
|
'createProviderStacks',
|
|
'createDeploymentPackage',
|
|
'compileFunctions',
|
|
'compileEvents',
|
|
'deploy',
|
|
],
|
|
options: {
|
|
stage: {
|
|
usage: 'Stage of the service',
|
|
shortcut: 's',
|
|
},
|
|
region: {
|
|
usage: 'Region of the service',
|
|
shortcut: 'r',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|
|
}
|
|
|
|
module.exports = Deploy;
|