UNPKG

easy-toggle-state

Version:

A tiny JavaScript library to easily toggle the state of any HTML element in any contexts, and create UI components in no time.

74 lines (73 loc) 2.14 kB
{ "name": "easy-toggle-state", "version": "1.16.0", "license": "MIT", "description": "A tiny JavaScript library to easily toggle the state of any HTML element in any contexts, and create UI components in no time.", "main": "src/main/main.js", "keywords": [ "toggle", "switch", "accessibility", "ui components", "dropdown", "modal", "tooltip", "navigation button", "lightbox", "tabs", "checkbox", "radio" ], "author": "Matthieu Bué <https://twikito.com>", "repository": { "type": "git", "url": "git+https://github.com/Twikito/easy-toggle-state.git" }, "bugs": { "url": "https://github.com/Twikito/easy-toggle-state/issues" }, "homepage": "https://twikito.github.io/easy-toggle-state/", "scripts": { "filesize-for-doc": "node tasks/generate-file-size.js", "demos-for-doc": "node tasks/generate-demo-database.js", "doc": "browser-sync start --server --files 'docs/**/*.*' --startPath '/docs'", "precommit": "lint-staged", "lint": "eslint src", "lint:fix": "eslint --fix src", "prettier": "prettier --debug-check src/**/*.js", "prettier:write": "prettier --write src/**/*.js", "test": "npm run lint", "clean": "del-cli --force dist", "bundle:es6": "cross-env NODE_ENV=es6 rollup -c", "bundle:es6:min": "cross-env NODE_ENV=es6 OUT_STYLE=min rollup -c", "bundle:es5": "cross-env NODE_ENV=es5 rollup -c", "bundle:es5:min": "cross-env NODE_ENV=es5 OUT_STYLE=min rollup -c", "build": "npm test && npm run clean && npm-run-all -p bundle:** && npm run filesize-for-doc" }, "lint-staged": { "src/**/*.js": [ "prettier --write", "eslint --fix", "git add" ] }, "dependencies": {}, "devDependencies": { "@babel/core": "^7.12.10", "@babel/preset-env": "^7.12.11", "browser-sync": "^2.26.13", "cross-env": "^7.0.3", "del-cli": "^3.0.0", "eslint": "^7.16.0", "gzip-size": "^6.0.0", "husky": "^4.3.6", "lint-staged": "^10.5.3", "npm-run-all": "^4.1.5", "prettier": "^2.2.1", "rollup": "^2.35.1", "rollup-plugin-babel": "^4.3.3", "rollup-plugin-license": "^2.2.0", "rollup-plugin-replace": "^2.2.0", "rollup-plugin-terser": "^7.0.2" } }