Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

Work with Browserify #76

Open
timothyjlaurent opened this issue Dec 16, 2014 · 6 comments
Open

Work with Browserify #76

timothyjlaurent opened this issue Dec 16, 2014 · 6 comments

Comments

@timothyjlaurent
Copy link

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!

@dustingetz
Copy link
Contributor

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.

@dustingetz
Copy link
Contributor

So to be clear, requirejs/AMD is optional.

@timothyjlaurent
Copy link
Author

Thanks, that helps a lot!

@newyankeecodeshop
Copy link
Contributor

Is there anything we need to do here?

@newyankeecodeshop
Copy link
Contributor

@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?

@dustingetz
Copy link
Contributor

I think you may be right for almond.js, require.js will be needed at runtime if the concatenated build is ommitted

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants