DracoBlue / jsb

A very extendable Toolkit to inject Javascript Behaviour into rendered HTML without Inline Javascript. (jsb was formerly known as JsBehaviourToolkit)
http://dracoblue.net
Other
52 stars 8 forks source link

ES module #37

Open larslaade opened 2 years ago

larslaade commented 2 years ago

Hi, would you like to re-structure jsb as an ES module? I have currently a branch with half the work done. But some questions are still open:

What do you think?

DracoBlue commented 2 years ago

Hello!

Thanks a lot for your contribution!

I think for next jsb major version 4.x those suggestions are great.

So a native ES module is really appreciated. If you link in the readme to the old branch (we create one for people who need old support called release/3.x) that would be great.

About rollup or other formats: good idea!

About typescript: let's keep it non-typescript in terms of .js file. But if possible add a definitions file for ts to make integration for typescript users easier.

What do you think?

larslaade commented 2 years ago

Ok, glad you like the ideas.

Linking to a previous release is a good idea. Rollup: i will add this. Typescript definitions are a good compromise.

So happy coding for me i think :)

DracoBlue commented 2 years ago

Have fun!

DracoBlue commented 2 years ago

I will in your branch (when back from holidays) add github actions (feel free to add them on your own) for npm release logic. We need to get rid of travis-ci