Open timothyjlaurent opened 9 years ago
the wingpan-forms
build will generate a file wingspan-forms.js
which is standalone - e.g. you can include it through a <script>
tag. The helloworld example shows how to do it if you want a working example.
So to be clear, requirejs/AMD is optional.
Thanks, that helps a lot!
Is there anything we need to do here?
@dustingetz In the bower.json file, shouldn't "require.js" and "almond.js" be under "devDependencies" and not "dependencies". They are not needed for production as your comment above states. In bower terms, they are just development dependencies, right?
I think you may be right for almond.js, require.js will be needed at runtime if the concatenated build is ommitted
I know this may be beyond the scope of this project, but I am beginning a React/Flux app using Reflux and the Browserify based workflow in the Flux Todomvc Tutorial.
I am pretty new to AMD but it looks rather like Angular dependency injection -- Is there a good way I could import wingspan-forms into by Browerify-based workflow?
Thanks!