forked from Samsung/grunt-cordova-sectv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
65 lines (61 loc) · 2.4 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
53
54
55
56
57
58
59
60
61
62
63
64
65
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc',
},
src: ['www/**/*.js']
},
clean: ['platforms/sectv-orsay/www/**/*' , 'platforms/sectv-orsay/build/*' , 'platforms/sectv-tizen/www/**/*' , 'platforms/sectv-tizen/build/*', 'platforms/tv-webos/www/**/*' , 'platforms/tv-webos/build/*'],
'sectv-prepare': {
'sectv-orsay': {
dest: 'platforms/sectv-orsay/www',
platformRepos: '../cordova-sectv-orsay',
scripts: {
'cordova.js': '../cordova-js/pkg/cordova.sectv-orsay.js',
'toast.js': '../cordova-plugin-toast/platform_www/sectv-orsay/toast.js'
}
},
'sectv-tizen': {
dest: 'platforms/sectv-tizen/www',
platformRepos: '../cordova-sectv-tizen',
scripts: {
'cordova.js': '../cordova-js/pkg/cordova.sectv-tizen.js',
'toast.js': '../cordova-plugin-toast/platform_www/sectv-tizen/toast.js'
}
},
'tv-webos': {
dest: 'platforms/tv-webos/www',
platformRepos: '../cordova-tv-webos',
scripts: {
'cordova.js': '../cordova-js/pkg/cordova.tv-webos.js',
'toast.js': '../cordova-plugin-toast/platform_www/tv-webos/toast.js'
}
}
},
'sectv-build': {
'sectv-orsay': {
www: 'platforms/sectv-orsay/www',
dest: 'platforms/sectv-orsay/build'
},
'sectv-tizen': {
profilePath: '/home/TizenSDK/.metadata/.plugins/org.tizen.common.sign/profiles.xml',
profileName: 'myprofile',
www: 'platforms/sectv-tizen/www',
dest: 'platforms/sectv-tizen/build'
},
'tv-webos': {
www: 'platforms/tv-webos/www',
dest: 'platforms/tv-webos/build'
}
}
});
// external tasks
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-clean');
// custom tasks
grunt.loadNpmTasks('grunt-cordova-sectv');
// defaults
grunt.registerTask('default', ['jshint', 'clean', 'sectv-prepare', 'sectv-build']);
};