Next time please provide RE for migrations

PrimeFlex is a lightweight responsive CSS utility library to accompany Prime UI libraries and static webpages
Post Reply
Mc128k
Posts: 10
Joined: 08 Jan 2018, 00:21

08 Apr 2022, 09:37

Just as a suggestion (and because I'm crafting them by hand to migrate a large project), it'd be nice to have some regular expressions to help migrating library versions. Primefaces has the habit of changing frequently class names it seems.

An example:

Code: Select all

p-d-flex flex
p-flex-row flex-row
p-flex-column flex-column
p-flex-md-row md:flex-row
p-field-checkbox field-checkbox
p-align-baseline align-items-baseline
p-align-center align-items-center
p-justify-center justify-items-center
p-justify-end justify-items-end
p-ai-baseline align-items-baseline
p-ai-start align-items-start
p-ai-center align-items-center
p-ai-end align-items-end
p-jc-between justify-content-between
p-jc-end justify-content-end
p-jc-center justify-content-center
p-jc-md-between md:justify-content-between
p-jc-lg-between lg:justify-content-between
p-jc-xl-between xl:justify-content-between
p-jc-sm-between sm:justify-content-between
p-formgrid formgrid
p-col-([0-9]+) col-$1
p-md-([0-9]+) md:col-$1
p-lg-([0-9]+) lg:col-$1
p-sm-([0-9]+) sm:col-$1
p-xl-([0-9]+) xl:col-$1
p-offset-([0-9]+) col-offset-$1
p-md-offset-([0-9]+) md:col-offset-$1
p-lg-offset-([0-9]+) lg:col-offset-$1
p-xl-offset-([0-9]+) xl:col-offset-$1
p-sm-offset-([0-9]+) sm:col-offset-$1
p-m([rlbt])-([0-9]+) m$1-$2
p-ml-auto ml-auto
p-mb-md-0 md:mb-0
p-grid grid
p-text-bold font-bold
p-col-fixed col-fixed
p-col col [careful]
p-field field

*.scss
[$.]p- 

*.html
[" ]p-
...
These can be fed to an IDE which then replaces interactively the old code, saving a lot of time.
Cheers
Last edited by Mc128k on 26 Apr 2022, 17:58, edited 1 time in total.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

26 Apr 2022, 04:03

Thanks a lot! We can do a study on that. Also, please see; viewtopic.php?f=148&t=68150&p=197356#p197356

Best Regards,

Mc128k
Posts: 10
Joined: 08 Jan 2018, 00:21

26 Apr 2022, 17:57

Oh yes, a CLI would be an awesome tool to use. Make sure next time to mention it in the migration guide. The important thing is for the user to have the best advice when starting from the changelog.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

27 Apr 2022, 10:40

Yes, you're right! I will talk about this with the team. Thanks a lot for your feedback!

Best Regards,

Post Reply

Return to “PrimeFlex”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests