UNPKG

rd-pagination.js

Version:

The highly customizable JS pagination class.

24 lines (17 loc) 1.04 kB
## Start development 1. Delete file **assets/js/rd-pagination.min.js** and **assets/js/rd-pagination.min.js.map** for edit JS file and see changes immediately. ----- ## Finish development ### Update class constructor's options. 1. From main folder in this repo. Use command `npm run jsdoc2md -- "assets/js/rd-pagination.js" > "rd-pagination.js-doc.md"` 2. Copy markdown to readme file below `### Options` section. ### Minify JS 1. Use this command: `npm run terser -- "assets/js/rd-pagination.js" --compress --comments --source-map "url='rd-pagination.min.js.map'" --output "assets/js/rd-pagination.min.js"`. Or easier is to run command: `npm run minify`. 2. And then run test command `npm run test`. ### Publish To publish this package to node package manager please follow instruction. 1. Update the version number in **package.json** and **assets/js/rd-pagination.js**. 2. Make sure that you minify with new version. Also check the options on readme either. 2. Commit and push to Github. 3. run `npm publish` command.