Fix theme source theme vartheme_bs5 is not a valid starter kit when Create new Vartheme BS5 Cloned Generated Theme

Created on 11 August 2024, 3 months ago
Updated 10 September 2024, 2 months ago

Problem/Motivation

Following with Create new Vartheme BS5 Cloned Generated Theme

To generate a new theme from Vartheme BS5 using the starterkit/theme-generation script, run the following from Drupal's installation root:

cd PROJECT_DIR_NAME/docroot

Run the following Drupal Generate Theme script:

php core/scripts/drupal generate-theme new_theme_name --starterkit vartheme_bs5 --path themes/custom

Additionally, you can create the theme's human-readable name and it description with two optional arguments:

php core/scripts/drupal generate-theme new_theme_name \
  --starterkit vartheme_bs5 \
  --path themes/custom \
  --name "New Theme Name" \
  --description "Custom theme generated from Vartheme BS5 theme" 

Facing the following output

Generating theme new_theme_name (new_theme_name) from vartheme_bs5 starterkit.

[ERROR] Theme source theme vartheme_bs5 is not a valid starter kit.

Proposed resolution

Follow with the new Drupal core starterkit standard scanning method and format
Add a "vartheme_bs5.starterkit.yml" file with

ignore:
  - '/vartheme_bs5.starterkit.yml'
  - '/composer.json'
  - '/yarn.lock'
  - '/.git'
  - '/.gitlab'
  - '/scripts'
  - '/tests'
  - '/src/StarterKit.php'
  - '/README.md'
  - '/README.txt'
no_edit:
  - 'starterkit.md'
no_rename: []
info:
  version: 1.0.0

Remove Deprecated not used functions in the StarterKit class

Remaining tasks

  • βœ… File an issue about this project
  • βœ… Addition/Change/Update/Fix to this project
  • βœ… Testing to ensure no regression
  • βž– Automated unit/functional testing coverage
  • βœ… Developer Documentation support on feature change/addition

    Updated the Creating Your Own Theme doc page

  • βž– User Guide Documentation support on feature change/addition
  • βž– UX/UI designer responsibilities
  • βž– Accessibility and Readability
  • βœ… Code review from 1 Varbase core team member
  • βœ… Full testing and approval
  • βœ… Credit contributors
  • βœ… Review with the product owner
  • βœ… Update Release Notes and Update Helper on new feature change/addition
  • βœ… Release varbase-10.0.1 β†’ , vartheme_bs5-3.0.1 β†’

Varbase update type

  • βœ… No Update
  • βž– Optional Update
  • βž– Forced Update
  • βž– Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3467445 β†’ by duntuk β†’ : Fixed Theme source theme vartheme_bs5 is not a valid starter kit when Create new Vartheme BS5 Cloned Generated Theme
πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024