-
-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Description
Since nette-forms is registered in bower repository, it would be really greate if netteForms.js could work with common js or amd environments.
Eg. I'm using browserify with gulp to build my js files. But it's little bit difficult with nette forms, because I have to use something like browserify-shim to actually simulate wanted behavior.
Prons:
- In common js or amd environment, Nette object will not be in global object
- Easy to use in these environments
- Nette is trying to encourage everyone to not use global services like old
Environment, so this is just another step 😉
Cons:
- Pull request will be for whole file, because all code needs to be wrapped in function
Good example is at nprogress package.
Edit
So even browserify-shim doesn't work
Metadata
Metadata
Assignees
Labels
No labels