Skip to content
Commit 12070583 authored by Lukas Eipert's avatar Lukas Eipert Committed by Paul Gascou-Vaillancourt
Browse files

feat: Add utility class migration script

This adds a migration script for legacy utilities to tailwind utilities.

This was extracted from:
gitlab!154442



The idea is simple:
1. We give a list of files via stdin or iterate over all source files in
   the current directory or in a given list of directories.
2. We replace legacy utility class names with their tailwind equivalents
   (list maintained `bin/lib/tailwind_equivalents.js`). Note, not all
   legacy utils are mapped, but just the ones currently in use in the
   GitLab project and other important projects.
3. You test that the changes have the expected results. Migration
   strategy for larger projects might be folder by folder or route by
   route.

Co-authored-by: Mark Florian's avatarMark Florian <mflorian@gitlab.com>
Co-authored-by: default avatarPaul GV <pgascouvaillancourt@gitlab.com>
parent c3c6300c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment