Skip to content

Commit

Permalink
Fix for not tracking browser files.
Browse files Browse the repository at this point in the history
  • Loading branch information
KeesCBakker committed Mar 24, 2018
1 parent 4c480d2 commit de1856d
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Expand Up @@ -52,4 +52,8 @@ jspm_packages
.node_repl_history
dist
**/src/**/*.d.ts
**/src/**/*.js
packages/ste-core/src/**/*.js
packages/ste-events/src/**/*.js
packages/ste-signals/src/**/*.js
packages/ste-simple-events/src/**/*.js
packages/strongly-typed-events/src/**/*.js
12 changes: 12 additions & 0 deletions packages/ste-browser/src/expose.js
@@ -0,0 +1,12 @@
module.exports = function(data){
var w = window || {};
w._e = w._e || {};

var keys = Object.keys(data);
for(var i = 0; i < keys.length; i++){
var name = keys[i];
console.log(name);
w[name] = w[name] || data[name];
w._e[name] = data[name];
}
};
17 changes: 17 additions & 0 deletions packages/ste-browser/src/ste-core.js
@@ -0,0 +1,17 @@
/*!
* Strongly Typed Events for TypeScript
* https://github.com/KeesCBakker/StronlyTypedEvents/
* http://keestalkstech.com
*
* Copyright Kees C. Bakker / KeesTalksTech
* Released under the MIT license
*/
var m = require("ste-core");
var expose = require("./expose");

expose({
DispatcherBase: m.DispatcherBase,
DispatcherWrapper: m.DispatcherWrapper,
EventListBase: m.EventListBase,
Subscription: m.Subscription
});
16 changes: 16 additions & 0 deletions packages/ste-browser/src/ste-events.js
@@ -0,0 +1,16 @@
/*!
* Strongly Typed Events for TypeScript
* https://github.com/KeesCBakker/StronlyTypedEvents/
* http://keestalkstech.com
*
* Copyright Kees C. Bakker / KeesTalksTech
* Released under the MIT license
*/
var m = require("ste-events");
var expose = require("./expose");

expose({
EventDispatcher: m.EventDispatcher,
EventHandlingBase: m.EventHandlingBase,
EventList: m.EventList
});
16 changes: 16 additions & 0 deletions packages/ste-browser/src/ste-signals.js
@@ -0,0 +1,16 @@
/*!
* Strongly Typed Events for TypeScript
* https://github.com/KeesCBakker/StronlyTypedEvents/
* http://keestalkstech.com
*
* Copyright Kees C. Bakker / KeesTalksTech
* Released under the MIT license
*/
var m = require("ste-signals");
var expose = require("./expose");

expose({
SignalDispatcher: m.SignalDispatcher,
SignalHandlingBase: m.SignalHandlingBase,
SignalList: m.SignalList
});
16 changes: 16 additions & 0 deletions packages/ste-browser/src/ste-simple-events.js
@@ -0,0 +1,16 @@
/*!
* Strongly Typed Events for TypeScript
* https://github.com/KeesCBakker/StronlyTypedEvents/
* http://keestalkstech.com
*
* Copyright Kees C. Bakker / KeesTalksTech
* Released under the MIT license
*/
var m = require("ste-simple-events");
var expose = require("./expose");

expose({
SimpleEventDispatcher: m.SimpleEventDispatcher,
SimpleEventHandlingBase: m.SimpleEventHandlingBase,
SimpleEventList: m.SimpleEventList
});
26 changes: 26 additions & 0 deletions packages/ste-browser/src/strongly-typed-events.js
@@ -0,0 +1,26 @@
/*!
* Strongly Typed Events for TypeScript
* https://github.com/KeesCBakker/StronlyTypedEvents/
* http://keestalkstech.com
*
* Copyright Kees C. Bakker / KeesTalksTech
* Released under the MIT license
*/
var m = require("strongly-typed-events");
var expose = require("./expose");

expose({
DispatcherBase: m.DispatcherBase,
DispatcherWrapper: m.DispatcherWrapper,
EventListBase: m.EventListBase,
Subscription: m.Subscription,
EventDispatcher: m.EventDispatcher,
EventHandlingBase: m.EventHandlingBase,
EventList: m.EventList,
SignalDispatcher: m.SignalDispatcher,
SignalHandlingBase: m.SignalHandlingBase,
SignalList: m.SignalList,
SimpleEventDispatcher: m.SimpleEventDispatcher,
SimpleEventHandlingBase: m.SimpleEventHandlingBase,
SimpleEventList: m.SimpleEventList
});

0 comments on commit de1856d

Please sign in to comment.