MCPcopy
hub / github.com/ember-cli/ember-cli / createApp

Function createApp

tests/unit/broccoli/ember-app/app-and-dependencies-test.js:72–105  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

70 });
71
72 function createApp(options) {
73 options = options || {};
74
75 let pkg = {
76 name: 'ember-app-test',
77 dependencies: {
78 'fake-template-preprocessor': '*',
79 'my-addon': '*',
80 },
81 };
82
83 let cli = new MockCLI();
84 let project = new (class extends Project {
85 initializeAddons() {
86 if (this._addonsInitialized) {
87 return;
88 }
89
90 super.initializeAddons();
91
92 this.addons.push(EMBER_SOURCE_ADDON);
93 }
94 })(input.path(), pkg, cli.ui, cli);
95
96 return new EmberApp(
97 {
98 project,
99 name: pkg.name,
100 _ignoreMissingLoader: true,
101 sourcemaps: { enabled: false },
102 },
103 options
104 );
105 }
106
107 function getFiles(path) {
108 return walkSync(path, {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…