Hello Roberto!
Use the following app.json to build your application into
application.js and all libraries to bpm_libs.js:
https://gist.github.com/1297490
Hope that it helps you. Keep in mind that i've disabled minified and
changed spaded packaging to 'function', because i would like to have
ability to debug all stuff. If you need a production version add
minifier: 'uglify-js' and change "spade:format" key to package.
If you need to add your application in QUnit test do it by adding a
file with an underscore as first letter (it will be loaded first) into
test folder and put a string to it:
document.write('<script type="text/javascript" src="/assets/
application.js"></script>');
Then require your package in test:
spade.ready(function() {
spade.require('application_name/views/testing_view_name');
});
Hope that helps.
Cheers,
Oleg