can not compile startkit.

Created on 13 June 2024, 10 months ago
Updated 21 August 2024, 8 months ago

Problem/Motivation

1. ui_suite_bootstrap_starterkit does not have any package.json for users of starterkit
2. will a bare package.json, current ui_suite_bootstrap_starterkit is linking to prior bootstrap structure -- npm watch fails.

╷
╷
4 │ @import "../../../../../libraries/bootstrap/scss/functions";
  │         ^^^^^^^^^^^^^^

...
10 │ @import "../../../../../libraries/bootstrap/scss/variables";
   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
...
Error: Can't find stylesheet to import.

Steps to reproduce

php web/core/scripts/drupal generate-theme --starterkit ui_suite_bootstrap_starterkit companyname
- will put into {WEB}/themes/companyname
- use needs to be in {WEB}/themes/custom/companyname
- user needs to add a package.json and related pre-setup
- while (composer as expected places into) then load {WEB}/libraries/bootstrap/scss/...

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Closed: works as designed

Version

5.0

Component

Code

Created by

🇨🇦Canada SKAUGHT

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

Comments & Activities

  • Issue created by @SKAUGHT
  • Status changed to Postponed: needs info 9 months ago
  • 🇫🇷France Grimreaper France 🇫🇷

    Hi,

    1 Generated theme placement:

    As mentioned in https://git.drupalcode.org/project/ui_suite_bootstrap/-/blob/5.0.x/start...

    With the following command, the generated theme is placed in themes/custom.

    php core/scripts/drupal generate-theme my_theme --starterkit ui_suite_bootstrap_starterkit --path themes/custom
    

    2 Compilation:

    I currently don't want to provide a package.json example because with it will come the need to provide task runner file example and there is no standard. Every one has its own on its projects. Some use Gulp, others Webpack, others Grunt, [insert the new trendy task runner], etc. With different configuration.

    It is something that can be added into the starterkit README, that compilation is not supported, it is up to anyone to handle it and/or provide links to examples.

  • 🇫🇷France Grimreaper France 🇫🇷
  • Status changed to Closed: works as designed 8 months ago
  • 🇫🇷France Grimreaper France 🇫🇷

    Closing as there is no reply.

    Feel free to re-open if needed.

Production build 0.71.5 2024