GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch master (b17032)
by Keith
68:36
created

third-party/animate.css/animateCSS-1.2.2/Gruntfile.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 175
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 110
dl 0
loc 175
rs 10
c 0
b 0
f 0
wmc 2
mnd 0
bc 0
fnc 2
bpm 0
cpm 1
noi 0
1
'use strict';
2
3
module.exports = function (grunt) {
4
  // Load all grunt tasks
5
  require('load-grunt-tasks')(grunt);
6
  // Show elapsed time at the end
7
  require('time-grunt')(grunt);
8
9
  // Project configuration.
10
  grunt.initConfig({
11
    // Metadata.
12
    pkg: grunt.file.readJSON('package.json'),
13
    banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
14
      '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
15
      '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
16
      '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
17
      ' Licensed MIT */\n\n',
18
    // Task configuration.
19
    clean: {
20
      files: ['dist', '.tmp']
21
    },
22
23
    concat: {
24
      options: {
25
        banner: '<%= banner %>',
26
        stripBanners: true
27
      },
28
      dist: {
29
        src: ['.tmp/<%= pkg.name %>.js'],
30
        dest: 'dist/jquery.<%= pkg.name %>.js'
31
      }
32
    },
33
34
    uglify: {
35
      options: {
36
        banner: '<%= banner %>'
37
      },
38
      dist: {
39
        src: '<%= concat.dist.dest %>',
40
        dest: 'dist/jquery.<%= pkg.name %>.min.js'
41
      }
42
    },
43
44
    jade: {
45
      options: {
46
        pretty: true
47
      },
48
      dist: {
49
        files: [{
50
          expand: true,
51
          cwd: 'test/',
52
          dest: '.tmp/',
53
          src: '*.jade',
54
          ext: '.html'
55
        }]
56
      },
57
    },
58
59
    coffee: {
60
      dist: {
61
        files: [{
62
          expand: true,
63
          cwd: 'src',
64
          src: '{,*/}*.coffee',
65
          dest: '.tmp/',
66
          ext: '.js'
67
        }]
68
      }
69
    },
70
71
    jshint: {
72
      options: {
73
        reporter: require('jshint-stylish')
74
      },
75
      gruntfile: {
76
        options: {
77
          jshintrc: '.jshintrc'
78
        },
79
        src: 'Gruntfile.js'
80
      },
81
      dist: {
82
        options: {
83
          jshintrc: '.jshintrc'
84
        },
85
        src: ['.tmp/{,*/}*.js']
86
      }
87
    },
88
89
    watch: {
90
      gruntfile: {
91
        files: '<%= jshint.gruntfile.src %>',
92
        tasks: ['jshint:gruntfile']
93
      },
94
      jade: {
95
        files: ['test/*.jade'],
96
        tasks: ['jade']
97
      },
98
      coffee: {
99
        files: ['src/{,*/}*.coffee'],
100
        tasks: ['coffee']
101
      },
102
      livereload: {
103
        options: {
104
          livereload: '<%= connect.options.livereload %>'
105
        },
106
        files: [
107
          '.tmp/{,*/}*.*',
108
        ]
109
      }
110
    },
111
112
    bump: {
113
      options: {
114
        files: ['package.json', 'bower.json', '<%= pkg.name %>.jquery.json'],
115
        push: true,
116
        pushTo: 'origin',
117
        createTag: true,
118
        tagName: 'v%VERSION%',
119
        tagMessage: 'Version %VERSION%',
120
        commitFiles: ['<%= bump.options.files %>', 'CHANGELOG.md'],
121
        commitMessage: 'Bumped version to v%VERSION%'
122
      }
123
    },
124
125
    changelog: {
126
      options: {
127
        editor: 'atom -w'
128
      }
129
    },
130
131
    connect: {
132
      options: {
133
        hostname: '0.0.0.0',
134
        livereload: 35729,
135
        port: 9000
136
      },
137
      livereload: {
138
        options: {
139
          open: true,
140
          base: [
141
            '.tmp/',
142
            'src/'
143
          ]
144
        }
145
      },
146
    }
147
  });
148
149
  // Default task.
150
  grunt.registerTask('default', [
151
    'clean',
152
    'compile',
153
    'jshint:dist',
154
    'concat',
155
    'uglify',
156
  ]);
157
158
  // Compile Jade and CoffeeScript
159
  grunt.registerTask('compile', [
160
    'newer:coffee',
161
    'newer:jade'
162
  ]);
163
164
  // Server task
165
  grunt.registerTask('server', function () {
166
    grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
167
    grunt.task.run(['serve']);
168
  });
169
170
  grunt.registerTask('serve', [
171
    'compile', // jade, coffeescript
172
    'connect',
173
    'watch'
174
  ]);
175
};
176