npm install --save gzly-history-router
import * as Gzly from 'gzly-history-router';
import DetailModule from './App/Controller/DetailModule';
import IndexModule from './App/Controller/IndexModule';
let modules = {
'detail': {
instance: new DetailModule(),
children: {}
},
'index': {
instance: new IndexModule(),
children: {}
},
};
let options = {
duration: 500,
useHashbang: true,
rootElement: <HTMLElement>document.querySelector('body > main')
}
let router = new Gzly.Router(modules, options);
router.render();
npm run start
- will trigger the watch job
npm run build
- will trigger the build job
npm run test
- will trigger -wait for it- the test job :)
The emoji guide for commit messages https://gitmoji.carloscuesta.me/