Debugging drupalSettings

To see what will drupalSettings output you can put console log in drupalSettingsLoader.js  and this will give you info what is present in drupalSettings vars that is drupal pushing to JS 

Decoupling simple config or any other drupal data

Using JSON API or commerce api or even JSON API resources is great but it is limited to entities and whole architecture is aimed at them. This is fine in most cases but what if you want to output some config or some random data. You will need to get creative a bit. So what we do is then make custom drupal 8 controller, you setup the usual router yml like

Recursively renaming files and folders with PHP

I wanted to rename lots of filed and folders for my modules, but not to do it manually I made an php script that does this for me. Also I used my IDE to rename code(class names and methods). So just replace root where is the code you want to change file and folder names and do that for strings also.

What to use, text list or taxonomy term?

To force users or administrators to have predefined list of what to put into some field you will need to use one of this 2 solutions, text list or taxonomy term reference field.