8 Commits
Author SHA1 Message Date
mvdbeekandClaude Opus 5.5 e2ce656e79 Tighten the style import check and add tests
- Flag bare `@import "bootstrap"` and paths into node_modules: Vite
  resolves the bare name through the package's "sass" field to
  scss/bootstrap.scss, so it compiles all of Bootstrap.
- Flag `@import"base"` with no space after the at-rule.
- Resolve the scanned roots relative to the script so it also works when
  run from outside client/.
- Export the matcher and cover it with a vitest test.
- Run the check as part of `make client-lint`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:50:54 -04:00
Dannon Baker 0d51cd2b6b Catch relative-path base.scss imports in the style import check
The base.scss pattern only matched the bare and @/style/scss/ forms, so relative imports like ../../style/scss/base.scss or scss/base.scss got through. base.scss is the only file with that name in the client, so match any path ending in it. Also catch the legacy ~bootstrap prefix.
2026-10-08 17:50:54 -04:00
Dannon Baker f3aef1ae06 Add a CI check against full stylesheet imports in components
Importing base.scss or all of Bootstrap into a component's style block
compiles a separate scoped copy of the whole thing into base.css, which
is how four of them added up to 2.5 MB before #23703 removed them. This
adds a small script to the client lint job that fails if one shows up
again and points at theme/blue.scss instead.
2026-10-08 17:50:54 -04:00
DannonandMarius van den Beek 09d549deab Update client/scripts/build.mjs
Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
2025-12-08 08:32:11 -05:00
Dannon Baker 5a3be4e9fa Add build script to replace gulp
Simple Node.js script that handles icon building and plugin staging,
same functionality as the gulpfile but without the gulp dependency.
2025-12-07 21:36:27 -05:00
Carl Eberhard 319b0cb256 Move client/scripts to client/galaxy/scripts 2014-09-16 09:40:13 -04:00
Carl Eberhard 5792d27558 Merged galaxy/galaxy-central into default 2014-09-16 09:05:46 -04:00
Carl Eberhard 60ae9226d8 Client build system: (1st step) duplicate static/scripts at client/scripts (w/o packed), add npm package.json file w/ grunt-contrib-copy dependency, add GruntFile.js w/ single task: copy client/scripts to static/scripts 2014-09-12 12:23:19 -04:00