1.0.0-beta.15 • Published 4 years ago
twcn3 v1.0.0-beta.15
twcn3
A cli utility for converting codebases upgrading from tailwindcss-classnames v2 to v3.
In tailwindcss-classnames v3, you're required to use new utility functions to compose your classes rather than a single classname or tw function. Depending on the size of your codebase, this can be an incredibly time-consuming task.
This utility does it with one command:
npx twcn3 convertMultiple Directories and/or files
npx twcn3 convert -s layouts
npx twcn3 convert -s pages
npx twcn3 convert -s index.jsCustom Config
npx twcn3 convert -t <path-to-built-types-file>Custom Import Alias
// sample.tsx
import tailwind from 'tailwindcss-classnames'npx twcn3 convert -a tailwindAll Options
--version- Show version number--help- Show help-t,--types <path-to-types>- The path to your built tailwindcss-classnames types file. Only required if you have custom classes.-s,--src <path-to-src>- The path to a directory or file to be converted. (default:src)-a,--alias <function-name>- The name used when importing the classnames function from your type file. (i.e. import tw from 'tailwindcss-classnames') (default:tw)
1.0.0-beta.15
4 years ago
1.0.0-beta.14
4 years ago
1.0.0-beta.13
4 years ago
1.0.0-beta.12
4 years ago
1.0.0-beta.11
4 years ago
1.0.0-beta.10
4 years ago
1.0.0-beta.9
4 years ago
1.0.0-beta.8
4 years ago
1.0.0-beta.7
4 years ago
1.0.0-beta.6
4 years ago
1.0.0-beta.5
4 years ago
1.0.0-beta.4
4 years ago
1.0.0-beta.2
4 years ago
1.0.0-beta.1
4 years ago