-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathgrunt.js
93 lines (88 loc) · 2.57 KB
/
grunt.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
module.exports = function(grunt) {
grunt.initConfig({
//pkg: '<json:package.json>',
meta: {
},
istatic: {
main: {
repos: {
'dexteryy/OzJS': {
file: {
'/oz.js': '/js/lib/'
}
},
'dexteryy/mo': {
file: {
'/': '/js/mod/mo/'
}
},
'dexteryy/DollarJS': {
file: {
'/dollar.js': '/js/mod/'
}
},
'dexteryy/EventMaster': {
file: {
'/eventmaster.js': '/js/mod/'
}
},
'dexteryy/ChoreoJS': {
file: {
'/choreo.js': '/js/mod/'
}
},
'dexteryy/buzz': {
file: {
'/buzz.js': '/js/mod/'
}
}
}
}
},
ozma: {
main: {
src: 'js/main.js',
//saveConfig: true
config: {
baseUrl: "js/mod/",
distUrl: "dist/js/mod/",
loader: "../lib/oz.js",
disableAutoSuffix: true
}
}
},
compass: {
main: {
options: {
config: 'css/config.rb',
sassDir: 'css',
cssDir: 'dist/css',
imagesDir: 'pics',
relativeAssets: true,
outputStyle: 'expanded',
noLineComments: false,
require: [
'ceaser-easing',
'animation',
'animate-sass'
],
environment: 'production'
}
}
},
watch: [{
files: 'js/**/*.js',
tasks: 'ozma'
}, {
files: 'css/**/*.scss',
tasks: 'compass'
}]
});
grunt.loadNpmTasks('grunt-istatic');
grunt.loadNpmTasks('grunt-ozjs');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.registerTask('default', [
'compass',
'ozma'
]);
};