-
Notifications
You must be signed in to change notification settings - Fork 81
/
Gruntfile.js
49 lines (44 loc) · 1.11 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
var path = require('path');
module.exports = function (grunt) {
grunt.initConfig({
jshint: ['tasks/**/*.js'],
nodeunit: {
all: ['test/upload.js', 'test/download.js', 'test/delete.js', 'test/s3Task.js', 'test/sync.js']
},
clean: [ 's3/'],
s3: {
options: {
key: 'abc',
secret: 'def',
bucket: 'test',
endpoint: '127.0.0.1',
port: 1337,
secure: false,
access: 'public-read',
style: 'path'
},
test: {
options: {}
},
test_options: {
options: {
key: 'custom'
}
},
test_S3Task: {
upload: [{
src: path.join(process.cwd(), 'test', 'files', '**', '*.txt'),
rel: path.join(process.cwd(), 'test', 'files'),
options: {
bucket: 'overridden'
}
}]
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('test', ['clean', 'jshint', 'nodeunit']);
grunt.loadTasks(__dirname + '/tasks');
};