Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ wskit Public

Collection of JavaScript modules designed to simplify working with commonly used functions and elements on web pages

License

Notifications You must be signed in to change notification settings

lukov-io/wskit

Repository files navigation

WSKit

Description

wskit is a collection of JavaScript modules designed to simplify working with commonly used functions and elements on web pages. The modules can be connected individually, allowing flexible control over the functionality of your project.

Installation

You can install the entire package via npm:

npm install @lukovio/wskit

List of Modules

cookie

A module for working with cookies: setting and retrieving values.

tabs

A module for implementing tabs with various behavior modes.

accordion

A module for creating accordions with the ability to display one or multiple open items.

readMore

A module for hiding and showing long texts with a "Read More" button.

devices

A module for detecting the type of device (mobile or desktop).

Testing and Running Examples

For local development and testing of modules, a local HTTP server is provided. This allows you to view examples and run tests.

Commands

  • dev: Runs the project in development mode using Rollup and watches for changes.
$ npm run dev
  • build: Builds the project for production using Rollup and places the compiled files in the dist folder.
$ npm run build
  • start-server: Starts a local server using http-server on port 3001.
$ npm run start-server
  • cypress: Opens the Cypress interface for manual test execution.
$ npm run cypress
  • tests: Starts a local server and runs the Cypress tests, stopping the server after the tests complete.
$ npm run tests
  • dev-tests: Starts a local server and opens the Cypress interface for manual testing.
$ npm run dev-tests
  • jekyll-build-incremental: Copies built files to the site and performs an incremental Jekyll build.
$ npm run jekyll-build-incremental
  • jekyll-serve: Copies built files to the site and starts the Jekyll server on port 8080.
$ npm run jekyll-serve
  • jekyll-build: Copies built files to the site and performs a Jekyll build.
$ npm run jekyll-build
  • copy-build-to-site: Builds the project and copies the compiled files to site/assets/js.
$ npm run copy-build-to-site

Tests cover the main functionalities of each module and check operation in different modes.

Notes

Each module can be connected individually and used as an independent component. Additional examples and detailed documentation are available for each module.

About

Collection of JavaScript modules designed to simplify working with commonly used functions and elements on web pages

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •