Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
helpers.mockLocalConfig(generator, {foo: 'bar'});
// helpers.createDummyGenerator()
const dummyGenerator = helpers.createDummyGenerator();
// helpers.createGenerator()
const angularGenerator = helpers.createGenerator('angular:app', [
'../../app',
'../../common',
'../../controller',
'../../main',
[helpers.createDummyGenerator(), 'testacular:app']
]);
// helpers.registerDependencies()
helpers.registerDependencies(env, ['dependency']);
// helpers.run()
helpers.run(path.join(__dirname, '../app'))
.withOptions({foo: 'bar'})
.withArguments(['name-x'])
.withPrompts({coffee: false});
helpers.run(path.join(__dirname, '../app'))
.inTmpDir(dir => { /* ... */ })
.withPrompts({coffee: false})
.then(() => { /* ... */ });
helpers.run(path.join(__dirname, '../app')).withGenerators([
[helpers.createDummyGenerator(), 'karma:app'],
]);