feat!: add generic flat bundles, drop bricks-branded bundle - #60
Conversation
Replace the single slashed.bricks.css flat bundle with a generic
*.flat.css sibling for each tier (essential, optimal,
optimal-components, optimal-utilities, full).
- bundle.config.json: five new flat:true entries; bricks entry removed
- package.json: ./bricks export removed; new ./flat and ./<tier>/flat
exports added
- scripts/bundle.js: stripLayerWrappers comment genericised
- dist/: stale slashed.bricks.* files removed; new
*.flat.{css,min.css,min.css.map} siblings emitted
BREAKING CHANGE: the slashed/bricks package export is removed. Use
slashed/optimal/flat (same file set, formerly the bricks bundle) or
the new slashed/flat (full flat bundle) instead.
Co-authored-by: Jack Granatowski <contact@codeslash.net>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (27)
📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR extends the CSS bundling pipeline to generate flat (unlayered) CSS variants for all build modes. Five new bundle configurations are added to bundle.config.json, corresponding subpath exports are added to package.json, and a bundler documentation comment is clarified. ChangesFlat CSS bundle variants
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
This pull request was created by @kiro-agent on behalf of @jackgranatowski 👻
Comment with /kiro fix to address specific feedback or /kiro all to address everything.
Learn about Kiro autonomous agent
Replaces the single bricks-branded flat bundle with a generic
*.flat.csssibling for every tier, and produces them indist/.What changed
bundle.config.json—slashed.bricks.cssremoved; five newflat: trueentries added:slashed.essential.flat.cssslashed.optimal.flat.css(same file set as the old bricks bundle)slashed.optimal-components.flat.cssslashed.optimal-utilities.flat.cssslashed.full.flat.csspackage.json—./bricksexport removed; replaced with:./flat→slashed.full.flat.css(convenient default)./essential/flat,./optimal/flat,./optimal-components/flat,./optimal-utilities/flat,./full/flatscripts/bundle.js— comment onstripLayerWrappersgenericised; no longer Bricks-specific. The flat-emission logic itself is unchanged.dist/— staleslashed.bricks.*artefacts deleted; new*.flat.{css,min.css,min.css.map}siblings emitted. Spot-check:slashed.full.flat.csshas 0 top-level@layerdeclarations vs. 17 inslashed.full.css.Sizes
slashed.essential.flat.min.cssslashed.optimal.flat.min.cssslashed.optimal-components.flat.min.cssslashed.optimal-utilities.flat.min.cssslashed.full.flat.min.cssTested
node scripts/bundle.jssucceeds; 10 bundles + 10 minified siblings + source maps emitted.ignoreFiles: ["dist/**"]; rebuild step idempotent).Breaking change
slashed/bricksis removed from package exports. Migration:import 'slashed/bricks'→import 'slashed/optimal/flat'(identical file set), orimport 'slashed/flat'for the full flat bundle.Worth a
0.3.0bump on next release.Side note:
package-lock.jsonhad itsversionfield bumped from0.2.5→0.2.10to matchpackage.json— that drift was pre-existing and got corrected onnpm install.Summary by CodeRabbit
New Features
Chores
./brickssubpath export from the package's available exports.