@pratapdd/kquery

1.1.5 • Public • Published

🚀 kQuery 🚀

A light-weight clone of your oldie goldie jQuery

Travis Codecov GitHub Workflow Semantic Release Commitizen friendly

npm latest version

kQuery A light-weight clone of your oldie goldie jQuery.

Table of contents : for Evaluation

Local Setup

Prerequisite

  • node v12.14.1 and above / for Yarn users
  • yarn v1.22.5

Steps to install

  • npm install /
  • yarn

Steps to run Tests

  • npm run test /
  • yarn test

Steps to commit

  • git commit and follow instructions to match the semenatic release commit format

code coverage

API Documentation github pages

Click here to go API Documentation

***Two new apis added

kCollection.before(kCollection | htmlString)***

kCollection.after(kCollection | htmlString)***

Playground to check library in action

Click here to go to playground

Npm repository here

Click here to go to npm artifactory

github link to check gitflow and releases repository here

Click here to go to github actions

Click here to go to github releases

Best Practices and Build setup

  • Eslint for lint
  • Prettier for better code file formatting
  • Jest for writing tests with coverage report
  • husky - precommit hook to run lint and test always during new commit changes.
  • added codecov support to publish coverage
  • added travis build for running build https://travis-ci.com/github/pratapdd/kQuery
  • I also tried another pipeline out of curiosity gitHub Actions and with that we can move away from travis and setup the workflow closely related to github. This gave advantages to create changeLog and release inside github and also with managing secrets
  • added commitizine and auto validation for commit messages and proper formatting of messages.
  • used rollup for bundling file to create bundles for various target environments
  • gitub pages for api documentation, presently put the documentation in different directory docs/ .We can put this on different branch for document release in future.

Future Enhancements

  • Introduce typescript for types.
  • auto generate API documentation out of codebase something like js-doc
  • Integrate Issues in github with proper ticketing in pull request template.

API

Below APIs will be made available by kQuery.

  • kQuery(cssSelectorString)

  • kCollection.replaceWith(kCollection)

  • kCollection.style(Object)

  • kCollection.remove()

  • kCollection.find(cssSelectorString)

  • kCollection.get()

  • kCollection.before(kCollection | htmlString)***

  • kCollection.after(kCollection | htmlString)***

***New APIs

Authors and Contributors

@pratapdd ... list awaiting awesome people like you

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Take your first steps by committing your changes and raise a pull request.

Backers

Thank you to all our backers! 🙏 [[Become a backer]

Readme

Keywords

Package Sidebar

Install

npm i @pratapdd/kquery

Weekly Downloads

1

Version

1.1.5

License

MIT

Unpacked Size

19.1 kB

Total Files

6

Last publish

Collaborators

  • pratapdd