-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
33 lines (28 loc) · 1.17 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
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
clean : {
dir: {
files: [{src:"haxe-checkstyle/"}]
}
},
shell: {
dir: {
command: "mkdir haxe-checkstyle || true && mkdir haxe-checkstyle/classes || true && mkdir haxe-checkstyle/META-INF || true"
},
files: {
command: "cp out/production/haxe-checkstyle-intellij-plugin/META-INF/plugin.xml haxe-checkstyle/META-INF/" +
" && cp -r out/production/haxe-checkstyle-intellij-plugin/haxe/ haxe-checkstyle/classes/haxe" +
" && cp -r out/production/haxe-checkstyle-intellij-plugin/checkstyle.json haxe-checkstyle/classes/" +
" && cp -r out/production/haxe-checkstyle-intellij-plugin/run haxe-checkstyle/classes/"
}
},
zip: {
"haxe-checkstyle.zip": ["haxe-checkstyle/**"]
}
});
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-zip");
grunt.loadNpmTasks("grunt-shell");
grunt.registerTask("default", ["clean", "shell", "zip"]);
};