-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgruntfile.js
83 lines (83 loc) · 1.83 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
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
module.exports = function(grunt) {
grunt.initConfig({
less: {
development: {
options: {
paths: ["./www/less"],
yuicompress: true
},
files: {
"./www/css/application.css": "./www/less/application.less"
}
} // development
}, // less
watch: {
scripts: {
files: ['./www/js/**/*.js'],
tasks: ['clean:js','copy:js']
}, //scripts
less: {
files: ['./www/less/*'],
tasks: ['less','copy:css']
}, //less
html: {
files: ['./www/index.html'],
tasks: ['copy:html']
} //html
}, // watch
clean: {
js: './platforms/ios/www/js/'
},
copy: {
css: {
src: './www/css/application.css',
dest: './platforms/ios/www/css/application.css',
filter: 'isFile'
}, //css
js: {
expand: true,
cwd: './www/js/',
src: '**/*',
dest: './platforms/ios/www/js/'
}, //js
html: {
src: './www/index.html',
dest: './platforms/ios/www/index.html',
filter: 'isFile'
} //html
}, //copy
jshint: {
options: {
bitwise: false,
curly: false,
eqeqeq: true,
forin: true,
immed: true,
indent: 2,
latedef: true,
newcap: true,
noarg: true,
noempty: true,
nonew: true,
plusplus: false,
regexp: true,
undef: true,
strict: true,
trailing: true,
sub: true,
browser: true,
devel: true,
expr: true,
eqnull: true,
predef: ['angular','utils','FastClick','L'],
ignores: ['www/js/lib/**/*.js']
},
files: ['www/js/**/*.js']
} // jshint
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
};