Philipp Muens b74fa46563 Update hook order and zipping functionality
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.
2016-07-07 20:10:05 +02:00

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;