Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
then: function (results, done) {
var buildType = results['prompt.buildType'];
if (results['prompt.execute']) {
grunt.config.set('buildType', results['prompt.buildType']);
if (buildType === 'build') {
grunt.task.run(['doBuild']);
} else if (buildType === 'generateDoc') {
grunt.task.run(['generateDoc']);
} else if (buildType === 'i18n') {
grunt.task.run(['i18n']);
}
}
}
}
then: function (results, done) {
var buildType = results['prompt.buildType'];
if (results['prompt.execute']) {
grunt.config.set('buildType', results['prompt.buildType']);
if (buildType === 'build') {
grunt.task.run(['doBuild']);
} else if (buildType === 'generateDoc') {
grunt.task.run(['generateDoc']);
} else if (buildType === 'i18n') {
grunt.task.run(['i18n']);
}
}
}
}