diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-22 17:43:03 +0000 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-22 17:43:03 +0000 |
commit | 643ff19e00a93a226bdbaa7c43aa340fd558b12b (patch) | |
tree | 76f40c04615f7dae803f930efff0d124ffdd0200 | |
parent | 33e4294fc884c7bd2a7fb86baf4731daf87db7bb (diff) | |
parent | 41e36f2c0fc21a63bdc51383bbc3be03cb3497cf (diff) | |
download | gitlab-ce-643ff19e00a93a226bdbaa7c43aa340fd558b12b.tar.gz |
Merge branch 'remove-require-context-cycle-analytics-bundle' into 'master'
Remove require.context from cycle_analytics_bundle
See merge request !9393
-rw-r--r-- | app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js.es6 | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js.es6 b/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js.es6 index 1ac715aab77..411ac7b24b2 100644 --- a/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js.es6 +++ b/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js.es6 @@ -4,10 +4,20 @@ window.Vue = require('vue'); window.Cookies = require('js-cookie'); - -function requireAll(context) { return context.keys().map(context); } -requireAll(require.context('./svg', false, /^\.\/.*\.(js|es6)$/)); -requireAll(require.context('.', true, /^\.\/(?!cycle_analytics_bundle).*\.(js|es6)$/)); +require('./svg/icon_branch'); +require('./svg/icon_build_status'); +require('./svg/icon_commit'); +require('./components/stage_code_component'); +require('./components/stage_issue_component'); +require('./components/stage_plan_component'); +require('./components/stage_production_component'); +require('./components/stage_review_component'); +require('./components/stage_staging_component'); +require('./components/stage_test_component'); +require('./components/total_time_component'); +require('./cycle_analytics_service'); +require('./cycle_analytics_store'); +require('./default_event_objects'); $(() => { const OVERVIEW_DIALOG_COOKIE = 'cycle_analytics_help_dismissed'; |