-
Notifications
You must be signed in to change notification settings - Fork 20
/
Gruntfile.js
54 lines (50 loc) · 1.6 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
53
54
module.exports = function(grunt) {
grunt.initConfig({
compass: {
dev: {
options: {
config: 'src/sass/config.rb',
environment: "development",
outputStyle: "nested"
}
},
prod: {
options: {
config: 'src/sass/config.rb',
environment: "production",
outputStyle: "compressed"
}
}
},
watch: {
files: [
'src/sass/flat.scss',
'src/themes/**/*'
],
tasks: 'deploy'
},
copy: {
main: {
files: [
{ src: 'generated/flat.css', dest: 'demo/resources/css/flat.css' },
{ src: 'src/themes/fonts/lato/lato-black.ttf', dest: 'demo/resources/fonts/lato-black.ttf' },
{ src: 'src/themes/fonts/lato/lato-bold.ttf', dest: 'demo/resources/fonts/lato-bold.ttf' },
{ src: 'src/themes/fonts/lato/lato-italic.ttf', dest: 'demo/resources/fonts/lato-italic.ttf' },
{ src: 'src/themes/fonts/lato/lato-regular.ttf', dest: 'demo/resources/fonts/lato-regular.ttf' }
]
},
release: {
files: [
{ src: 'src/themes/fonts/lato/*', dest: 'dist/' },
{ src: 'src/themes/stylesheets/sencha-touch/_flat.scss', dest: 'dist/' },
{ src: 'src/themes/stylesheets/sencha-touch/flat/**/*', dest: 'dist/' }
]
}
}
});
grunt.loadNpmTasks("grunt-contrib-compass");
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask("deploy", ["compass:dev", "copy:main"]);
grunt.registerTask('default', ['watch']);
};