In Contracts.coffee, it is easy to omit all contracts from the resulting Javascript by removing the --contracts flag in the build process.
In Javascript, I am not certain of the best way to do this. In particular, I can only have contracts enabled during testing, since they require e.g. Chrome to have experimental flags enabled.
In the browser, I include contracts.js via this RequireJS configuration excerpt:
Does this make sense? I'm obviously probably capable of forking & creating this myself, but was unsure of the relationship between Contracts.coffee and contracts.js and whether one repo or the other might be the place to do it, etc.
In Contracts.coffee, it is easy to omit all contracts from the resulting Javascript by removing the --contracts flag in the build process.
In Javascript, I am not certain of the best way to do this. In particular, I can only have contracts enabled during testing, since they require e.g. Chrome to have experimental flags enabled.
In the browser, I include contracts.js via this RequireJS configuration excerpt:
In a finished app, this could be replaced by
Does this make sense? I'm obviously probably capable of forking & creating this myself, but was unsure of the relationship between Contracts.coffee and contracts.js and whether one repo or the other might be the place to do it, etc.
Thoughts?