emulsify-ds / emulsify-drupal

Drupal theme built with Storybook and Webpack
GNU General Public License v2.0
92 stars 42 forks source link

"emulsify" String Replace on INIT #267

Open MinhInBlack opened 2 years ago

MinhInBlack commented 2 years ago

emulsify version (see releases): 4.2.2

node version: 16.13

npm (or yarn) version: 8.1.2

What you did: I executed emulsify init to create a new theme called, "mytheme".

What happened: Emulsify doesn't change every instance of "emulsify" to their respective theme name. Requires manual change. Example: In my rendered theme (mytheme), there are twig functions {{ attach_library('emulsify/default') }} that hasn't been updated to the new theme name. Also in .theme file, my preset theme functions (ex. emulsify_preprocess_page()) does not get updated as well.

Suggested solution: Maybe have string replace include twig files and .theme files.