File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,16 @@ module.exports = function(grunt) {
51
51
"<%= clone %>" ,
52
52
"<%= csslint_files %>"
53
53
] ,
54
+
54
55
// Task configuration.
55
56
clean : {
56
57
dist : "<%= build_dir %>"
57
58
} ,
59
+
58
60
changelog : {
59
61
dest : "CHANGELOG"
60
62
} ,
63
+
61
64
concat : {
62
65
core : {
63
66
options : {
@@ -129,6 +132,7 @@ module.exports = function(grunt) {
129
132
dest : "<%= build_dir %>/<%= pkg.name %>-wsh.js"
130
133
}
131
134
} ,
135
+
132
136
includereplace : {
133
137
dist : {
134
138
options : {
@@ -147,44 +151,48 @@ module.exports = function(grunt) {
147
151
} ]
148
152
}
149
153
} ,
154
+
150
155
jshint : {
151
156
options : {
152
157
jshintrc : ".jshintrc"
153
158
} ,
154
159
gruntfile : {
155
160
src : [ "Gruntfile.js" , "tasks/*.js" ]
156
161
} ,
162
+ core : {
163
+ src : "src/**/*.js"
164
+ } ,
157
165
demo : {
158
166
src : "demos/*.js"
159
167
} ,
160
- all : {
161
- src : "src/**/*.js"
162
- } ,
163
168
tests : {
164
169
src : "tests/**/*.js"
165
170
}
166
171
} ,
172
+
167
173
watch : {
168
174
gruntfile : {
169
175
files : "<%= jshint.gruntfile.src %>" ,
170
- tasks : [ "jshint" ]
176
+ tasks : "jshint"
171
177
} ,
172
178
src : {
173
179
files : "<%= jshint.all.src %>" ,
174
- tasks : [ "jshint:all" ]
180
+ tasks : "jshint:core"
175
181
} ,
176
182
lib_test : {
177
183
files : "<%= jshint.tests.src %>" ,
178
- tasks : [ "jshint:tests" ]
184
+ tasks : "jshint:tests"
179
185
}
180
186
} ,
187
+
181
188
yuitest : {
182
189
tests : {
183
190
src : [
184
191
"tests/**/*.js"
185
192
]
186
193
}
187
194
} ,
195
+
188
196
test_rhino : {
189
197
tests : {
190
198
src : [
@@ -208,7 +216,8 @@ module.exports = function(grunt) {
208
216
grunt . registerTask ( "build" , [ "clean" , "concat" , "includereplace" ] ) ;
209
217
210
218
//Alias for
211
- grunt . registerTask ( "lint" , [ "jshint" ] ) ;
219
+ grunt . registerTask ( "dist" , "build" ) ;
220
+ grunt . registerTask ( "lint" , "jshint" ) ;
212
221
213
222
// Testing
214
223
grunt . registerTask ( "test" , [ "build" , "jshint" , "yuitest" ] ) ;
You can’t perform that action at this time.
0 commit comments