UNPKG

twin.macro

Version:

Twin blends the magic of Tailwind with the flexibility of css-in-js

135 lines (134 loc) 4.04 kB
{ "name": "twin.macro", "version": "3.4.1", "description": "Twin blends the magic of Tailwind with the flexibility of css-in-js", "main": "macro.js", "types": "types/index.d.ts", "scripts": { "dev": "concurrently npm:dev:* -p none", "dev:macro": "NODE_ENV=dev nodemon -q --watch 'src/**/*.ts' --watch package.json -x \"npm run build:macro\" --delay .01", "dev:sandbox": "NODE_ENV=dev nodemon -q --watch sandbox/in.tsx --watch package.json --watch macro.js -x \"npm run build:sandbox\" --delay .01", "build": "npm run build:macro", "build:macro": "microbundle -i src/macro.ts -f cjs -o ./macro.js --target node", "build:sandbox": "babel sandbox/in.tsx --out-file sandbox/out.tsx", "test": "npm run build && jest && npm run test:types", "test:types": "tsc -b ./types/tsconfig.json", "test:update": "npm run build && jest --u", "prepublishOnly": "npm run build" }, "nodemonConfig": { "ignore": [], "watch": [ "src" ], "ext": "ts", "delay": "0" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "engines": { "node": ">=16.14.0" }, "lint-staged": { "*.{js,ts,jsx,tsx}": [ "eslint src --cache --fix", "jest plugin.test.js" ], "*.{js,ts,jsx,tsx,json,md}": [ "prettier --write" ] }, "files": [ "macro.js", "types/index.d.ts" ], "repository": { "type": "git", "url": "git+https://github.com/ben-rogerson/twin.macro.git" }, "keywords": [ "emotion", "styled-components", "stitches", "goober", "tailwind", "tailwindcss", "css-in-js", "babel-plugin", "babel-plugin-macros" ], "author": "Ben Rogerson <info@benrogerson.dev>", "license": "MIT", "bugs": { "url": "https://github.com/ben-rogerson/twin.macro/issues" }, "homepage": "https://github.com/ben-rogerson/twin.macro#readme", "peerDependencies": { "tailwindcss": ">=3.3.1" }, "dependencies": { "@babel/template": "^7.22.15", "babel-plugin-macros": "^3.1.0", "chalk": "4.1.2", "lodash.get": "^4.4.2", "lodash.merge": "^4.6.2", "postcss-selector-parser": "^6.0.13" }, "devDependencies": { "@babel/cli": "^7.19.3", "@babel/plugin-syntax-jsx": "^7.18.6", "@babel/preset-typescript": "^7.18.6", "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", "@tailwindcss/aspect-ratio": "^0.4.2", "@tailwindcss/container-queries": "^0.1.0", "@tailwindcss/forms": "^0.5.3", "@tailwindcss/typography": "^0.5.7", "@types/babel-plugin-macros": "^2.8.5", "@types/didyoumean": "^1.2.0", "@types/dlv": "^1.1.2", "@types/jest": "^29.2.2", "@types/lodash.flatmap": "^4.5.7", "@types/lodash.get": "^4.4.7", "@types/lodash.merge": "^4.6.7", "@types/react": "^18.0.25", "@types/string-similarity": "^4.0.0", "@types/styled-components": "^5.1.26", "@typescript-eslint/eslint-plugin": "^5.42.0", "@typescript-eslint/parser": "^5.42.0", "babel-plugin-tester": "^10.1.0", "concurrently": "^7.5.0", "daisyui": "^2.38.0", "escalade": "^3.1.1", "eslint": "^8.26.0", "eslint-config-prettier": "^8.5.0", "eslint-config-xo": "^0.42.0", "eslint-config-xo-react": "^0.27.0", "eslint-config-xo-space": "^0.33.0", "eslint-config-xo-typescript": "^0.53.0", "eslint-plugin-chai-friendly": "^0.7.2", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.4", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.31.10", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-unicorn": "^44.0.2", "glob-all": "^3.3.0", "husky": "4.3.8", "jest": "^29.2.2", "lint-staged": "^13.0.3", "microbundle": "^0.15.1", "nodemon": "^2.0.20", "prettier": "^2.8.7", "react": "^18.2.0", "string-similarity": "^4.0.4", "styled-components": "^5.3.6", "tailwindcss-typography": "3.1.0", "ts-jest": "^29.0.3", "ts-node": "^10.9.1", "typescript": "^4.8.4" } }