@mahozad/theme-switch
Version:
Animated toggle button to switch between light/dark/system theme.
88 lines (87 loc) • 2.25 kB
JSON
{
"devDependencies": {
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-run": "^2.1.0",
"@rollup/plugin-strip": "^2.1.0",
"babel-plugin-rewire-test-env-only": "^1.0.0",
"clean-css": "^5.2.4",
"eslint": "^8.10.0",
"html-minifier": "^4.0.0",
"jest": "^27.5.1",
"jest-html-reporter": "^3.4.2",
"jest-image-snapshot": "^4.5.1",
"jest-junit": "^13.0.0",
"jest-puppeteer": "^6.1.0",
"puppeteer-core": "^13.4.0",
"rollup": "^2.70.0",
"rollup-plugin-terser": "^7.0.2"
},
"scripts": {
"test": "jest --env=node --colors test",
"test-changed": "jest --env=node --colors --only-changed test",
"test-continuous": "jest --env=node --colors --watch-all test",
"test-with-coverage": "jest --env=node --colors --coverage test",
"lint": "eslint --color dist/theme-switch.js",
"lint-html": "eslint --format html --output-file lint.html dist/theme-switch.js",
"prepublishOnly": "npm test"
},
"babel": {
"plugins": [
"rewire-test-env-only"
]
},
"jest": {
"verbose": true,
"reporters": [
"default",
[
"jest-junit",
{
"outputName": "test-report.xml"
}
],
[
"jest-html-reporter",
{
"pageTitle": "Test Report"
}
]
],
"preset": "jest-puppeteer",
"testURL": "http://localhost/"
},
"name": "@mahozad/theme-switch",
"version": "1.5.2",
"description": "Animated toggle button to switch between light/dark/system theme.",
"main": "dist/theme-switch.js",
"files": [
"dist/"
],
"unpkg": "dist/theme-switch.min.js",
"jsdelivr": "dist/theme-switch.min.js",
"keywords": [
"dark",
"dark-mode",
"dark-theme",
"theme-toggle",
"theme-toggler",
"theme-switch",
"theme-switcher",
"custom-element",
"web-component"
],
"homepage": "https://mahozad.ir/theme-switch/",
"repository": {
"type": "git",
"url": "https://github.com/mahozad/theme-switch.git"
},
"bugs": {
"url": "https://github.com/mahozad/theme-switch/issues"
},
"author": {
"name": "Mahdi Hosseinzadeh",
"email": "legacyazd@gmail.com",
"url": "https://mahozad.ir"
},
"license": "Apache-2.0"
}