{"size": 488, "ext": "js", "max_stars_repo_path": "application/index.js", "max_stars_repo_name": "patrickodacre/code-challenge-application", "max_stars_repo_stars_event_min_datetime": "2017-07-09T19:17:49.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-31T13:44:31.000Z", "max_issues_repo_path": "application/index.js", "max_issues_repo_name": "patrickodacre/code-challenge-application", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "application/index.js", "max_forks_repo_name": "patrickodacre/code-challenge-application", "max_forks_repo_forks_event_min_datetime": "2019-12-29T10:29:25.000Z", "max_forks_repo_forks_event_max_datetime": "2019-12-29T10:29:25.000Z"}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 28.7058823529, "max_line_length": 84, "alphanum_fraction": 0.6967213115}
import main from './assets/main'
import stores from './assets/stores'
import customers from './assets/customers'

$( document ).ready(function() {
  // Let's make sure we're only initializing the modules we need for any given page:
  const page_id = document.getElementById('page_id').getAttribute('data-module')

  const modules = {
    home : main,
    about : main,
    stores_index : stores,
    store_customers : customers
  }

  modules[page_id] ? modules[page_id].run() : false
});