Betting app defaults.
Install as package dependency via npm
npm install kmandrup/off-defaults --save
In your application config:
import defaults from 'off-defaults';
import state from './state';
import views from './views';
import apps from './apps';
export default {
state: state,
views: views,
apps: apps
}
TODO: Here we can define the default App configuration layout:
export default {
active: ['index', 'casino']
mounted: {
index: {
...
}
}
}
TODO: Do we call it pages or apps? We need to be consistent! For marko templates in views folder, perhaps it makes sense to call it a page but the whole entity (config, state and views) is an app!
export default {
paths: {
root: 'views',
assets: {
// used to build rootPath
root: 'public'
},
pages: {
root: 'pages',
}
}
};