Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5/6] build: commit XModule SCSS entrypoints instead of generating them #32290

Merged

Commits on Jun 16, 2023

  1. build: commit XModule SCSS entrypoints of generating them

    `xmodule_assets` generated a series of SCSS "entrypoint"
    files, where each entrypoint file imported from the
    SCSS "sources" in xmodule/css.
    
    This process was more complicated up until very
    recently; for context, make sure you've seen:
     * openedx#32288
     * openedx#32289
    
    Now that the process is simpler, though, there is no
    reason to generate the SCSS entrypoints; we can just
    commit them to the repository instead!
    So, we go from this:
    
        # GENERATED: SCSS entrypoints files for CMS
        common/static/xmodule/descriptors:
           AboutBlockStudio.scss
           AnnotatableBlockStudio.scss
           ...
        # GENERATED: SCSS entrypoints files for LMS
        common/static/xmodule/modules:
           AboutBlockPreview.scss
           AnnotatableBlockPreview.scss
           ...
        # VERSION CONTROLLED: SCSS source files
        xmodule/css:
          annotatable/...
          capa/...
          ...
    
    to this:
    
        # VERSION CONTROLLED: All XModule SCSS
        xmodule/static/sass:
          # Source files
          include:
            annotatable/...
            capa/...
            ...
          # CMS entrypoint files
          cms:
            AboutBlockStudio.scss
            AnnotatableBlockStudio.scss
            ...
          # LMS source files
          lms:
            AboutBlockPreview.scss
            AnnotatableBlockPreview.scss
            ...
    
    Also, we are able to remove all SCSS-related logic from the
    `xmodule_assets` script and from the `HTMLSnippet` class.
    XModule JS assets still need processing, but we will address
    those in a separate series of PRs.
    
    Part of: openedx#32292
    kdmccormick committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    b93e41d View commit details
    Browse the repository at this point in the history