oakmac / chessboardjs

JavaScript chessboard
https://chessboardjs.com
MIT License
2k stars 406 forks source link

npm support (CommonJS and ES6) #232

Open discapes opened 2 years ago

discapes commented 2 years ago

Basically how it works is the main code is still in lib/chessboard.js. lib/ also has 3 wrapper files for different environments (CommonJS, ES6 and browser). The build script minifies lib/chessboard.js and wraps it and outputs the files to dist/. I published the package to npm, and instructed on the usage in README.md and the website download page.