mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
40 lines
855 B
JavaScript
40 lines
855 B
JavaScript
'use strict';
|
|
|
|
class Package {
|
|
constructor(serverless, options) {
|
|
this.serverless = serverless;
|
|
this.options = options;
|
|
|
|
this.commands = {
|
|
package: {
|
|
usage: 'Packages a Serverless service',
|
|
lifecycleEvents: [
|
|
'cleanup',
|
|
'initialize',
|
|
'setupProviderConfiguration',
|
|
'createDeploymentArtifacts',
|
|
'compileFunctions',
|
|
'compileEvents',
|
|
'finalize',
|
|
],
|
|
options: {
|
|
stage: {
|
|
usage: 'Stage of the service',
|
|
shortcut: 's',
|
|
},
|
|
region: {
|
|
usage: 'Region of the service',
|
|
shortcut: 'r',
|
|
},
|
|
package: {
|
|
usage: 'Output path for the package',
|
|
shortcut: 'p',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|
|
}
|
|
|
|
module.exports = Package;
|