Enhance project setup with .gitignore, README, workflows, and flex utilities#10
Merged
Conversation
Add empty .gitignore files to src/ and src/core/ directories to ensure these directories are tracked by git.
Replace minimal README with a full project description for ComfortCSS Flexbox. Adds summary (RTL-ready, :where() zero-specificity, logical properties), npm install instructions (including @comfortcss/tokens peer dependency), CSS import usage example, and license reference (MIT).
Add Dependabot configuration and a GitHub Actions workflow to publish to npm. .github/dependabot.yml: configures weekly updates for npm packages and GitHub Actions, groups development dependencies into a single PR, ignores "lightningcss", sets labels and commit-message prefixes, targets the main branch, and limits open PRs. .github/workflows/publish.yml: workflow triggered on release published and manual dispatch; checks out code, sets up Node.js 24.x, runs npm ci and publishes with provenance and public access. Includes commented placeholders for build/test and minimal permissions required.
Introduce package metadata for the @comfortcss/flex package. Defines name, version, main/style entry (dist/flex.min.css), files (dist, src), repository, keywords, author and MIT license. Adds build scripts using lightningcss (build, prepare, prepublishOnly), peerDependency on @comfortcss/tokens, and devDependencies including lightningcss and @comfortcss/reset. Exports map style and module paths and publishConfig sets public access.
Create two empty stylesheet placeholders at src/flex.css and src/index.css for future styling. No styles added yet.
Enhance project setup with .gitignore, README, and workflows
Add foundational flex container utilities to the package. Includes `.flex` (block-level) and `.inline-flex` (inline-level) classes, organized with CSS cascade layers and comprehensive documentation comments.
Add flex container classes
Extracted the flex container rules into a new file src/core/container.css. Updated src/flex.css header (switched to @Version, added @Dependencies) and replaced the in-file rules with an import of ./core/container.css. Added a new entrypoint src/index.css that documents package metadata and imports flex.css. Prepares the codebase for a modular structure and declares the @comfortcss/tokens dependency.
Move container CSS to core and add index
Refactor CSS structure by moving container styles to core
Add CSS utility classes for controlling flex container direction. Includes `.flex-row`, `.flex-row-reverse`, `.flex-col`, and `.flex-col-reverse` utilities using the `:where()` selector and `flex` CSS layer for proper specificity management.
Refactor CSS structure and add flex utility classes
Add generated package-lock.json for @comfortcss/flex@0.1.0. Pins devDependencies (@comfortcss/reset, lightningcss, lightningcss-cli), records peer dependency @comfortcss/tokens, and includes optional platform-specific lightningcss binaries and detect-libc to ensure reproducible installs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v0.1.0