In brunch.io, the application contains two directories that get compiled. These are controlled in your brunch config file, like so:
javascripts:
defaultExtension: 'coffee'
joinTo:
'javascripts/app.js': /^app/
'javascripts/vendor.js': /^vendor/
I am wondering if it is possible to create a namespace along side of app.js/vendor.js and if so, how I would do that. I tried adding a directory next to app/vendor called namespace/, which contains the CoffeeScript files i want to compile. as well as adding this to the config file…
'javascripts/namespace.js': /^namespace/
- Can this be done?
- If so, where am i going wrong?
UPDATE
there is a ./public/namespace/ being created with my namespace.coffee file. it appears this is just not registering w/ the watcher? or…?
It won’t work. Brunch currently only watches top-level
app,vendorandtest. I think i’ll change this in future release.But you can do this: