MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / isViteProject

Method isViteProject

lib/models/project.js:193–195  ·  view source on GitHub ↗

Returns whether this is a Vite-based project. This checks whether @embroider/vite is listed in (dev)Dependencies. @private @method isViteProject @return {Boolean} Whether this is a Vite project

()

Source from the content-addressed store, hash-verified

191 @return {Boolean} Whether this is a Vite project
192 */
193 isViteProject() {
194 return '@embroider/vite' in this.dependencies(); // This would preferably be `isClassicProject` as Vite is the default now, but it is tough to come up with a metric
195 }
196
197 /**
198 Returns whether or not this is an Ember CLI addon.

Callers 5

initFunction · 0.80
project-test.jsFile · 0.80
beforeInstallFunction · 0.80
beforeInstallFunction · 0.80
beforeInstallFunction · 0.80

Calls 1

dependenciesMethod · 0.95

Tested by

no test coverage detected