MCPcopy Create free account
hub / github.com/ember-cli/ember-try / generateConfigFile

Function generateConfigFile

test/utils/config-test.js:26–31  ·  view source on GitHub ↗
(contents, filename = 'config/ember-try.js')

Source from the content-addressed store, hash-verified

24 });
25
26 function generateConfigFile(contents, filename = 'config/ember-try.js') {
27 let directory = path.dirname(filename);
28 fs.mkdirsSync(directory);
29
30 fs.writeFileSync(filename, contents, { encoding: 'utf8' });
31 }
32
33 it('uses specified options.configFile if present', () => {
34 generateConfigFile(

Callers 1

config-test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…