silverstripe-framework/admin/code
Sam Minnee 2e577ddb1d API Use Webpack
The bundle is generated by running “webpack” directly - gulp is no
longer needed as an intermediary. The resulting config is a lot shorter,
although more configuration is pushed into lib.js.

Modules are shared between javascript files as global variables.
Although this global state pollution is a bit messy, I don’t think it’s
practically any worse than the previous state, and it highlights the
heavy coupling between the different packages we have in place.
Reducing the width of the coupling between the core javascript and
add-on modules would probably be a better way of dealing with this than
replacing global variables with some other kind of global state.

The web pack execution seems roughly twice as fast - if I clear out my
framework/client/dist/js folder, it takes 13.3s to rebuild. However,
it’s not rebuilding other files inside dist, only the bundle files.

CSS files are now included from javascript and incorporated into
bundle.css by the webpack. Although the style-loader is helpful in some
dev workflows (it allows live reload), it introduces a flash of
unstyled content which makes it inappropriate for production.

Instead ExtractTextPlugin is used to write all the aggregated CSS
into a single bundle.css file. A style-loader-based configuration could
be introduced for dev environments, if we make use of the webpack live
reloader in the future.

Note that the following features have been removed as they don't appear to be
necessary when using Webpack:
 - UMD module generation
 - thirdparty dist file copying

LeftAndMain.js deps: Without it, ssui.core.js gets loaded too late,
which leads e.g. to buttons being initialised without this added behaviour.
2016-09-15 22:19:05 +12:00
..
AddToCampaignHandler_FormAction.php API Namespace all classes 2016-09-08 10:23:17 +12:00
AddToCampaignHandler.php Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
AdminRootController.php Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
CampaignAdmin.php Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
CMSBatchAction.php API Namespace all classes 2016-09-08 10:23:17 +12:00
CMSBatchActionHandler.php Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
CMSMenu.php API Namespace all classes 2016-09-08 10:23:17 +12:00
CMSMenuItem.php API Namespace all classes 2016-09-08 10:23:17 +12:00
CMSPreviewable.php API Namespace all classes 2016-09-08 10:23:17 +12:00
CMSProfileController.php Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
GroupImportForm.php API Namespace all classes 2016-09-08 10:23:17 +12:00
LeftAndMain_HTTPResponse.php Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
LeftAndMain_SearchFilter.php API Namespace all classes 2016-09-08 10:23:17 +12:00
LeftAndMain_TreeNode.php API Namespace all classes 2016-09-08 10:23:17 +12:00
LeftAndMain.php API Use Webpack 2016-09-15 22:19:05 +12:00
LeftAndMainExtension.php API Namespace all classes 2016-09-08 10:23:17 +12:00
MemberImportForm.php API Use Webpack 2016-09-15 22:19:05 +12:00
ModelAdmin.php Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
SecurityAdmin.php API Use Webpack 2016-09-15 22:19:05 +12:00