stoop
Version:
CSS-in-JS library with type inference, theme creation, and variants support.
89 lines • 2.77 kB
JSON
{
"name": "stoop",
"description": "CSS-in-JS library with type inference, theme creation, and variants support.",
"version": "0.2.1",
"author": "Jackson Dolman <mail@dolmios.com>",
"main": "./dist/index.js",
"repository": {
"type": "git",
"url": "https://github.com/dolmios/stoop.git"
},
"bugs": {
"url": "https://github.com/dolmios/stoop/issues"
},
"homepage": "https://github.com/dolmios/stoop#readme",
"dependencies": {
"react-polymorphic-types": "^2.0.0"
},
"devDependencies": {
"@types/node": "^22.17.0",
"@types/react": "^19.1.9",
"@types/react-dom": "^19.1.7",
"bun-types": "^1.2.19",
"eslint": "^9.32.0",
"eslint-config-dolmios": "^2.0.10",
"prettier": "^3.6.2",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"typescript": "^5.9.2"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.js"
}
},
"files": [
"dist"
],
"keywords": [
"css variables",
"css-in-ts",
"css-in-ts alternative",
"css-in-js",
"css-in-js alternative",
"emotion",
"emotion alternative",
"lightweight",
"minimal",
"next.js",
"nextjs",
"performance",
"react",
"react styling",
"stitches",
"stitches alternative",
"stitches-alternative",
"styled-components",
"styled-components alternative",
"styling",
"theme",
"theme switching",
"type-safe",
"typescript",
"variants"
],
"license": "MIT",
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"prettier": "eslint-config-dolmios/configs/prettier",
"sideEffects": false,
"type": "module",
"scripts": {
"build": "bun run build:clean && bun run build:js && bun run build:types && bun run build:copy-declarations",
"build:clean": "rm -rf dist",
"build:copy-declarations": "mkdir -p dist/types && cp src/types/react-polymorphic-types.d.ts dist/types/react-polymorphic-types.d.ts 2>/dev/null || true",
"build:js": "bun build ./src/index.ts --outdir ./dist --target browser --minify --jsx=react --splitting --external react --external react-dom",
"build:types": "bunx tsc src/index.ts src/**/*.ts --declaration --emitDeclarationOnly --outDir dist --skipLibCheck --jsx react-jsx --module ESNext --moduleResolution bundler --target ES2022 --lib dom,dom.iterable,esnext --rootDir src",
"dev": "bun run build && bun --bun preview/index.html",
"format": "prettier --write src preview",
"kill": "lsof -ti:3000,420 | xargs kill -9 2>/dev/null || true",
"lint": "eslint . --ext .ts,.tsx --fix",
"test": "bun test",
"test:coverage": "bun test --coverage",
"test:watch": "bun test --watch"
}
}