forked from felixrieseberg/project-oxford
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
42 lines (39 loc) · 1.17 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
module.exports = function (grunt) {
// load all grunt tasks matching the `grunt-*` pattern
require('load-grunt-tasks')(grunt);
var files = ['src/*.js'];
grunt.initConfig({
jshint: {
files: files,
options: {
jshintrc: './.jshintrc'
}
},
jscs: {
files: {
src: files
},
options: {
config: '.jscsrc',
esnext: true
}
},
babel: {
dist: {
files: {
'dist/emotion.js': 'src/emotion.js',
'dist/face.js': 'src/face.js',
'dist/oxford.js': 'src/oxford.js',
'dist/text.js': 'src/text.js',
'dist/video.js': 'src/video.js',
'dist/vision.js': 'src/vision.js',
'dist/weblm.js': 'src/weblm.js',
}
}
},
clean: ['./test/output/*']
});
grunt.registerTask('compile', 'babel');
grunt.registerTask('test', ['clean', 'jshint', 'jscs']);
grunt.registerTask('default', ['test', 'compile']);
};