How to use the fatal function from grunt

Find comprehensive JavaScript grunt.fatal code examples handpicked from public code repositorys.

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);
});
fork icon0
star icon1
watch icon0

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();
    }
});
fork icon0
star icon0
watch icon0

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) {
fork icon0
star icon0
watch icon2

+ 3 other calls in file