Slide 43
Slide 43 text
/*global
module:false*/
var
child_process
=
require('child_process');
module.exports
=
function(grunt)
{
//
Project
configuration.
grunt.initConfig({
lint:
{
files:
['lib/**/*.js',
'test/**/*.js',
'!
test/lib/**/*.js',
'www/js/**/*.js']
},
qunit:
{
files:
['test/**/test-‐*.html']
},
watch:
{
files:
[
'',
'www/templates/*.tmpl'
],
tasks:
'test'
},
jshint:
{
options:
{
curly:
true,
eqeqeq:
true,
immed:
true,
latedef:
true,
newcap:
true,
noarg:
true,
sub:
true,
undef:
true,
boss:
true,
eqnull:
true,
browser:
true
},
globals:
{
$
:
true,
_
:
true,
RSVP
:
true,
app
:
true
}
},
uglify:
{}
});
grunt.registerTask('default',
'lint
qunit');
};
qunit:
{
files:
['test/**/test-‐*.html']
},
Friday, November 9, 12