css-vars-hook
Version:
css-vars-hook contains React hooks to set and manipulate CSS custom properties from React component.
121 lines (120 loc) • 3.55 kB
JSON
{
"name": "css-vars-hook",
"private": false,
"version": "0.7.9",
"license": "MIT",
"engines": {
"node": ">=16"
},
"description": "css-vars-hook contains React hooks to set and manipulate CSS custom properties from React component.",
"keywords": [
"react",
"reactjs",
"hooks",
"css",
"css-vars",
"css-in-js"
],
"repository": {
"type": "git",
"url": "https://github.com/morewings/css-vars-hook",
"directory": "/"
},
"homepage": "https://morewings.github.io/css-vars-hook",
"bugs": {
"url": "https://github.com/morewings/css-vars-hook/issues"
},
"type": "module",
"files": [
"dist"
],
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
}
},
"scripts": {
"dev": "vite",
"clean:lib": "rm -rf dist",
"build:lib": "vite build",
"build:demo": "vite build --config ./vite.config.build.ts --outDir ./demo",
"build": "run-s clean:lib build:lib",
"lint:code": "eslint src/** --report-unused-disable-directives",
"fix:code": "run-s 'lint:code --fix'",
"lint:style": "stylelint ./src/**/*.css",
"fix:style": "run-s 'lint:style --fix'",
"lint:types": "tsc --pretty --noEmit",
"test": "jest",
"preview": "vite preview",
"commitlint": "commitlint",
"semantic-release": "semantic-release",
"prepare": "is-ci || husky"
},
"peerDependencies": {
"react": ">=18.2.0",
"react-dom": ">=18.2.0"
},
"devDependencies": {
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@eslint/compat": "1.0.3",
"@eslint/js": "9.4.0",
"@semantic-release/commit-analyzer": "13.0.0",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "10.0.5",
"@semantic-release/npm": "12.0.1",
"@semantic-release/release-notes-generator": "14.0.0",
"@testing-library/jest-dom": "6.4.5",
"@testing-library/react": "15.0.7",
"@types/jest": "29.5.12",
"@types/lodash": "4.17.4",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "7.11.0",
"@typescript-eslint/parser": "7.11.0",
"@vitejs/plugin-react": "4.3.0",
"@yelo/rollup-node-external": "1.0.1",
"alias-hq": "6.2.3",
"classnames": "2.5.1",
"commitizen": "4.3.0",
"commitlint": "19.3.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "9.4.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.34.2",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-refresh": "0.4.7",
"eslint-plugin-ssr-friendly": "1.3.0",
"eslint-plugin-storybook": "0.8.0",
"husky": "9.0.11",
"identity-obj-proxy": "3.0.0",
"is-ci": "3.0.1",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"lint-staged": "15.2.5",
"npm-run-all2": "6.2.0",
"postcss": "8.4.38",
"postcss-preset-env": "9.5.14",
"prettier": "3.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"semantic-release": "24.0.0",
"stylelint": "16.6.1",
"stylelint-config-standard": "36.0.0",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.0",
"ts-jest": "29.1.4",
"ts-node": "10.9.2",
"typescript": "5.4.5",
"typescript-eslint": "7.11.0",
"vite": "5.2.12",
"vite-plugin-dts": "3.9.1"
}
}