Open navratill opened 6 years ago
here is output of the same task with --verbose
Initializing
Command-line options: --verbose, --gruntfile=/Users/ladislav.navratil/Git/nangu/samsung-test/TestApp/node_modules/grunt-cordova-sectv/Gruntfile.js
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Reading package.json...OK
Parsing package.json...OK
Initializing config...OK
Registering "grunt-contrib-jshint" local Npm module tasks.
Reading /Users/ladislav.navratil/Git/nangu/samsung-test/TestApp/node_modules/grunt-cordova-sectv/node_modules/grunt-contrib-jshint/package.json...OK
Parsing /Users/ladislav.navratil/Git/nangu/samsung-test/TestApp/node_modules/grunt-cordova-sectv/node_modules/grunt-contrib-jshint/package.json...OK
Loading "jshint.js" tasks...OK
+ jshint
Loading "Gruntfile.js" tasks...OK
+ default, precommit
Running tasks: sectv-prepare:sectv-orsay
Warning: Task "sectv-prepare:sectv-orsay" not found. Use --force to continue.
Aborted due to warnings.
Gruntfile.js looks like that:
'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']);
Hi,
I run in the same trouble using one of the sample provided, it was using the grunt-cordova-sectv
from npm and not the one downloaded from github. It looks the one on NPM doesn't have a prepare but a package method.
Try replacing in your package.json the version of this component with
"grunt-cordova-sectv": "file:../grunt-cordova-sectv",
Hi,
after setting up the project with your shell script, all prepare and build methods are failing,
for example "grunt sectv-prepare:sectv-orsay" returns:
All another methods returns the same. Application is possible to build and run only for web browser emulator.