4.2.2 • Published 3 years ago
@glideapps/prettier-plugin-glide-tailwind v4.2.2
Supports
- CSS (@apply directive)
- ReactJS (JSX, TSX)
- twin.macro
Go from this:
<div
tw="px-4 font-normal text-center w-32 h-32 object-cover mb-2 gp-sm:text-base gp-lg:text-lg gp-xl:(text-xl text-right)"
></div>
To this:
<div
tw="px-4 font-normal text-center text-s mw-32 h-32 object-cover mb-2
gp-lg:text-lg
gp-xl:(text-xl text-right)"
></div>
This plugin reads your tailwind.config.js
to sort tailwind classes in your project.
Installation
Install Prettier and the plugin into your project locally:
Glide engineers, please install this in /app
npm install --save-dev @glideapps/prettier-plugin-glide-tailwind
Testing locally
First thing to do is make sure you have modified the:
SET_CONFIG_PATH
NODE_CONFIG_PATH
that are found insrc/utils/testing-envs.ts
yarn install
yarn build
yarn package
npm run test
results will be saved to test_formatted.tsx
4.2.2
3 years ago
4.2.1
3 years ago
4.2.0
3 years ago
3.1.3
3 years ago
3.1.2
3 years ago
3.1.1
3 years ago
3.1.0
3 years ago
3.0.2
3 years ago
3.0.1
3 years ago
3.0.0
3 years ago
2.2.20
3 years ago
2.2.19
3 years ago
2.2.18
3 years ago
2.2.17
3 years ago
2.2.16
3 years ago
2.2.15
3 years ago
2.2.14
3 years ago
2.2.13
3 years ago
2.2.12
3 years ago