reorganize files

This commit is contained in:
Géry Debongnie
2019-01-22 19:25:12 +01:00
parent 5652ef65ad
commit 3766fbc7b8
101 changed files with 31 additions and 43 deletions
+16
View File
@@ -0,0 +1,16 @@
import {init} from './snabbdom';
import {attributesModule} from './modules/attributes'; // for setting attributes on DOM elements
import {classModule} from './modules/class'; // makes it easy to toggle classes
import {propsModule} from './modules/props'; // for setting properties on DOM elements
import {styleModule} from './modules/style'; // handles styling on elements with support for animations
import {eventListenersModule} from './modules/eventlisteners'; // attaches event listeners
import {h} from './h'; // helper function for creating vnodes
var patch = init([ // Init patch function with choosen modules
attributesModule,
classModule,
propsModule,
styleModule,
eventListenersModule
]) as (oldVNode: any, vnode: any) => any;
export const snabbdomBundle = { patch, h: h as any };
export default snabbdomBundle;