forked from kanbanwp/kanban
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
52 lines (49 loc) · 1.3 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
module.exports = function(grunt) {
grunt.initConfig({
uglify: {
my_target: {
files: {
'js/admin-deactivate.min.js': ['js/admin-deactivate.js'],
'js/admin-settings.min.js': ['js/admin-settings.js']
}
}
},
pot: {
options: {
text_domain: 'kanban', //Your text domain. Produces my-text-domain.pot
dest: 'languages/', //directory to place the pot file
keywords: ['gettext', '__'], //functions to look for
},
files: {
src: [ '**/*.php' ], //Parse all php files
expand: true,
},
},
// jshint: {
// options: {
// // reporter: require('jshint-stylish') // use jshint-stylish to make our errors look and read good
// },
//
// // when this task is run, lint the Gruntfile and all js files in src
// build: ['Gruntfile.js', 'js/*.js']
// },
watch: {
scripts: {
files: ['js/*.js'],
tasks: ['uglify'],
options: {
interrupt: true
},
}
}
});
// grunt.loadNpmTasks('grunt-notify');
// grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-pot');
// grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['uglify']);
grunt.registerTask('pot', ['pot']);
// grunt.registerTask('jshint', ['jshint']);
grunt.registerTask('watch', ['watch']);
};