Skip to content

Automatic Build Orders & Blacklisting

dcporter edited this page Sep 28, 2012 · 2 revisions

There is strong community desire for a future build-tools enhancement which would analyze your code, set the build order automatically, and automatically blacklist unused SproutCore frameworks, files, or code blocks. This would allow for the deprecation of sc_require() and all the hard work and tears that have been poured into it over the years.

The "Uglify" project (https://github.com/mishoo/UglifyJS) includes tools to analyze code and build a full tree.

Along with sc_require, several parts of the SproutCore framework have implemented build-order workarounds using strings to specify classes or objects that haven't loaded yet. These should be deprecated when no longer needed; as found they should be listed here:

  • The statechart "plugin" command allows you to specify a substate by string.
  • SC.Record.toOne and .toMany allows you to specify a record type by string.
Clone this wiki locally