kutlugsahin / smooth-dnd

drag and drop library for javascript
MIT License
598 stars 146 forks source link

Update package field and dir structure #53

Closed kagawagao closed 5 years ago

kagawagao commented 5 years ago

firstly, thanks for your work, it’s a awesome dnd lib

but, we can do much better to make it benefit from bundle tools, ex: webpack/rollup.

so, I update the file structure and package field

new file structure:

| — src // source files
||
| — lib // commonjs build files
||
| —es // esnext build files
||
| — dist // umd build files
||
| — typings // typescript types

It generate three module types: ESNext/commonjs/UMD, so code can be readable for debug in development phase with webpack with sourceMap.