css-vars-hook
Version:
css-vars-hook contains React hooks to set and manipulate CSS custom properties from React component.
122 lines (121 loc) • 3.6 kB
JSON
{
"name": "css-vars-hook",
"private": false,
"version": "0.8.0",
"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",
"coverage": "run-s 'test --coverage'",
"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.7.1",
"@commitlint/config-conventional": "19.7.1",
"@eslint/compat": "1.2.8",
"@eslint/js": "9.24.0",
"@semantic-release/commit-analyzer": "13.0.1",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "11.0.1",
"@semantic-release/npm": "12.0.1",
"@semantic-release/release-notes-generator": "14.0.3",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.2.0",
"@types/jest": "29.5.14",
"@types/lodash": "4.17.16",
"@types/react": "18.3.20",
"@types/react-dom": "18.3.6",
"@typescript-eslint/eslint-plugin": "8.23.0",
"@typescript-eslint/parser": "8.23.0",
"@vitejs/plugin-react": "4.3.4",
"@yelo/rollup-node-external": "1.0.1",
"alias-hq": "6.2.4",
"classnames": "2.5.1",
"commitizen": "4.3.1",
"commitlint": "19.7.1",
"cz-conventional-changelog": "3.3.0",
"eslint": "9.24.0",
"eslint-config-prettier": "10.1.1",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-prettier": "5.2.6",
"eslint-plugin-react": "7.37.4",
"eslint-plugin-react-hooks": "5.2.0",
"eslint-plugin-react-refresh": "0.4.18",
"eslint-plugin-ssr-friendly": "1.3.0",
"eslint-plugin-storybook": "0.11.2",
"husky": "9.1.7",
"identity-obj-proxy": "3.0.0",
"is-ci": "4.1.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"lint-staged": "15.4.3",
"npm-run-all2": "7.0.2",
"postcss": "8.5.3",
"postcss-preset-env": "10.1.5",
"prettier": "3.5.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"semantic-release": "24.2.1",
"stylelint": "16.14.1",
"stylelint-config-standard": "36.0.1",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.3",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"typescript": "5.8.3",
"typescript-eslint": "8.23.0",
"vite": "6.2.6",
"vite-plugin-dts": "4.5.3"
}
}