cleaned up
This commit is contained in:
parent
bfb9ebb994
commit
1d488c308e
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
13
ts/index.js
13
ts/index.js
@ -1,13 +0,0 @@
|
|||||||
/// <reference path="typings/tsd.d.ts" />
|
|
||||||
/// <reference path="smartenv.classes.ts" />
|
|
||||||
/// <reference path="smartenv.environment.ts" />
|
|
||||||
/// <reference path="smartenv.objectstorage.ts" />
|
|
||||||
var plugins = {
|
|
||||||
beautylog: require("beautylog")("os"),
|
|
||||||
_: require("lodash")
|
|
||||||
};
|
|
||||||
var smartenv = {}; //create smartenv object
|
|
||||||
SmartenvEnvironment.init(smartenv);
|
|
||||||
smartenv.obs = SmartenvObjectStorage.init();
|
|
||||||
module.exports = smartenv;
|
|
||||||
//# sourceMappingURL=index.js.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,4CAA4C;AAC5C,gDAAgD;AAChD,kDAAkD;AAClD,IAAI,OAAO,GAAG;IACV,SAAS,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;IACrC,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;CACvB,CAAA;AACD,IAAI,QAAQ,GAAO,EAAE,CAAC,CAAC,wBAAwB;AAE/C,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACnC,QAAQ,CAAC,GAAG,GAAG,qBAAqB,CAAC,IAAI,EAAE,CAAC;AAI5C,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC"}
|
|
22
ts/test.js
22
ts/test.js
@ -1,22 +0,0 @@
|
|||||||
/// <reference path="typings/tsd.d.ts" />
|
|
||||||
var smartenv = require("./index.js");
|
|
||||||
var beautylog = require("beautylog")("os");
|
|
||||||
beautylog.info("Now testing the smartenv module");
|
|
||||||
smartenv.printEnv();
|
|
||||||
beautylog.info("Now testing the smartenv module");
|
|
||||||
//test smartenv.obs.add
|
|
||||||
smartenv.obs.add("myTestObject", { key1: "Peter" });
|
|
||||||
smartenv.obs.add("myTestObject", { key1: "Klaus" }); //now trying to add a second
|
|
||||||
smartenv.printEnv();
|
|
||||||
beautylog.log(smartenv.obs.get("myTestObject").key1); // this should be Peter
|
|
||||||
//test smartenv.obs.replace
|
|
||||||
smartenv.obs.replace("myTestObject", { key1: "Klaus" });
|
|
||||||
beautylog.log(smartenv.obs.get("myTestObject").key1); // this should be Klaus
|
|
||||||
//test smartenv.obs.merge
|
|
||||||
smartenv.obs.merge("myTestObject", { key2: "Peter" });
|
|
||||||
beautylog.log(smartenv.obs.get("myTestObject").key1 + smartenv.obs.get("myTestObject").key2); // this should be KlausPeter
|
|
||||||
var key2 = "hello";
|
|
||||||
smartenv.obs.get("myTestObject").key2 = key2;
|
|
||||||
beautylog.log(smartenv.obs.get("myTestObject").key2);
|
|
||||||
beautylog.success("Success!");
|
|
||||||
//# sourceMappingURL=test.js.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,IAAI,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AACrC,IAAI,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAClD,QAAQ,CAAC,QAAQ,EAAE,CAAC;AACpB,SAAS,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAElD,uBAAuB;AACvB,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,cAAc,EAAC,EAAC,IAAI,EAAC,OAAO,EAAC,CAAC,CAAC;AAChD,QAAQ,CAAC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