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

Function generateWithPrefix

tests/acceptance/pods-generate-test.js:52–59  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

50 }
51
52 function generateWithPrefix(args) {
53 let generateArgs = ['generate'].concat(args);
54
55 return initApp().then(function () {
56 replaceFile('config/environment.js', '(var|let|const) ENV = {', "$1 ENV = {\npodModulePrefix: 'app/pods', \n");
57 return ember(generateArgs);
58 });
59 }
60
61 it('blueprint foo --pod', async function () {
62 await generate(['blueprint', 'foo', '--pod']);

Callers 1

Calls 4

replaceFileFunction · 0.85
emberFunction · 0.85
initAppFunction · 0.70
thenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…