1.0.4 • Published 11 months ago

@lukovio/wskit v1.0.4

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
11 months ago

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.

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.0

11 months ago