|
@@ -0,0 +1,30 @@
|
|
|
+var chalk = {};
|
|
|
+
|
|
|
+module.exports = function() {
|
|
|
+ return {
|
|
|
+ name: 'mws-carmen-castillo-landing-page',
|
|
|
+ type: 'website',
|
|
|
+ auto_load: true,
|
|
|
+ initialize: function(system) {
|
|
|
+ this.system = system;
|
|
|
+ chalk = this.system.chalk;
|
|
|
+ },
|
|
|
+ install: function(){
|
|
|
+ this.system.carmenLandingPage = this;
|
|
|
+ if(this.system.carmenLandingPage == undefined)
|
|
|
+ this.system.log(this.system.chalk.red('Error: mws-carmen-castillo-landing-page module not found on system!'));
|
|
|
+ this.server = this.system.module_loader.instantiate_module(this.system, 'mws-server');
|
|
|
+ if(this.server == undefined)
|
|
|
+ this.system.log(this.system.chalk.red('Error: Could not install mws-server for mws-carmen-castillo-landing-page module.'));
|
|
|
+ else {
|
|
|
+ this.system.modules.push(this.server);
|
|
|
+ this.server.port = 3000;
|
|
|
+ this.server.install();
|
|
|
+ this.system.log(` ${this.system.logSymbols.tick} Instantiated ${chalk.bold(this.server.name)} ${chalk.gray('v' + this.server.version)} from ${chalk.green('\'' + this.server.packagePath + '\'')}`);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ setup: function(){},
|
|
|
+ start: function(){},
|
|
|
+ execute: function(){}
|
|
|
+ };
|
|
|
+}
|