This PR contains the major rewrite for the library. As of this moment, the changes are as the following:
[x] New build and publish system. Previously, this library used Webpack for bundling etc.—now it only uses tsc to compile the TypeScript files to output all files to the lib folder.
[x] ESM and CommonJS are now supported. There are 2 new TypeScript configurations in the project, one is used for building ESM and the other is for building CommonJS.
[x] Updated Storybook. Previously, this library still used storiesOf, but now it is using Component Story Format (CSF), which was available starting from Storybook v5.
[x] Lots of optimizations, bundle size in particular. As reported by Bundlephobia for the Alpha version, the minified size is down to just a quarter of what it was, whereas the minified + gzip is down to a third of what it was.
[x] Replaced font-awesome CSS with the React components of Font Awesome. This allowed us to enable tree shaking, which resulted in the optimization point above.
[x] Drop support for all other libraries. This library will now only support Bootstrap tables.
Next to-dos would be:
Implement auto-generation of component documentation
Implement auto-push Storybook to gh-pages when main branch is updated
Closes https://github.com/imballinst/react-bs-datatable/issues/81. Closes https://github.com/imballinst/react-bs-datatable/issues/80.
This PR contains the major rewrite for the library. As of this moment, the changes are as the following:
tsc
to compile the TypeScript files to output all files to thelib
folder.storiesOf
, but now it is using Component Story Format (CSF), which was available starting from Storybook v5.font-awesome
CSS with the React components of Font Awesome. This allowed us to enable tree shaking, which resulted in the optimization point above.Next to-dos would be:
gh-pages
whenmain
branch is updated