Problem/Motivation
For the initial set up of SDDS, we copied over CivicTheme and checked in the build artifacts as well. This makes the codebase bloated.
Steps to reproduce
Proposed resolution
We should remove those build artifacts, add those build files/directories to .gitignore, and update the README and docs to make sure the build steps is included.
Remaining tasks
- Identify minimal amount of files/directories needed in codebase
- Identify the files/directories that are built with
npm run buildfor base theme and subtheme - Update .gitignore to not include these built files/directories
- Update README and dev guide with correct steps to install base theme and subtheme
- Create MR with changes
- Review and test per below
- Commit :)
Testing:
- Go through the process of installation with composer require, npm run build, and drush theme:install
- Check both themes show up in list of themes and both theme settings can be edited
- Check both themes have their Storybook available within their theme settings
User interface changes
Nothing in the UI but files/directories in theme will be tidier out-of-the-box.
API changes
Data model changes
Issue fork demo_design_system-3469781
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kristen polAssigning to Joshua for next week.
Comment #3
kristen polNote that if we have to change the Twig namespaces to SDC syntax then Storybook won't be testable. See #3469985: Reconcile components module vs SDC namespaces for SDDS includes/embeds.
Comment #6
joshua1234511MR: https://git.drupalcode.org/project/demo_design_system/-/merge_requests/31
Task
Identified minimal amount of files/directories that are built with npm run build for base theme and subtheme
Updated .gitignore to not include these built files/directories
Update README and dev guide with correct steps to install base theme and subtheme
Reviewed and tested locally
Following steps from https://www.drupal.org/community-initiatives/starshot-demo-design-system...
Update README and dev guide with correct steps to install base theme and subtheme
- No update required as steps already added
https://www.drupal.org/community-initiatives/starshot-demo-design-system...
Step 3: Configure and enable base theme
Step 5: n addition to enabling the base civictheme theme, we have a subtheme with the custom branding and components for Drupal CMS, so we need to configure and enable that too
Comment #7
kristen polCode changes look good. I'll test :)
Comment #8
kristen polThis is working well. I'll get it merged.
Comment #9
kristen polMerged! Thanks :)
Comment #10
kristen polJust double checked:
https://git.drupalcode.org/project/demo_design_system
against:
https://github.com/civictheme/monorepo-drupal/tree/develop/web/themes/co...
and it looks similar. Of course, we have components and starshot_demo but that's to be expected.