Commit b5983a70 authored by Mike Greiling's avatar Mike Greiling

consolidate main bootstrap entries

parent de07384b
/* eslint-disable import/first */
/* global $ */ /* global $ */
import jQuery from 'jquery'; import jQuery from 'jquery';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
import svg4everybody from 'svg4everybody'; import svg4everybody from 'svg4everybody';
// expose common libraries as globals (TODO: remove these) // bootstrap webpack, common libs, polyfills, and behaviors
window.jQuery = jQuery; import './webpack';
window.$ = jQuery; import './commons';
import './behaviors';
// lib/utils // lib/utils
import { handleLocationHash, addSelectOnFocusBehaviour } from './lib/utils/common_utils'; import { handleLocationHash, addSelectOnFocusBehaviour } from './lib/utils/common_utils';
import { localTimeAgo } from './lib/utils/datetime_utility'; import { localTimeAgo } from './lib/utils/datetime_utility';
import { getLocationHash, visitUrl } from './lib/utils/url_utility'; import { getLocationHash, visitUrl } from './lib/utils/url_utility';
// behaviors
import './behaviors/';
// everything else // everything else
import loadAwardsHandler from './awards_handler'; import loadAwardsHandler from './awards_handler';
import bp from './breakpoints'; import bp from './breakpoints';
...@@ -31,9 +28,12 @@ import initLogoAnimation from './logo'; ...@@ -31,9 +28,12 @@ import initLogoAnimation from './logo';
import './milestone_select'; import './milestone_select';
import './projects_dropdown'; import './projects_dropdown';
import initBreadcrumbs from './breadcrumb'; import initBreadcrumbs from './breadcrumb';
import initDispatcher from './dispatcher'; import initDispatcher from './dispatcher';
// expose jQuery as global (TODO: remove these)
window.jQuery = jQuery;
window.$ = jQuery;
// inject test utilities if necessary // inject test utilities if necessary
if (process.env.NODE_ENV !== 'production' && gon && gon.test_env) { if (process.env.NODE_ENV !== 'production' && gon && gon.test_env) {
$.fx.off = true; $.fx.off = true;
......
...@@ -18,7 +18,7 @@ const NO_COMPRESSION = process.env.NO_COMPRESSION; ...@@ -18,7 +18,7 @@ const NO_COMPRESSION = process.env.NO_COMPRESSION;
let autoEntriesCount = 0; let autoEntriesCount = 0;
let watchAutoEntries = []; let watchAutoEntries = [];
const defaultEntries = ['./webpack', './commons', './main']; const defaultEntries = ['./main'];
function generateEntries() { function generateEntries() {
// generate automatic entry points // generate automatic entry points
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment