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

Function generateInAddon

tests/acceptance/addon-generate-test.js:38–49  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

36 }
37
38 function generateInAddon(args) {
39 let name = 'my-addon';
40 let generateArgs = ['generate'].concat(args);
41
42 if (arguments.length > 1) {
43 name = arguments[1];
44 }
45
46 return initAddon(name).then(function () {
47 return ember(generateArgs);
48 });
49 }
50
51 it('in-addon addon-import cannot be called directly', async function () {
52 try {

Callers 1

Calls 3

emberFunction · 0.85
initAddonFunction · 0.70
thenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…