prometheusresearch-archive / react-forms

Forms library for React.
1.16k stars 112 forks source link

How do you build a bower package? #79

Closed krasnoukhov closed 9 years ago

krasnoukhov commented 9 years ago

I'm looking for a way to build current master similarly to the result of react-forms-build repo. Makefile does not seem to contain a command for that.

I've tried following: node ./node_modules/browserify/bin/cmd.js lib --standalone ReactForms -o react-forms.js, but it does not seem to produce the result as in react-forms-build.

I know I might sound stupid, but any help would be appreciated. Thanks!

bsr203 commented 9 years ago

finally with "6to5-loader?experimental" I could build except there were 2 errors (not bower but npm ). In lib/schema.js, I had to change returnvalidate(value, childrenValidation) to return super.validate(value, childrenValidation) at 2 places. Didn't test the functionality yet.

samlobel commented 9 years ago

@bsr203 did it work?

bsr203 commented 9 years ago

ya, it worked for the functionalities I tried so far. I only made the two changes I mentioned above.