-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathGruntfile.js
52 lines (44 loc) · 1.44 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
"use strict";
exports = module.exports = function (grunt) {
grunt.initConfig({
flake8: {
options: {
ignore: ['E501' // line too long
]
},
src: ['addons/**/*.py']
},
todo: {
options: {
file: "TODO.md", githubBoxes: true, colophon: false, usePackage: true
},
src: ['addons/**/*.py']
},
browserify: {
preview: {
src: "client/templates/preview/index.js",
dest: "addons/io_scene_xml3d/templates/preview/public/scripts/xml3d-blender-preview.js"
}
},
copy: {
preview: {
src: "addons/io_scene_xml3d/templates/preview/public/scripts/xml3d-blender-preview.js",
dest: "output/public/scripts/xml3d-blender-preview.js"
}
},
compress: {
main: {
options: {
mode: 'zip', archive: 'io_scene_xml3d-0.x.x.zip'
},
files: [{expand: true, cwd: 'addons/', src: ['**', '!**/__pycache__/**']}]
}
}
});
grunt.loadNpmTasks('grunt-todo');
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-flake8');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.registerTask('templates', ['browserify', 'copy']);
};