We're currently using submodules in our organization, but have had too many problems and would like to move away. We're considering using Bower to manage dependencies and just checking the code in to get rid of the submodules.
Since bower puts everything in the bower_components directory, this presents a small challenge when working with steal. We're currently trying this:
- <script>
- steal = {
- root: "/jmvc", // we know our root
- paths: {
- 'steal/dev/dev.js': 'bower_components/steal/dev/dev.js'
- }
- };
- </script>
- <script src="/jmvc/bower_components/steal/steal.js?..."></script>
And in stealconfig.js:
- steal.config({
- map: {
- "*": {
- "can": "bower_components/CanJS",
- 'jquery/jquery.js' : "jquery",
- "funcunit/": "bower_components/funcunit/",
- "jquery/": "bower_components/jquerypp/",
- "steal/": "bower_components/steal/",
- "bower_components/CanJS/util/util.js": "bower_components/CanJS/util/jquery/jquery.js"
- }
One problem is that our unit test pages are now broken and we will have to go rewrite all of them to include the path hack for steal/dev, so this doesn't seem like a great solution.
Is there a better way?