Fresh D10 Project + Custom Theme Creation

under review 230530

Creating a new D10 project

Use any option you prefer:

  1. Option A: Download Drupal 10 directly: drupal 10.0.0

  2. Option B: Use Composer Using Composer to Install Drupal and Manage Dependencies

    1. If you have composer globally:

      composer create-project drupal/recommended-project my_site_name_dir
    2. Change my_site_name_dir to an appropriate name for your project.

  3. Via Docker - docker run --rm -i --tty -v $PWD:/app composer create-project drupal/recommended-project my_site_name_dir --ignore-platform-reqs

Creating a new custom theme

  1. Run this command from your project’s root:

    php core/scripts/drupal generate-theme my_new_theme
    1. Change my_new_theme to an appropriate name for your project.

      If you would like to add a name and description at the same time, run this instead:

      php core/scripts/drupal generate-theme my_new_theme --name "My New Theme" --description "Custom theme generated from a starterkit theme" --path themes/custom

       

  2. If you have an existing theme from Drupal 9 that you would like to bring over, please read our guide on how to update it to be compatible with Drupal 10: Custom Theme | Dart SASS + Node 16

  3. Update composer.json file, in project root.

    1. Ensure to include drush if you would like to use it - "drush/drush": "^11.4" . You can also run composer require drush/drush

  4. Create a Lando, or DDev project.

    1. https://docs.drupalcommerce.org/commerce2/developer-guide/install-update/quick-start

    2. https://ddev.readthedocs.io/en/latest/users/quickstart/#craft-cms

    3. How can I create and load a second database in ddev?

  5. Start the project.


Additional, helpful links:

How to switch Node.js versions with NVM - LogRocket Blog

Review History

Who

When

Status

Who

When

Status

 

 

 

Bob

20230530

Reviewed, it is a good starting point, but doesn’t yet have the content promised in the title.