How to use the fatal function from grunt
Find comprehensive JavaScript grunt.fatal code examples handpicked from public code repositorys.
GitHub: ejcarranzap/worldvision
36 37 38 39 40 41 42 43 44 45
cachedAngularFiles.forEach(function(f) { var filePath = path.join('lib', 'test', 'angular', version, f); if (! fs.existsSync(filePath)) { grunt.fatal("Angular file " + filePath + " doesn't exist"); } retFiles.push(filePath); });
0
1
0
35 36 37 38 39 40 41 42 43 44
options: { inject: __dirname + "/inject-serializer.js" }, done: function () { if (!passed) { grunt.fatal("Failed regression test."); } asyncDone(); } });
0
0
0
GitHub: Bjornej/react
6 7 8 9 10 11 12 13 14 15
var task = this; var shouldStayAliveForever = task.flags.keepalive; var SAUCE_ACCESS_KEY = process.env.SAUCE_ACCESS_KEY || '339d32ca-d594-4570-a3c2-94c50a91919b'; if (!SAUCE_ACCESS_KEY) { grunt.fatal('Requires the environment variable SAUCE_ACCESS_KEY to be set'); } var SAUCE_USERNAME = process.env.SAUCE_USERNAME || 'React'; if (!SAUCE_USERNAME) {
0
0
2
+ 3 other calls in file
grunt.file is the most popular function in grunt (372 examples)