-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGruntfile.js
39 lines (34 loc) · 871 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
'use strict';
module.exports = function (grunt) {
// Project configuration
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js',
],
options: {
jshintrc: '.jshintrc',
},
},
// Configuration to be run (just for testing purposes)
maxcdn: {
purgeCache: {
options: {
companyAlias: '{COMPANY_ALIAS}',
consumerKey: '{CONSUMER_KEY}',
consumerSecret: '{CONSUMER_SECRET}',
zone_id: '{ZONE_ID}',
method: 'delete'
},
files: [
{ dest: '/w2/auth0-widget-2.4.27.min.js' }
],
},
},
});
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('test', ['default', 'maxcdn:purgeCache']);
grunt.registerTask('default', ['jshint']);
};