2013-02-01 21:49:16 +04:00
|
|
|
/*global module:false*/
|
|
|
|
module.exports = function(grunt) {
|
|
|
|
|
|
|
|
// Project configuration.
|
|
|
|
grunt.initConfig({
|
|
|
|
lint: {
|
|
|
|
files: ['grunt.js', 'src/*.js']
|
|
|
|
},
|
|
|
|
concat: {
|
|
|
|
openseadragon: {
|
|
|
|
src: [
|
|
|
|
'src/openseadragon.js',
|
|
|
|
'src/eventhandler.js',
|
|
|
|
'src/mousetracker.js',
|
|
|
|
'src/control.js',
|
|
|
|
'src/controldock.js',
|
|
|
|
'src/viewer.js',
|
|
|
|
'src/navigator.js',
|
|
|
|
'src/strings.js',
|
|
|
|
'src/point.js',
|
|
|
|
'src/tilesource.js',
|
|
|
|
'src/dzitilesource.js',
|
|
|
|
'src/legacytilesource.js',
|
|
|
|
'src/tilesourcecollection.js',
|
|
|
|
'src/button.js',
|
|
|
|
'src/buttongroup.js',
|
|
|
|
'src/rectangle.js',
|
|
|
|
'src/referencestrip.js',
|
|
|
|
'src/displayrectangle.js',
|
|
|
|
'src/spring.js',
|
|
|
|
'src/tile.js',
|
|
|
|
'src/overlay.js',
|
|
|
|
'src/drawer.js',
|
|
|
|
'src/viewport.js'
|
|
|
|
],
|
|
|
|
dest: 'build/openseadragon.js'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
min: {
|
|
|
|
openseadragon: {
|
|
|
|
src: ['build/openseadragon.js'],
|
|
|
|
dest: 'build/openseadragon.min.js'
|
|
|
|
}
|
|
|
|
},
|
2013-02-02 03:01:38 +04:00
|
|
|
qunit: {
|
|
|
|
all: ['http://localhost:8000/test/test.html']
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
port: 8000,
|
|
|
|
base: '.'
|
|
|
|
},
|
2013-02-01 21:49:16 +04:00
|
|
|
watch: {
|
|
|
|
files: ['grunt.js', 'src/*.js'],
|
2013-02-02 03:01:38 +04:00
|
|
|
tasks: 'concat min'
|
2013-02-01 21:49:16 +04:00
|
|
|
},
|
|
|
|
jshint: {
|
|
|
|
options: {
|
|
|
|
onecase: false,
|
|
|
|
immed: false,
|
|
|
|
debug: false,
|
|
|
|
evil: false,
|
|
|
|
strict: false,
|
|
|
|
multistr: false,
|
|
|
|
wsh: false,
|
|
|
|
couch: false,
|
|
|
|
laxbreak: true,
|
|
|
|
rhino: false,
|
|
|
|
globalstrict: false,
|
|
|
|
supernew: false,
|
|
|
|
laxcomma: false,
|
|
|
|
asi: false,
|
|
|
|
es5: false,
|
|
|
|
scripturl: false,
|
|
|
|
withstmt: false,
|
|
|
|
bitwise: true,
|
|
|
|
eqeqeq: false,
|
|
|
|
shadow: false,
|
|
|
|
expr: false,
|
|
|
|
noarg: true,
|
|
|
|
newcap: true,
|
|
|
|
forin: false,
|
|
|
|
regexdash: false,
|
|
|
|
node: false,
|
|
|
|
dojo: false,
|
|
|
|
eqnull: false,
|
|
|
|
browser: true,
|
|
|
|
mootools: false,
|
|
|
|
iterator: false,
|
|
|
|
undef: true,
|
|
|
|
latedef: true,
|
|
|
|
nonstandard: false,
|
|
|
|
trailing: false,
|
|
|
|
jquery: true,
|
|
|
|
loopfunc: false,
|
|
|
|
boss: false,
|
|
|
|
nonew: true,
|
|
|
|
funcscope: false,
|
|
|
|
regexp: false,
|
|
|
|
lastsemic: false,
|
|
|
|
smarttabs: false,
|
|
|
|
devel: false,
|
|
|
|
esnext: false,
|
|
|
|
sub: false,
|
|
|
|
curly: false,
|
|
|
|
prototypejs: false,
|
|
|
|
proto: false,
|
|
|
|
plusplus: false,
|
|
|
|
noempty: false
|
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
grunt.registerTask('default', 'concat min');
|
2013-02-02 03:01:38 +04:00
|
|
|
grunt.registerTask('test', 'concat min server qunit');
|
2013-02-01 21:49:16 +04:00
|
|
|
};
|