فهرست منبع

Initial commit

James Peret 1 سال پیش
کامیت
a83c16f3ef
3فایلهای تغییر یافته به همراه44 افزوده شده و 0 حذف شده
  1. 1 0
      .gitignore
  2. 30 0
      index.js
  3. 13 0
      package.json

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/node_modules

+ 30 - 0
index.js

@@ -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(){}
+    };
+}

+ 13 - 0
package.json

@@ -0,0 +1,13 @@
+{
+  "name": "mws-carmen-castillo-landing-page",
+  "version": "0.0.1",
+  "description": "A landing page for the Carmen Castillo Imoveis project",
+  "main": "index.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "author": "James Peret <james.peret@gmail.com> (http://jamesperet.com/)",
+  "license": "ISC",
+  "mws_module": true,
+  "publishConfig":{"registry":"https://registry.kairoscope.net"}
+}