UNPKG

gatsby-plugin-theme-switcher

Version:
92 lines (91 loc) 2.6 kB
{ "name": "gatsby-plugin-theme-switcher", "version": "1.0.0", "description": "React theme switcher with hooks and preventing the initial flash", "main": "index.js", "files": [ "index.js", "gatsby-browser.js", "gatsby-node.js", "gatsby-ssr.js", "theme-script.js", "theme-context.js", "use-local-storage.js" ], "scripts": { "build": "babel src --out-dir . --verbose", "clean": "rimraf lib", "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" .", "prebuild": "npm run clean", "prepare": "cross-env NODE_ENV=production npm run build", "pretest": "npm run build", "test:lint": "eslint --ignore-path .gitignore --ext js,jsx,snap,md .", "test:unit": "jest", "test": "npm run test:unit", "test:watch": "jest --watch --onlyChanged", "posttest": "npm run test:lint" }, "repository": { "type": "git", "url": "git+https://github.com/infoxicator/gatsby-plugin-use-theme-switcher.git" }, "keywords": [ "gatsby", "gatsby-plugin", "theme", "dark-mode" ], "author": { "name": "Ruben Casas", "email": "ruben@infoxication.net" }, "contributors": [ "Samuel Larsen-Disney <s.larsendisney@gmail.com> (https://github.com/slarsendisney)" ], "license": "MIT", "bugs": { "url": "https://github.com/infoxicator/gatsby-plugin-use-theme-switcher/issues" }, "homepage": "https://github.com/infoxicator/gatsby-plugin-use-theme-switcher#readme", "dependencies": { "prop-types": "^15.7.2", "terser": "^4.8.0" }, "devDependencies": { "@babel/cli": "7.12.8", "@babel/core": "7.12.9", "@commitlint/cli": "11.0.0", "@commitlint/config-conventional": "11.0.0", "babel-eslint": "^10.1.0", "babel-preset-gatsby-package": "0.7.0", "cross-env": "7.0.2", "eslint": "^7.14.0", "eslint-config-airbnb": "^18.2.1", "eslint-config-prettier": "^6.15.0", "eslint-config-react-app": "^6.0.0", "eslint-plugin-flowtype": "^5.2.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jest": "^24.1.3", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-react": "^7.21.5", "eslint-plugin-react-hooks": "^4.2.0", "gatsby": "2.27.3", "gatsby-plugin-utils": "0.4.0", "husky": "4.3.0", "jest": "^26.6.3", "prettier": "2.2.0", "react": "17.0.1", "react-dom": "17.0.1", "rimraf": "^2.7.1" }, "peerDependencies": { "gatsby": "^2.0.0", "react": "^16.8.0 || ^17.0.0" }, "husky": { "hooks": { "pre-commit": "npm test", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } } }