HUE-8687 [frontend] Introduce Webpack, Babel and django-webpack-loader and upgrade jQuery to 3.3.1

Review Request #13587 - Created Jan. 25, 2019 and updated

Johan Åhlén
hue
HUE-8687_jahlen
hue
jgauthier, ranade, romain, roohi, weixia, yingc
commit 748b60d2dda6b9b92fc3d9bc89e76d7ef4eb024e
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Fri Jan 25 14:27:37 2019 +0100

    HUE-8687 [frontend] Bundle additional modules

:100644 100644 3817dd24bd 1fd0c8a9d9 M	apps/beeswax/src/beeswax/templates/create_database.mako
:100644 100644 87fb0654d1 d9e9b4a610 M	apps/beeswax/src/beeswax/templates/create_table_manually.mako
:100644 100644 b51db9f10e 8cb36207b8 M	apps/beeswax/src/beeswax/templates/import_wizard_choose_delimiter.mako
:100644 100644 2b7e525f02 d49ad0596d M	apps/beeswax/src/beeswax/templates/import_wizard_choose_file.mako
:100644 100644 d2d8e063a7 db5a6a33a8 M	apps/beeswax/src/beeswax/templates/import_wizard_define_columns.mako
:100644 100644 a3754f3e1c 07cac03dc6 M	apps/jobbrowser/src/jobbrowser/templates/job_browser.mako
:100644 100644 854aabc8f6 75756f08fe M	apps/metastore/src/metastore/templates/metastore.mako
:100644 100644 ed8977208b fd5c4d396d M	apps/oozie/src/oozie/templates/dashboard/list_oozie_workflow.mako
:100644 100644 2d301ba62a 76c98e4b27 M	apps/oozie/src/oozie/templates/dashboard/list_oozie_workflow_graph.mako
:100644 100644 a6ff546140 4c34d732f1 M	apps/oozie/src/oozie/templates/editor2/bundle_editor.mako
:100644 100644 c7d4fbe1f2 9206c7f8c1 M	apps/oozie/src/oozie/templates/editor2/coordinator_editor.mako
:100644 100644 718011f943 0635fdffcc M	apps/oozie/src/oozie/templates/editor2/workflow_editor.mako
:100644 100644 dc212d1ad4 88f5f45464 M	apps/sqoop/src/sqoop/templates/app.mako
:100644 100644 ec6d07c304 d2eab10377 M	apps/useradmin/src/useradmin/templates/list_configurations.mako
:100644 100644 7a4fe59e1d 7a4fe59e1d R100	desktop/core/src/desktop/static/desktop/js/ko.editable.js	desktop/core/src/desktop/js/ext/ko.editable.custom.js
:100644 100644 3cef3487c8 8a285cb1e5 M	desktop/core/src/desktop/js/hue.js
:100644 000000 e205aec936 0000000000 D	desktop/core/src/desktop/static/desktop/ext/js/filesize.min.js
:100644 000000 c1cc16d6e8 0000000000 D	desktop/core/src/desktop/static/desktop/ext/js/knockout-mapping.min.js
:100644 000000 3b2dcc2d58 0000000000 D	desktop/core/src/desktop/static/desktop/ext/js/knockout-switch-case.min.js
:100644 000000 10ce59f64d 0000000000 D	desktop/core/src/desktop/static/desktop/ext/js/knockout.min.js
:100644 000000 0d8a7b88b1 0000000000 D	desktop/core/src/desktop/static/desktop/ext/js/localforage.min.js
:100644 100644 67c58fa05c e82a37460c R068	desktop/core/src/desktop/static/desktop/js/hue-bundle-f0a99703362a3fc33475.js	desktop/core/src/desktop/static/desktop/js/hue-bundle-10281a5aac52146933c4.js
:000000 100644 0000000000 b63d469e79 A	desktop/core/src/desktop/static/desktop/js/hue-bundle-10281a5aac52146933c4.js.map
:100644 000000 1655b86348 0000000000 D	desktop/core/src/desktop/static/desktop/js/hue-bundle-f0a99703362a3fc33475.js.map
:100644 100644 6b57494c9f 2bd9026df1 M	desktop/core/src/desktop/templates/assist_m.mako
:100644 100644 27bb01ec5e 969e14771f M	desktop/core/src/desktop/templates/common_header.mako
:100644 100644 399bd54fc1 fbfc75b8a9 M	desktop/core/src/desktop/templates/common_header_m.mako
:100644 100644 927ca9e1d4 bc4a4dfb17 M	desktop/core/src/desktop/templates/common_home.mako
:100644 100644 daf7e058b1 301fe23a48 M	desktop/core/src/desktop/templates/common_jasmine.mako
:100644 100644 3f0a00fb2a 6e34e28aa9 M	desktop/core/src/desktop/templates/hue.mako
:100644 100644 81719776e9 a116242f3b M	desktop/libs/dashboard/src/dashboard/templates/common_search.mako
:100644 100644 93139227d4 a079d3e1db M	desktop/libs/indexer/src/indexer/templates/importer.mako
:100644 100644 7000aeec29 2ca9533023 M	desktop/libs/indexer/src/indexer/templates/indexer.mako
:100644 100644 ec4ac8080f d222251ed7 M	desktop/libs/notebook/src/notebook/templates/editor_components.mako
:100644 100644 b2a6c76e74 8d25d5180d M	package-lock.json
:100644 100644 60f3839bec ca6344bcd4 M	package.json
:100644 100644 d46f6f52df 308a0bc9de M	webpack-stats.json
:100644 100644 3d67ec6c8d f30c0711cc M	webpack.config.js

commit 8b31616c37f88ac6e2d38b4369fa0b75fb9f110e
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Thu Jan 24 17:13:36 2019 +0100

    HUE-8687 [frontend] Upgrade jQuery to 3.3.1

:100644 100644 d88818ca08 2c078b68da M	apps/beeswax/src/beeswax/static/beeswax/js/beeswax.vm.js
:100644 100644 28df6851b7 bcb91925ba M	apps/hbase/src/hbase/templates/app.mako
:100644 100644 b185a5d03f fad0cbee77 M	apps/jobbrowser/src/jobbrowser/templates/jobs.mako
:100644 100644 6812fccb4c 31bb134b0d M	apps/jobsub/src/jobsub/static/jobsub/js/jobsub.ko.js
:100644 100644 d5c6913405 5d9f7258b6 M	apps/oozie/src/oozie/static/oozie/js/workflow.js
:100644 100644 1314084b7d 39455e6807 M	apps/oozie/src/oozie/static/oozie/js/workflow.models.js
:100644 100644 bb0d8feb04 2077ea5126 M	apps/oozie/src/oozie/templates/editor/edit_workflow.mako
:100644 100644 abd5f13414 ec91f8aa08 M	apps/oozie/src/oozie/templates/utils.inc.mako
:100644 100644 871130e939 780e6ff9e6 M	apps/rdbms/src/rdbms/static/rdbms/js/rdbms.vm.js
:100644 100644 eaffbc25e9 5d11a40ef7 M	desktop/core/src/desktop/static/desktop/js/apiHelper.js
:100644 000000 89de5ee784 0000000000 D	desktop/core/src/desktop/static/desktop/js/hue-bundle-9f109ed3929449756ec4.js.map
:100644 100644 df5d5cadea 67c58fa05c R060	desktop/core/src/desktop/static/desktop/js/hue-bundle-9f109ed3929449756ec4.js	desktop/core/src/desktop/static/desktop/js/hue-bundle-f0a99703362a3fc33475.js
:000000 100644 0000000000 1655b86348 A	desktop/core/src/desktop/static/desktop/js/hue-bundle-f0a99703362a3fc33475.js.map
:100644 000000 164da4627b 0000000000 D	desktop/core/src/desktop/static/desktop/js/hue-bundle.js
:100644 000000 dae72ef02f 0000000000 D	desktop/core/src/desktop/static/desktop/js/hue-bundle.js.map
:100644 100644 a1ed398e8e 5285c5ee37 M	desktop/core/src/desktop/static/desktop/js/jquery.filechooser.js
:100644 100644 5a1667713d e6e44c4682 M	desktop/core/src/desktop/templates/common_header_footer_components.mako
:100644 100644 ef2d7cb26f 3f0a00fb2a M	desktop/core/src/desktop/templates/hue.mako
:100644 100644 2b0e5e1347 d9893b2f13 M	desktop/libs/dashboard/src/dashboard/static/dashboard/js/create-collections.ko.js
:100644 100644 054e46937d ec985e0fbc M	desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js
:100644 100644 56f4c6a3d4 b2a6c76e74 M	package-lock.json
:100644 100644 8146a25e4a 60f3839bec M	package.json
:100644 100644 67630d2ad2 d46f6f52df M	webpack-stats.json

commit ecfbe7c4e80a0b139df4c048de6e72f98ae9451d
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Thu Jan 24 15:38:43 2019 +0100

    HUE-8687 [frontend] Refactor and modularize hue.utils.js

:100644 100644 afa288fe59 8aa924d7c6 M	.babelrc
:100644 100644 6134402dab c84ec5ec00 M	apps/beeswax/src/beeswax/templates/execute.mako
:100644 100644 fa25fe2e5a 7eab297bf5 M	apps/oozie/src/oozie/static/oozie/js/bundle-editor.ko.js
:100644 100644 c6bea00be5 0da2ce2d65 M	apps/oozie/src/oozie/static/oozie/js/coordinator-editor.ko.js
:100644 100644 88657c9b16 ff122756db M	apps/oozie/src/oozie/static/oozie/js/workflow-editor.ko.js
:100644 100644 14b66692f9 a6ff546140 M	apps/oozie/src/oozie/templates/editor2/bundle_editor.mako
:100644 100644 a6a40899ca c7d4fbe1f2 M	apps/oozie/src/oozie/templates/editor2/coordinator_editor.mako
:100644 100644 58551c81d8 5dddef5835 M	apps/security/src/security/static/security/js/hive.ko.js
:100644 100644 8136f58bd9 037a904677 M	apps/security/src/security/static/security/js/sentry.ko.js
:000000 100644 0000000000 3cef3487c8 A	desktop/core/src/desktop/js/hue.js
:100644 100644 2fef73af59 d6bb8cdd97 R073	desktop/core/src/desktop/static/desktop/js/hue.js	desktop/core/src/desktop/js/utils/hueAnalytics.js
:000000 100644 0000000000 bc9d1df71d A	desktop/core/src/desktop/js/utils/hueDebug.js
:000000 100644 0000000000 5d08a37e39 A	desktop/core/src/desktop/js/utils/hueDrop.js
:000000 100644 0000000000 ffa69de034 A	desktop/core/src/desktop/js/utils/huePubSub.js
:000000 100644 0000000000 6d49596fdc A	desktop/core/src/desktop/js/utils/hueUtils.js
:100644 100644 8b4e734863 eaffbc25e9 M	desktop/core/src/desktop/static/desktop/js/apiHelper.js
:100644 100644 8be724a4ac df5d5cadea R080	desktop/core/src/desktop/static/desktop/js/hue-bundle-f32ebc5a2ae9c17ad586.js	desktop/core/src/desktop/static/desktop/js/hue-bundle-9f109ed3929449756ec4.js
:000000 100644 0000000000 89de5ee784 A	desktop/core/src/desktop/static/desktop/js/hue-bundle-9f109ed3929449756ec4.js.map
:100644 000000 8efc1ee852 0000000000 D	desktop/core/src/desktop/static/desktop/js/hue-bundle-f32ebc5a2ae9c17ad586.js.map
:100644 100644 47893ed5c6 721d934b05 M	desktop/core/src/desktop/static/desktop/js/hue.utils.js
:100644 100644 dec3f51315 05b4c8016a M	desktop/core/src/desktop/static/desktop/js/jquery.hdfsautocomplete.js
:100644 100644 f7e6ff0de6 783c73e158 M	desktop/core/src/desktop/static/desktop/js/ko.common-dashboard.js
:100644 100644 7547fcf25f 2b8287c7eb M	desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js
:000000 100644 0000000000 9baf710a73 A	desktop/core/src/desktop/static/desktop/js/polyfills.js
:100644 100644 2ddafebb70 5a1667713d M	desktop/core/src/desktop/templates/common_header_footer_components.mako
:100644 100644 6d84985d39 ef2d7cb26f M	desktop/core/src/desktop/templates/hue.mako
:100644 100644 f3450e897d ac5c9d8b26 M	desktop/core/src/desktop/templates/ko_components/ko_sentry_privileges.mako
:100644 100644 f0005a83d3 972517e7b3 M	desktop/core/src/desktop/templates/ko_components/ko_simple_ace_editor.mako
:100644 100644 3e7e2ce092 ef704c68a9 M	desktop/libs/dashboard/src/dashboard/static/dashboard/js/search.ko.js
:100644 100644 4fe183f5a7 81719776e9 M	desktop/libs/dashboard/src/dashboard/templates/common_search.mako
:100644 100644 4a7380bf1a 054e46937d M	desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js
:100644 100644 0f4d8e94c2 56f4c6a3d4 M	package-lock.json
:100644 100644 133f321de6 8146a25e4a M	package.json
:100644 100644 c00ea1d70e 67630d2ad2 M	webpack-stats.json
:100644 100644 dd2f833a4e 3d67ec6c8d M	webpack.config.js

commit 7654ddd0f645047bdc8ca6e50e5539d7cbafa900
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Wed Jan 23 16:39:26 2019 +0100

    HUE-8687 [frontend] Fix issue with page.js routing

:100644 000000 cf7a12cc0c 0000000000 D	desktop/core/src/desktop/static/desktop/js/hue-bundle-4b39795494c144680d44.js.map
:100644 100644 a08314e6a5 8be724a4ac R093	desktop/core/src/desktop/static/desktop/js/hue-bundle-4b39795494c144680d44.js	desktop/core/src/desktop/static/desktop/js/hue-bundle-f32ebc5a2ae9c17ad586.js
:000000 100644 0000000000 8efc1ee852 A	desktop/core/src/desktop/static/desktop/js/hue-bundle-f32ebc5a2ae9c17ad586.js.map
:100644 100644 ba2b2b2d17 0f4d8e94c2 M	package-lock.json
:100644 100644 16dcf7b19c 133f321de6 M	package.json
:100644 100644 ae56ab9ada c00ea1d70e M	webpack-stats.json

commit 8bca8c5f21876a438d46e7a915b3bbfe59e6d242
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Wed Jan 23 16:13:41 2019 +0100

    HUE-8687 [frontend] Bump versions for webpack and babel to the latest
    
    This also cleans up previously generated bundles

:000000 100644 0000000000 afa288fe59 A	.babelrc
:000000 100644 0000000000 a08314e6a5 A	desktop/core/src/desktop/static/desktop/js/hue-bundle-4b39795494c144680d44.js
:000000 100644 0000000000 cf7a12cc0c A	desktop/core/src/desktop/static/desktop/js/hue-bundle-4b39795494c144680d44.js.map
:100644 000000 3f36a49298 0000000000 D	desktop/core/src/desktop/static/desktop/js/hue-bundle-88f5760ed32fdd31e59e.js
:100644 000000 e2e8e19833 0000000000 D	desktop/core/src/desktop/static/desktop/js/hue-bundle-88f5760ed32fdd31e59e.js.map
:100644 000000 2371ffbc9d 0000000000 D	desktop/core/src/desktop/static/desktop/js/hue-bundle-d5f45f241629b44678eb.js
:100644 000000 ac2817ab06 0000000000 D	desktop/core/src/desktop/static/desktop/js/hue-bundle-d5f45f241629b44678eb.js.map
:100644 100644 81324ad6e0 2fef73af59 M	desktop/core/src/desktop/static/desktop/js/hue.js
:100644 100644 10291bcc7d ba2b2b2d17 M	package-lock.json
:100644 100644 5b8c5d7a44 16dcf7b19c M	package.json
:000000 100755 0000000000 49b52f23dd A	tools/scripts/clean_js_bundles.sh
:100644 100644 30f025826a ae56ab9ada M	webpack-stats.json
:100644 100644 4359fac5dc dd2f833a4e M	webpack.config.js

commit 955db0dd063d374678ce663f54583d2357f41e59
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Mon Jan 14 14:49:32 2019 +0100

    HUE-8687 [frontend] Add webpack for js modularity and bundling

:000000 100644 0000000000 5b69711987 A	desktop/core/ext-py/django-webpack-loader-0.5.0/.gitignore
:000000 100644 0000000000 091d6903db A	desktop/core/ext-py/django-webpack-loader-0.5.0/.travis.yml
:000000 100644 0000000000 ecc44fc469 A	desktop/core/ext-py/django-webpack-loader-0.5.0/CHANGELOG.md
:000000 100644 0000000000 00c63889b3 A	desktop/core/ext-py/django-webpack-loader-0.5.0/LICENSE
:000000 120000 0000000000 7a694c9699 A	desktop/core/ext-py/django-webpack-loader-0.5.0/LICENSE.txt
:000000 100644 0000000000 c1a7121c1b A	desktop/core/ext-py/django-webpack-loader-0.5.0/MANIFEST.in
:000000 100644 0000000000 0045f71270 A	desktop/core/ext-py/django-webpack-loader-0.5.0/Makefile
:000000 100644 0000000000 bae9cb9158 A	desktop/core/ext-py/django-webpack-loader-0.5.0/README.md
:000000 100644 0000000000 50772303f0 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/README.md
:000000 120000 0000000000 32d46ee883 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/README.md
:000000 100644 0000000000 e69de29bb2 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/app/__init__.py
:000000 100644 0000000000 ff00e19b7e A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/app/settings.py
:000000 100644 0000000000 994e058189 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/app/templates/home.html
:000000 100644 0000000000 b1ad5f0625 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/app/urls.py
:000000 100644 0000000000 955db58197 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/app/views.py
:000000 100644 0000000000 ea9ff9513e A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/app/wsgi.py
:000000 100644 0000000000 c729eb7806 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/assets/js/app.jsx
:000000 100644 0000000000 8b167dfea3 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/assets/js/index.jsx
:000000 100644 0000000000 755e4629ed A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/db.sqlite3
:000000 100755 0000000000 722382522a A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/manage.py
:000000 100644 0000000000 00929fd4d7 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/package.json
:000000 100644 0000000000 83810d66de A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/requirements.txt
:000000 100644 0000000000 f6e70c10af A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/code-splitting/webpack.config.js
:000000 100644 0000000000 2473ea7e45 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/README.md
:000000 100644 0000000000 e69de29bb2 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/app/__init__.py
:000000 100644 0000000000 ff00e19b7e A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/app/settings.py
:000000 100644 0000000000 08b3cfe84c A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/app/templates/home.html
:000000 100644 0000000000 b1ad5f0625 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/app/urls.py
:000000 100644 0000000000 955db58197 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/app/views.py
:000000 100644 0000000000 ea9ff9513e A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/app/wsgi.py
:000000 100644 0000000000 c729eb7806 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/assets/js/app.jsx
:000000 100644 0000000000 8b167dfea3 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/assets/js/index.jsx
:000000 100644 0000000000 755e4629ed A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/db.sqlite3
:000000 100755 0000000000 722382522a A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/manage.py
:000000 100644 0000000000 41cc9bd77a A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/package.json
:000000 100644 0000000000 83810d66de A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/requirements.txt
:000000 100644 0000000000 0011b772c8 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/server.js
:000000 100644 0000000000 f72b212ca7 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/hot-reload/webpack.config.js
:000000 120000 0000000000 32d46ee883 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/README.md
:000000 100644 0000000000 e69de29bb2 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/app/__init__.py
:000000 100644 0000000000 ff00e19b7e A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/app/settings.py
:000000 100644 0000000000 08b3cfe84c A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/app/templates/home.html
:000000 100644 0000000000 09082233cc A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/app/urls.py
:000000 100644 0000000000 955db58197 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/app/views.py
:000000 100644 0000000000 ea9ff9513e A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/app/wsgi.py
:000000 100644 0000000000 c729eb7806 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/assets/js/app.jsx
:000000 100644 0000000000 8b167dfea3 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/assets/js/index.jsx
:000000 100644 0000000000 08d9a92d83 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/db.sqlite3
:000000 100755 0000000000 722382522a A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/manage.py
:000000 100644 0000000000 a57846d083 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/package.json
:000000 100644 0000000000 83810d66de A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/requirements.txt
:000000 100644 0000000000 d24f0f0704 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/webpack-stats.json
:000000 100644 0000000000 ea7d0d4e27 A	desktop/core/ext-py/django-webpack-loader-0.5.0/examples/simple/webpack.config.js
:000000 100644 0000000000 b8c599c0e4 A	desktop/core/ext-py/django-webpack-loader-0.5.0/requirements-dev.txt
:000000 100644 0000000000 5aef279b98 A	desktop/core/ext-py/django-webpack-loader-0.5.0/setup.cfg
:000000 100644 0000000000 c92f50e611 A	desktop/core/ext-py/django-webpack-loader-0.5.0/setup.py
:000000 100644 0000000000 41d8d82c99 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/.coveragerc
:000000 100644 0000000000 e69de29bb2 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/.coveralls.yml
:000000 120000 0000000000 32d46ee883 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/README.md
:000000 100644 0000000000 e69de29bb2 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/app/__init__.py
:000000 100644 0000000000 9913cf33d3 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/app/settings.py
:000000 100644 0000000000 5e2b81a9e0 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/app/templates/home.html
:000000 100644 0000000000 fe75273a67 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/app/templates/home.jinja
:000000 100644 0000000000 684f42f15b A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/app/templates/only_files.html
:000000 100644 0000000000 e69de29bb2 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/app/tests/__init__.py
:000000 100644 0000000000 6945b8202f A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/app/tests/test_webpack.py
:000000 100644 0000000000 b1ad5f0625 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/app/urls.py
:000000 100644 0000000000 955db58197 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/app/views.py
:000000 100644 0000000000 ea9ff9513e A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/app/wsgi.py
:000000 100644 0000000000 c729eb7806 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/assets/js/app.jsx
:000000 100644 0000000000 27edc8b9de A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/assets/js/bad_index.jsx
:000000 100644 0000000000 be1d2f8774 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/assets/js/index.jsx
:000000 100644 0000000000 ba846789b9 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/assets/js/style.css
:000000 100644 0000000000 61d68fda96 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/db.sqlite3
:000000 100755 0000000000 722382522a A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/manage.py
:000000 100644 0000000000 f94fec28ce A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/package.json
:000000 100644 0000000000 5fcc953e67 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/tox.ini
:000000 100644 0000000000 2be4e477ed A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/webpack.config.app2.js
:000000 100644 0000000000 6c16f7a457 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/webpack.config.error.js
:000000 100644 0000000000 1ae8d3cf32 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/webpack.config.gzipTest.js
:000000 100644 0000000000 153e3a5976 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/webpack.config.publicPath.js
:000000 100644 0000000000 ae0c4085c5 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/webpack.config.simple.js
:000000 100644 0000000000 477500ed0f A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/webpack.config.split.js
:000000 120000 0000000000 acec8a3481 A	desktop/core/ext-py/django-webpack-loader-0.5.0/tests/webpack_loader
:000000 100644 0000000000 d8c6d4768a A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/__init__.py
:000000 100644 0000000000 294e276d64 A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/apps.py
:000000 100644 0000000000 9f334b4adf A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/config.py
:000000 100644 0000000000 e69de29bb2 A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/contrib/__init__.py
:000000 100644 0000000000 38a530ca32 A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/contrib/jinja2ext.py
:000000 100644 0000000000 c071e67fa1 A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/errors.py
:000000 100644 0000000000 1257456d36 A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/exceptions.py
:000000 100644 0000000000 b366dc3afc A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/loader.py
:000000 100644 0000000000 c99094d39e A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/signals.py
:000000 100644 0000000000 e69de29bb2 A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/templatetags/__init__.py
:000000 100644 0000000000 d1e87ce7e5 A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/templatetags/webpack_loader.py
:000000 100644 0000000000 e7b7b2f361 A	desktop/core/ext-py/django-webpack-loader-0.5.0/webpack_loader/utils.py
:100644 100644 67c36ebb9f e768c05dfd M	desktop/core/src/desktop/settings.py
:000000 100644 0000000000 3f36a49298 A	desktop/core/src/desktop/static/desktop/js/hue-bundle-88f5760ed32fdd31e59e.js
:000000 100644 0000000000 e2e8e19833 A	desktop/core/src/desktop/static/desktop/js/hue-bundle-88f5760ed32fdd31e59e.js.map
:000000 100644 0000000000 2371ffbc9d A	desktop/core/src/desktop/static/desktop/js/hue-bundle-d5f45f241629b44678eb.js
:000000 100644 0000000000 ac2817ab06 A	desktop/core/src/desktop/static/desktop/js/hue-bundle-d5f45f241629b44678eb.js.map
:100644 100644 9bfe7d4076 81324ad6e0 M	desktop/core/src/desktop/static/desktop/js/hue.js
:100644 100644 19a78f7a55 6d84985d39 M	desktop/core/src/desktop/templates/hue.mako
:100644 100644 ce6167cf98 35bef70491 M	ext/thirdparty/README.md
:100644 100644 9caacc293b 10291bcc7d M	package-lock.json
:100644 100644 b81cacd7a2 5b8c5d7a44 M	package.json
:000000 100644 0000000000 30f025826a A	webpack-stats.json
:100644 100644 1c176d43e5 4359fac5dc M	webpack.config.js

Manual on Chrome

This is a rather big change and sorry for the size but I had to get to a stable state. It's currently in the branch "HUE-8687_jahlen"

  1. This introduces webpack (https://webpack.js.org/) for bundling and babel (https://babeljs.io/) for transpiling js files. This allows us to modularize js files as well as to use ES6 and next-gen js. The output is one js file that is compatible with all our targeted browsers.

  2. npm (https://www.npmjs.com/) is used for third-party js dependency management. Define dependencies in package.json or use npm install ...

  3. jQuery had to be updated to 3.3.1, I did a pass and fixed the issues mentioned in the migration guide but there could be some corner-cases I missed.

  4. The code is currently in a transition state which allows the bundle to live along side existing js code and we can gradually move js and dependencies to modules and the bundle. New js files now live under /src/desktop/js/ and not under /src/desktop/static/desktop anymore as wepback takes care of it and puts the bundled version under static.

  5. Development has change slightly, especially for working with webpack. There are 2 steps, one is npm install and the second is building the bundle. npm install is only needed one initial time and when adding new dependencies. For the webpack bundling there's a command to run that watches for changes and produces the bundle, a plugin, django-webpack takes care of updating the reference in the mako. So in the Hue folder:

> npm install
> ./node_modules/.bin/webpack --config webpack.config.js --watch

Alternatively one can run npm run webpack to build the bundle once.

Left to do:
- Testing
- Move the rest of the third-party dependencies to the bundle
- Gradually move our code to webpack as we go

Loading...