-
Notifications
You must be signed in to change notification settings - Fork 8
/
Gruntfile.coffee
executable file
·43 lines (38 loc) · 1.05 KB
/
Gruntfile.coffee
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
module.exports = (grunt) ->
require("load-grunt-tasks")(grunt)
grunt.initConfig
clean:
build: ['build/trunk/*', 'build/assets/*']
copy:
build:
expand: true
cwd: "doofinder-for-woocommerce"
src: ["**/*", "!**/*.scss"]
dest: "build/trunk"
assets:
expand: true
cwd: "assets"
src: ["**/*"]
dest: "build/assets"
version:
code:
src: ["doofinder-for-woocommerce/doofinder-for-woocommerce.php"]
text:
options:
prefix: 'Version: '
src: [
"doofinder-for-woocommerce/doofinder-for-woocommerce.php",
"doofinder-for-woocommerce/readme.txt"
]
compress:
build:
options:
archive: "doofinder-for-woocommerce.zip"
files: [{
expand: true
src: ["doofinder-for-woocommerce/**/*"]
dest: "/"
}]
grunt.registerTask "build", ["clean", "copy", "compress"]
grunt.registerTask "release", ["version", "build"]
grunt.registerTask "default", ["build"]