Skip to content

Introduce css-js-gen package to this repo, and refactor project structure#67

Open
Adammatthiesen wants to merge 14 commits intomainfrom
adam/more-work
Open

Introduce css-js-gen package to this repo, and refactor project structure#67
Adammatthiesen wants to merge 14 commits intomainfrom
adam/more-work

Conversation

@Adammatthiesen
Copy link
Member

This pull request introduces a new package, css-js-gen, and refactors the project structure and configuration to better support multiple packages. The most significant changes include the addition of the css-js-gen package (with documentation, license, and changelog), updates to monorepo tooling and scripts, improved label and dependency management, and the removal of legacy code and configuration from the previous structure.

New package: css-js-gen

  • Added the css-js-gen package, including source code (src/index.ts), documentation (README.md), license (LICENSE), changelog (CHANGELOG.md), and a scratchpad for style testing (scratchpad/test-styles.mjs). [1] [2] [3] [4] [5] [6]

Monorepo structure and tooling updates

  • Refactored workspace configuration in package.json to use ./packages/*, updated build, dev, and test scripts to target all packages, and added new dependencies for testing and publishing. [1] [2] [3]
  • Updated Renovate configuration (renovate.json) to group dependencies for individual packages, including css-js-gen and expressive-code-twoslash.
  • Improved labeler configuration (labeler.yml) to recognize changes in the new package directories.

Documentation and changelog updates

  • Added a bug report issue template for css-js-gen and updated references in documentation and scripts to use the new package paths. [1] [2] [3] [4]

Code and configuration cleanup

  • Removed legacy exports and configuration files from the old package directory, including tsconfig.json, and index files for annotations and helpers. [1] [2] [3]
  • Updated Biome configuration to ignore the new scratchpad directory for linting and formatting. [1] [2]
  • Added rgba to the list of recognized words in VSCode settings.

Miscellaneous

  • Added a changeset documenting the refactor of tsconfig and module imports for expressive-code-twoslash.

- Refactored tsconfig.src.json and tsconfig.test.json for consistent formatting.
- Updated tsdown.config.ts to utilize shared configuration from tsdown.shared.ts.
- Added new shared configuration for tsdown in tsdown.shared.ts.
- Updated pnpm-lock.yaml to include new dependencies and versions.
- Added a new issue template for bug reports related to css-js-gen.
- Updated root tsconfig.json to include css-js-gen package reference.
- Implemented a CSS generator with support for nested selectors, media queries, and various formatting options.
- Created base styles for documentation popups, static containers, and completion items.
- Added test suite to validate CSS generation functionality and edge cases.
- Introduced a scratchpad for testing and outputting generated styles to a file.
@changeset-bot
Copy link

changeset-bot bot commented Feb 19, 2026

🦋 Changeset detected

Latest commit: 8e6c8cc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
expressive-code-twoslash Minor
css-js-gen Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@htg-1-studiocms-cloud
Copy link

htg-1-studiocms-cloud bot commented Feb 19, 2026

Dokploy Preview Deployment

Name Status Preview Updated (UTC)
Twoslash ✅ Done Preview URL 2026-02-19T07:13:26.466Z

@github-actions github-actions bot added twoslash expressive-code-twoslash css-js-gen labels Feb 19, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 19, 2026

npm i https://pkg.pr.new/withstudiocms/expressive-code-twoslash/css-js-gen@67
npm i https://pkg.pr.new/withstudiocms/expressive-code-twoslash@67

commit: 8e6c8cc

@Adammatthiesen Adammatthiesen marked this pull request as ready for review February 19, 2026 04:42
@Adammatthiesen Adammatthiesen requested a review from a team as a code owner February 19, 2026 04:42
## Installation

```bash
pnpm install
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are developers expected to clone the repo at this stage to install?

Copy link
Member

@RATIU5 RATIU5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one comment on the readme

Comment on lines +18 to +20
```bash
pnpm install
pnpm build
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this package gonna be published independently? 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

css-js-gen twoslash expressive-code-twoslash

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments