Versal / shared-libs

DEPRECATED -- inlined in other repos now
0 stars 0 forks source link

Builds core files #10

Closed rjz closed 10 years ago

rjz commented 10 years ago

Breaks grunt build in player if cdn.mathjax is left in. Fix with:

diff --git a/Gruntfile.coffee b/Gruntfile.coffee
index d2ad5d1..16394d7 100644
--- a/Gruntfile.coffee
+++ b/Gruntfile.coffee
@@ -172,8 +172,8 @@ module.exports = (grunt) ->
           wrap: false
           out: "dist/scripts/player-bundle.js"
           shim: libsConfig.shim
-          paths: libsConfig.paths
-          exclude: _.keys libsConfig.paths
+          paths: _.omit _.object(_.map(libsConfig.rawPaths, (f, k) -> [k, "shared-libs/lib/#{f}"])), 'cdn.mathjax'
+          exclude: _.keys _.omit libsConfig.paths, 'cdn.mathjax'

     copy:
       jsApi:
rjz commented 10 years ago

Probably worth extending the general mini / uglification to all library files. We could just store binary copies, but there may be some advantage to leaving all symbols (e.g., 'ajax' or 'trigger') intact until any multi-dep files are built and only uglifying as the very last step.