twin.macro

v3.4.1
Twin blends the magic of Tailwind with the flexibility of css-in-js
emotion styled-components stitches goober tailwind tailwindcss css-in-js babel-plugin babel-plugin-macros and 1 more...

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
npm i twin.macro

Metadata

  • MIT
  • >=16.14.0
  • Ben Rogerson
  • released 1/19/2024

Downloads

Maintainers