-
Notifications
You must be signed in to change notification settings - Fork 19
/
Gruntfile.js
42 lines (36 loc) · 1.15 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
'use strict';
module.exports = function(grunt) {
//Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// translation progress log file
translate_folder : 'translate',
original_folder : 'original',
template_folder : 'template',
annotated_folder : 'annotated',
// generate annotate source code
docco : {
annotate : {
src:["<%= plugin.name %>/**/*.js"],
options: {
output : "<%= annotated_folder %>/"
}
}
},
copy : {
template : {
expand : true,
src: ["**","**/.*"],
dest: "<%= plugin.name %>/",
cwd: "<%= template_folder %>/"
}
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-docco');
// load local tasks
grunt.loadTasks('tasks');
// used to add new plugin to this repo at first time
grunt.registerTask('addplugin', ['getRepo', 'addSubmodule', 'addTemplate']);
// used to generated the annotated source code
};