Skip to content

fix(live-editing): improve generated standalone and styles handling#3925

Merged
ChronosSF merged 8 commits intovnextfrom
dTsvetkov/update-live-editing-generation
Apr 22, 2026
Merged

fix(live-editing): improve generated standalone and styles handling#3925
ChronosSF merged 8 commits intovnextfrom
dTsvetkov/update-live-editing-generation

Conversation

@dobromirts
Copy link
Copy Markdown
Contributor

@dobromirts dobromirts commented Mar 25, 2026

Closes #3935

Added missing name, version, and scripts (ng, start, build) to the generated package.json for each standalone sample — previously the file was not a valid npm package and npm start would fail in StackBlitz/CodeSandbox
Added ^ semver range prefix to exact-pinned dependency versions in sampleDependencies so samples always resolve the latest compatible version instead of being pinned to a stale exact release
DevDependencies in generated package.json are now sourced from the main package.json ranges instead of hardcoded values in shared.json, which got overwritten on every generate-live-editing run
Bumped Angular peer dependencies from ^21.0.0 to ^21.1.0 to match the installed version and ensure @angular/compiler-cli 21.1.x is resolved — required by igniteui-angular 21.1.x which uses the passThroughInput compiler API introduced in 21.1
@import "tailwindcss" is now stripped from the shared styles.scss after generate-live-editing and injected back only into samples that declare tailwindcss as a dependency — both in the live editing source viewer and in the standalone sample output from repositoryfy

Update live-editing version to 3.4.2

Comment thread gulpfile.js Fixed
Comment thread gulpfile.js Fixed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the live-editing generation/repositoryfy pipeline to produce more reliable standalone samples (valid package.json + dependency ranges) and to only include Tailwind styles when a sample actually depends on Tailwind.

Changes:

  • Bump gulp dev dependency to ^5.0.1.
  • Post-process generated live-editing JSON to strip @import "tailwindcss" from the shared styles.scss and inject it only into samples that declare tailwindcss.
  • Improve generated standalone sample package.json (add name/version/scripts, add ^ prefix for exact versions, and source devDependency ranges from the repo root package.json).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
package.json Updates build tooling dependency (gulp) used by the live-editing generation tasks.
gulpfile.js Enhances live-editing generation and repositoryfy output to conditionally manage Tailwind imports and generate a valid standalone package.json.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gulpfile.js Outdated
Comment thread gulpfile.js Outdated
@ChronosSF ChronosSF merged commit 0b2e61a into vnext Apr 22, 2026
9 checks passed
@ChronosSF ChronosSF deleted the dTsvetkov/update-live-editing-generation branch April 22, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants