-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
39 lines (30 loc) · 875 Bytes
/
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
module.exports = function (grunt) {
'use strict';
var DEFAULT_HOST = 'developer.cumulocity.com',
DEFAULT_PROTOCOL = 'https',
host = DEFAULT_HOST,
protocol = DEFAULT_PROTOCOL;
if (grunt.option('host')) {
host = grunt.option('host');
}
if (grunt.option('protocol')) {
protocol = grunt.option('protocol');
}
grunt.config('cumulocity.host', host);
grunt.config('cumulocity.protocol', protocol);
grunt.config('paths.root', './');
grunt.config('paths.temp', '.tmp');
grunt.config('paths.build', 'build');
grunt.config('paths.plugins', 'plugins');
grunt.config('paths.bower', 'bower_components');
//Load cumulocity grunt tasks
grunt.loadNpmTasks('grunt-cumulocity-ui-tasks');
grunt.registerTask('server', [
'pluginPreAll',
'connect',
'watch'
]);
grunt.registerTask('build', [
'pluginBuildAll'
]);
};