-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
50 lines (38 loc) · 1.48 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
/*
* grunt-jsonschema-amd-restclient-generator
* https://github.com/geobricks/grunt-jsonschema-amd-restclient-generator
*
* Copyright (c) 2015 Guido Barbaglia
* Licensed under the MIT license.
*/
(function () {
'use strict';
/*global module*/
module.exports = function (grunt) {
/* Project configuration. */
grunt.initConfig({
/* Plugin configuration. */
jsonschema_amd_restclient_generator: {
custom_options: {
options: {
base_url: 'http://localhost:8081/faostat-api/v1/',
/* Optional. final_base_url will the the final end point in the library */
/* if not set will be used base_url as end point */
/* TODO: should be in the schema? */
// final_base_url: 'http://fenixservices.fao.org/faostat/api/v1/',
final_base_url: 'http://fenixservices.fao.org/faostat/api/v1/',
output_name: 'FAOSTATAPIClient',
output_folder: 'src/js',
useQ: true,
useCache: true,
expiresTime: 100000
}
}
}
});
/* Actually load this plugin's task(s). */
grunt.loadTasks('tasks');
/* Test task. */
grunt.registerTask('default', ['jsonschema_amd_restclient_generator']);
};
}());