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

Method nullProject

lib/models/project.js:132–158  ·  view source on GitHub ↗
(ui, cli)

Source from the content-addressed store, hash-verified

130 }
131
132 static nullProject(ui, cli) {
133 if (NULL_PROJECT) {
134 return NULL_PROJECT;
135 }
136
137 NULL_PROJECT = new Project(processCwd, {}, ui, cli);
138
139 NULL_PROJECT.isEmberCLIProject = function () {
140 return false;
141 };
142
143 NULL_PROJECT.isViteProject = function () {
144 return false;
145 };
146
147 NULL_PROJECT.isEmberCLIAddon = function () {
148 return false;
149 };
150
151 NULL_PROJECT.name = function () {
152 return path.basename(process.cwd());
153 };
154
155 NULL_PROJECT.initializeAddons();
156
157 return NULL_PROJECT;
158 }
159
160 /**
161 Returns the name from package.json.

Callers 4

runFunction · 0.80
closestSyncMethod · 0.80
projectOrnullProjectMethod · 0.80
project-test.jsFile · 0.80

Calls 1

initializeAddonsMethod · 0.45

Tested by

no test coverage detected