Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
return done(err);
}
this.app = helpers.createGenerator('gulpfile:app', [
'../../app'
]);
done();
}.bind(this));
});
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
return done(err);
}
this.app = helpers.createGenerator('ghost:app', [
'../../app'
]);
done();
}.bind(this));
});
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) { return done(err); }
this.app = helpers.createGenerator('thorax:app', ['../../app'], 'test');
this.app.options['skip-install'] = true;
helpers.mockPrompt(this.app, {
'newDirectory': false,
'starterApp': "None",
'styleProcessor': "none",
'includeCoffeeScript': requireOption(this.includeCoffeeScript, "Forgot this.includeCoffeeScript setting"),
'useZepto': false
});
this.app.run({}, done);
}.bind(this));
});
function setup (done) {
helpers.testDirectory(testDir, function (err) {
if (err) {
return done(err);
}
app = helpers.createGenerator('swaggerize:app', [
'../../app'
]);
done();
});
}
beforeEach(function (done) {
var deps = [
'../../app',
'../../common',
'../../controller',
'../../main', [
helpers.createDummyGenerator(),
'karma:app'
]
];
helpers.testDirectory(path.join(__dirname, folderName), function (err) {
if (err) {
done(err);
}
angular = helpers.createGenerator('angular-fullstack:app', deps);
angular.options['skip-install'] = true;
done();
});
});
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
return done(err);
}
this.app = helpers.createGenerator('webapi:app', [
'../../app'
]);
done();
}.bind(this));
});
beforeEach(function (done){
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) { return done(err); }
this.app = helpers.createGenerator('thorax:app', ['../../app'], 'test');
this.app.options['skip-install'] = true;
helpers.mockPrompt(this.app, {
'newDirectory': false,
'starterApp': "None",
'styleProcessor': "none",
'includeCoffeeScript': requireOption(this.includeCoffeeScript, "Forgot this.includeCoffeeScript option"),
'useZepto': false
});
this.app.run({}, done);
}.bind(this));
});
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
return done(err);
}
this.app = helpers.createGenerator('phaser:app', [
'../../app'
]);
done();
}.bind(this));
});
before(function (done) {
helpers.testDirectory(path.join(__dirname, "temp"), function() {
this.app = helpers.createGenerator("bbb:app", [
path.join(__dirname, "../lib/generators/app")
]);
this.app.options["skip-install"] = true;
helpers.mockPrompt(this.app, { indent: { style : "tab", size : 1 } });
this.app.run({}, function () { done(); });
}.bind(this));
});
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
return done(err);
}
this.app = helpers.createGenerator('tizenwebui:app', [
'../../app'
]);
done();
}.bind(this));
});