form-serialize icon indicating copy to clipboard operation
form-serialize copied to clipboard

make npm compatible (without component)

Open ashaffer opened this issue 9 years ago • 4 comments

It'd be great if I could just npm install this without having to install component.

ashaffer avatar Aug 15 '15 22:08 ashaffer

Ah yeah, that'll be tricky since all the other deps here are also built with component.

dominicbarnes avatar Aug 15 '15 22:08 dominicbarnes

Ya, hmm, it's also breaking my browserify build due to the overloaded use of require even when I do install component.

There is the automated npmcomponent project:

https://github.com/npmcomponent/yields-submittable https://github.com/npmcomponent/yields-reduce https://github.com/npmcomponent/component-value

If you just add those deps to the package.json, I think it should work, maybe?

EDIT: Except the names are slightly different. E.g. require('yields-submittable'), so would have to test for the environment in some way.

EDIT2: Actually, I suppose you could probably just run this project through the npmcomponent translation scripts: https://github.com/airportyh/npmcomponent

ashaffer avatar Aug 15 '15 22:08 ashaffer

The other trick here is that form-serialize is already taken in npm. :(

dominicbarnes avatar Sep 04 '15 17:09 dominicbarnes

@dominicbarnes Ah, that sucks. You could take the component- approach and do component-form-serialize although that's pretty long.

ashaffer avatar Sep 04 '15 18:09 ashaffer