forked from felixrieseberg/project-oxford
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
52 lines (49 loc) · 1.36 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
50
51
52
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',
reporterOutput: ''
}
},
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/vision.js': 'src/vision.js',
'dist/weblm.js': 'src/weblm.js',
}
}
},
clean: ['./test/output/*'],
jsdoc2md: {
oneOutputFile: {
src: 'dist/*js',
dest: 'api.md'
},
withOptions: {
}
}
});
grunt.loadNpmTasks('grunt-jsdoc-to-markdown');
grunt.registerTask('compile', 'babel');
grunt.registerTask('test', ['clean', 'jshint', 'jscs']);
grunt.registerTask('default', ['test', 'compile']);
grunt.registerTask('doc','jsdoc2md');
};