This CLI helps you to migrate projects from the deprecated Angular Flex-Layout library to tailwindcss utility classes. This package has for goal to cover all cases seen in the Angular Flex-Layout library.
:construction: This project is still under development. Use it at your own risks. :construction:
Install the package globally using npm:
npm i -g flex-layout-to-tailwind
You can use the CLI using:
fltt
Or you can directly provide the input of your project as an option:
fltt --input ./path/to/your/project
You can also add debug option:
fltt --input ./path/to/your/project --debug
You can also install dependencies by force if dependencies are not matching (by default this flag is false):
fltt --input ./path/to/your/project --forceInstallDependencies
Flex-Layout has two APIs: a static and a responsive one. The first one is used to handle fixed values, the second one adds breakpoints to handle responsiveness.
This following tables show all attributes covered by the migration from this CLI.
Flex-Layout Attribute | Static API | Responsive API |
---|---|---|
fxLayout | :white_check_mark: | :white_check_mark: |
fxLayoutAlign | :white_check_mark: | :white_check_mark: |
fxLayoutGap | :white_check_mark: | :white_check_mark: |
gdAlignColumns | :x: | :x: |
gdAlignRows | :x: | :x: |
gdAreas | :x: | :x: |
gdAuto | :x: | :x: |
gdColumns | :x: | :x: |
gdGap | :x: | :x: |
gdGridAlign | :x: | :x: |
gdRows | :x: | :x: |
Flex-Layout Attribute | Static API | Responsive API |
---|---|---|
fxFlex, fxGrow, fxShrink | :white_check_mark: | :white_check_mark: |
fxFlexOrder | :white_check_mark: | :white_check_mark: |
fxFlexOffset | :white_check_mark: | :white_check_mark: |
fxFlexAlign | :white_check_mark: | :white_check_mark: |
fxFlexFill, fxFill | :white_check_mark: | No API |
gdArea | :x: | :x: |
gdColumn | :x: | :x: |
gdRow | :x: | :x: |
gdGridAlign | :x: | :x: |
Flex-Layout Attribute | Static API | Responsive API |
---|---|---|
fxHide | :white_check_mark: | :white_check_mark: |
fxShow | :white_check_mark: | :white_check_mark: |
ngClass | :x: | :x: |
ngStyle | :x: | :x: |
imgSrc | :x: | :x: |
Want to report a bug or contribute some code? Amazing! Please read up on our guidelines for contributing.
Please read and follow our Code of Conduct.
This project is licensed under the MIT License.