From f77ea2243b283838c05a8e765b59b3de371782f3 Mon Sep 17 00:00:00 2001 From: 140b8f67-ec51-4b64-9606-bff2dffa0170 Date: Tue, 22 Mar 2016 23:49:10 -0700 Subject: [PATCH] Better node integration --- .../js/CustomApplication.js | 0 .../js/CustomApplicationDataHandler.js | 0 .../js/CustomApplicationHelpers.js | 0 .../js/CustomApplicationLog.js | 0 .../js/CustomApplicationResourceLoader.js | 0 .../js/CustomApplicationsHandler.js | 0 .../less/CustomApplication.less | 0 src/{runtime => framework}/resources/header.txt | 0 .../skeleton/vendor/jquery.js | 0 src/node/.gitignore | 1 + src/runtime/package.json | 15 +++++++++++++++ src/runtime/runtime.js | 10 ++++++++++ 12 files changed, 26 insertions(+) rename src/{runtime => framework}/js/CustomApplication.js (100%) rename src/{runtime => framework}/js/CustomApplicationDataHandler.js (100%) rename src/{runtime => framework}/js/CustomApplicationHelpers.js (100%) rename src/{runtime => framework}/js/CustomApplicationLog.js (100%) rename src/{runtime => framework}/js/CustomApplicationResourceLoader.js (100%) rename src/{runtime => framework}/js/CustomApplicationsHandler.js (100%) rename src/{runtime => framework}/less/CustomApplication.less (100%) rename src/{runtime => framework}/resources/header.txt (100%) rename src/{runtime => framework}/skeleton/vendor/jquery.js (100%) create mode 100644 src/node/.gitignore create mode 100644 src/runtime/package.json create mode 100644 src/runtime/runtime.js diff --git a/src/runtime/js/CustomApplication.js b/src/framework/js/CustomApplication.js similarity index 100% rename from src/runtime/js/CustomApplication.js rename to src/framework/js/CustomApplication.js diff --git a/src/runtime/js/CustomApplicationDataHandler.js b/src/framework/js/CustomApplicationDataHandler.js similarity index 100% rename from src/runtime/js/CustomApplicationDataHandler.js rename to src/framework/js/CustomApplicationDataHandler.js diff --git a/src/runtime/js/CustomApplicationHelpers.js b/src/framework/js/CustomApplicationHelpers.js similarity index 100% rename from src/runtime/js/CustomApplicationHelpers.js rename to src/framework/js/CustomApplicationHelpers.js diff --git a/src/runtime/js/CustomApplicationLog.js b/src/framework/js/CustomApplicationLog.js similarity index 100% rename from src/runtime/js/CustomApplicationLog.js rename to src/framework/js/CustomApplicationLog.js diff --git a/src/runtime/js/CustomApplicationResourceLoader.js b/src/framework/js/CustomApplicationResourceLoader.js similarity index 100% rename from src/runtime/js/CustomApplicationResourceLoader.js rename to src/framework/js/CustomApplicationResourceLoader.js diff --git a/src/runtime/js/CustomApplicationsHandler.js b/src/framework/js/CustomApplicationsHandler.js similarity index 100% rename from src/runtime/js/CustomApplicationsHandler.js rename to src/framework/js/CustomApplicationsHandler.js diff --git a/src/runtime/less/CustomApplication.less b/src/framework/less/CustomApplication.less similarity index 100% rename from src/runtime/less/CustomApplication.less rename to src/framework/less/CustomApplication.less diff --git a/src/runtime/resources/header.txt b/src/framework/resources/header.txt similarity index 100% rename from src/runtime/resources/header.txt rename to src/framework/resources/header.txt diff --git a/src/runtime/skeleton/vendor/jquery.js b/src/framework/skeleton/vendor/jquery.js similarity index 100% rename from src/runtime/skeleton/vendor/jquery.js rename to src/framework/skeleton/vendor/jquery.js diff --git a/src/node/.gitignore b/src/node/.gitignore new file mode 100644 index 0000000..f920c5a --- /dev/null +++ b/src/node/.gitignore @@ -0,0 +1 @@ +latest/ \ No newline at end of file diff --git a/src/runtime/package.json b/src/runtime/package.json new file mode 100644 index 0000000..f65acca --- /dev/null +++ b/src/runtime/package.json @@ -0,0 +1,15 @@ +{ + "name": "casdk-runtime", + "description": "Write and deploy applications for the Mazda Infotainment System", + "version": "0.0.4", + "homepage": "http://flyandi.github.io/mazda-custom-application-sdk/", + "author": "Andy (flyandi) ", + "repository": { + "type": "git", + "url": "https://github.com/flyandi/mazda-custom-application-sdk" + }, + "license": "GPL-3.0", + "dependencies": { + "ws": "^1.0.1" + } +} diff --git a/src/runtime/runtime.js b/src/runtime/runtime.js new file mode 100644 index 0000000..335653e --- /dev/null +++ b/src/runtime/runtime.js @@ -0,0 +1,10 @@ +/* eslint-disable require-buffer */ +'use strict'; + +//const binding = process.binding('cmu'); +const cmu = exports; + + +cmu.version = function() { + return "It a worked!"; +} \ No newline at end of file