Ejegg has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/393792 )

Change subject: Add app.build.js for running r.js directly
......................................................................

Add app.build.js for running r.js directly

Something's funky with gulp, so to get around it, run
node node_modules/requirejs/bin/r.js -o app.build.js
and replace dist/scripts-???.js with the output scripts.js

Change-Id: I078dda880323eddc7c4b20d3f95abcc9b9c095fe
---
A app.build.js
1 file changed, 80 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/dash 
refs/changes/92/393792/1

diff --git a/app.build.js b/app.build.js
new file mode 100644
index 0000000..d440b22
--- /dev/null
+++ b/app.build.js
@@ -0,0 +1,80 @@
+/* jshint -W098 */
+
+({
+       baseUrl: 'src',
+       paths: {
+               bootstrap: 'bower_modules/bootstrap/dist/js/bootstrap',
+               crossroads: 'bower_modules/crossroads/dist/crossroads.min',
+               hasher: 'bower_modules/hasher/dist/js/hasher.min',
+               jquery: 'bower_modules/jquery/dist/jquery',
+               noUISlider: 
'bower_modules/nouislider/distribute/jquery.nouislider.all',
+               knockout: 'bower_modules/knockout/dist/knockout',
+               'knockout-projections': 
'bower_modules/knockout-projections/dist/knockout-projections',
+               d3: 'bower_modules/d3/d3',
+               text: 'bower_modules/requirejs-text/text',
+               chartjs: 'bower_modules/chartjs/Chart',
+               momentjs: 'bower_modules/moment/moment',
+               raphael: 'bower_modules/raphael/raphael',
+               gauge: 'bower_modules/gauge.js/dist/gauge',
+               'bootstrap-datepicker': 
'bower_modules/bootstrap-datepicker/js/bootstrap-datepicker',
+               'bootstrap-timepicker': 
'bower_modules/bootstrap-timepicker/js/bootstrap-timepicker',
+               select2: 'bower_modules/select2/select2',
+               signals: 'bower_modules/js-signals/dist/signals.min',
+               c3: 'bower_modules/c3/c3',
+               numeraljs: 'bower_modules/numeraljs/numeral',
+               WidgetBase: 'app/widgetBase',
+               Campaign: 'app/campaign',
+               operators: 'components/filters/operators',
+                       requireLib: 'bower_modules/requirejs/require'
+       },
+       shim: {
+               bootstrap: {
+                       deps: [
+                               'jquery'
+                       ]
+               },
+               c3: {
+                       deps: [
+                               'd3'
+                       ]
+               },
+               momentjs: {
+                       exports: 'moment'
+               },
+               noUISlider: {
+                       deps: [
+                               'jquery'
+                       ]
+               }
+       },
+       out: 'scripts.js',
+               name: 'app/startup',
+               include: [
+                       'requireLib',
+                       'components/app-content/app-content',
+                       'components/boards/generic-board/generic-board',
+                       'components/filters/filters',
+                       'components/filters/dropdown-filter/dropdown-filter',
+                       'components/filters/number-filter/number-filter',
+                       'components/filters/text-filter/text-filter',
+                       'components/nav-bar/nav-bar',
+                       'components/utils/date-pickers/date-pickers',
+                       'components/widgets/ab-testing/ab-testing',
+                       
'components/widgets/amt-per-second-chart/amt-per-second-chart',
+                       'components/widgets/cat-trombone/cat-trombone',
+                       
'components/widgets/distance-to-goal-chart/distance-to-goal-chart',
+                       'components/widgets/donation-age/donation-age',
+                       'components/widgets/fraud-gauge/fraud-gauge',
+                       'components/widgets/top10/top10',
+                       
'components/widgets/totals-earned-chart/totals-earned-chart',
+                       'components/widgets/x-by-y/x-by-y'
+               ],
+               insertRequire: [ 'app/startup' ],
+               bundles: {
+                       // If you want parts of the site to load on demand, 
remove them from the 'include' list
+                       // above, and group them into bundles here.
+                       'date-pickers': [ 
'components/utils/date-pickers/date-pickers' ]
+                       // 'vega-timeseries': 
['components/visualizers/vega-timeseries/vega-timeseries']
+
+               }
+})

-- 
To view, visit https://gerrit.wikimedia.org/r/393792
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I078dda880323eddc7c4b20d3f95abcc9b9c095fe
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/dash
Gerrit-Branch: deployment
Gerrit-Owner: Ejegg <ej...@ejegg.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to