There have been answers here and here, but they're about using NPM modules whilst my problem involves isomorphic internal code, where I want to share routes between brunch/backbone and node/express. But, if this is a dupe, then apologies in advan...
I'm using the default source mapping built into Brunch. I see the files fine, but I cannot hit breakpoints within the source mapped files. Using the Javascript access to the debugger via debugger; works, which leads me to believe it's somethi...
I have Brunch set up for ease of compiling JS together, but want to also be able to use a node.js module with require.  After trying for a while, I'm stumped.  I want to be able to do something like this:  var myJSfile1 = require('foo');...
I wanted to try out Brunch and am having some trouble getting my compiled JS files to execute in the browser.   The file gets compiled and loaded by the page into the browser. If I stick an alert or a console log in the source files and do a build, t...
I want all vendor code to be wrapped in AMD modules. I have defined this section in my config.coffee:  modules:     wrapper: 'amd'     definition: 'amd'   But it seems like brunch uses AMD optimizer only for 'app' folder files...
Update:   For anyone interested in using Brunch with AngularJS I've put together a seed project angular-brunch-seed   I'm using Brunch with AngularJS. AngularJS provides a module system so the need for importing file using commonJS / AMD i...
I'm building a hybrid web application with Django on the back end and Backbone on the front end.   The structure is as follows: I generate all the HTML in Django templates, use request.is_ajax to decide which templates to return, and use Backbone...
We want to use the same build system across multiple projects. I have a working brunch configuration file that I want to put in a git submodule, so that that submodule can be referenced in multiple projects and changes are easily propagated (less fra...
In an application generated by Brunch.io, how do we run tests? I would like to run them via the command line.   For eg., the todos application has quite exhaustive test coverage. But its Cakefile is empty. When I run 'cake test', it doesn'...
I am using require.js as part of a brunch project. This code is throwing the error:   ;require.config({ // require.config is not a function paths: {    jquery: "lib/jquery",    underscore: "lib/underscore",    backbone: "lib/backb...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.