Skip to content

Add new VITE experiment to generate app with new Vite blueprint#10781

Merged
mansona merged 8 commits intoember-cli:masterfrom
pichfl:mainmatter/vite-experiment
Sep 5, 2025
Merged

Add new VITE experiment to generate app with new Vite blueprint#10781
mansona merged 8 commits intoember-cli:masterfrom
pichfl:mainmatter/vite-experiment

Conversation

@pichfl
Copy link
Contributor

@pichfl pichfl commented Aug 27, 2025

I can and will split this into separate PRs if sensible, but I wanted to make sure everything is in place before I do.

  • Update experiments.md
  • Reorganize tests for ember new to make them easier to read (and refactor / remove later)
  • Add new experiment VITE which defaults ember new to the new @ember/app-blueprint blueprint
  • Skip irrelevant tests when the experiment is active: Since the new blueprint is an external package, what it does should be tested within that package to prevent step-locking ember-cli and @ember/app-blueprint
  • Add very basic test to validate the command did what it should

Closes #10771


This work is supported by the Mainmatter Ember Initiative.

@pichfl pichfl marked this pull request as draft August 27, 2025 10:20
@pichfl pichfl force-pushed the mainmatter/vite-experiment branch 2 times, most recently from 04a7573 to ee8ebdb Compare September 1, 2025 11:07
@pichfl pichfl force-pushed the mainmatter/vite-experiment branch from ee8ebdb to 278ca47 Compare September 1, 2025 12:00
@pichfl pichfl marked this pull request as ready for review September 1, 2025 12:00
@pichfl pichfl force-pushed the mainmatter/vite-experiment branch from 1af4a1a to a844fc5 Compare September 3, 2025 13:26
@pichfl pichfl force-pushed the mainmatter/vite-experiment branch from a844fc5 to 325419d Compare September 3, 2025 15:23
@pichfl pichfl force-pushed the mainmatter/vite-experiment branch from ff41914 to 04b3c92 Compare September 3, 2025 16:08
@pichfl pichfl force-pushed the mainmatter/vite-experiment branch from 4f257c1 to 95cda04 Compare September 3, 2025 16:46
Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

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

Great work 🎉

@mansona mansona merged commit db94ed8 into ember-cli:master Sep 5, 2025
70 checks passed
@mansona mansona mentioned this pull request Sep 5, 2025
@mansona mansona changed the title VITE experiment Add new VITE experiment to generate app with new Vite blueprint Sep 5, 2025
@pichfl pichfl deleted the mainmatter/vite-experiment branch September 6, 2025 12:25
This was referenced Sep 7, 2025
Copy link
Contributor

@ef4 ef4 left a comment

Choose a reason for hiding this comment

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

Other than where I commented on OK skips, the rest of the skips probably shouldn't be skips.

Even when the vite experiment lands and we drop support for the v1 app blueprint, we're going to still have support for @embroider/compat which implies support for all these ember-cli features.

});

it('using autoRun: true', async function () {
if (isExperimentEnabled('VITE')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is ok to skip on vite because we make the app creation explicit.

});

it('using autoRun: false', async function () {
if (isExperimentEnabled('VITE')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is ok to skip on vite because we make the app creation explicit.


// we dont run postprocessTree in embroider
if (!isExperimentEnabled('EMBROIDER')) {
if (!isExperimentEnabled('EMBROIDER') && !isExperimentEnabled('VITE')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is ok.


it('init a single file', async function () {
if (DEPRECATIONS.INIT_TARGET_FILES.isRemoved) {
if (DEPRECATIONS.INIT_TARGET_FILES.isRemoved || isExperimentEnabled('VITE')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

All the skips where the test was already guarded by DEPRECATIONS.INIT_TARGET_FILES.isRemoved are OK.

@mansona mansona mentioned this pull request Oct 14, 2025
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.

Create a environment variable feature flag that makes ember new choose @ember/app-blueprint as the "built in" app blueprint

3 participants